aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-21 13:39:26 -0700
committerDavid S. Miller <davem@davemloft.net>2009-03-21 13:39:26 -0700
commit9247744e5eaa29aecee5342a0c8694187a6aadcd (patch)
tree74ccf6e63f2a8192502f432376b1f68136ace8b1 /net/core
parent1f1900f935e810d01c716fa2aaf8c9d25caa4151 (diff)
downloadkernel_samsung_smdk4412-9247744e5eaa29aecee5342a0c8694187a6aadcd.tar.gz
kernel_samsung_smdk4412-9247744e5eaa29aecee5342a0c8694187a6aadcd.tar.bz2
kernel_samsung_smdk4412-9247744e5eaa29aecee5342a0c8694187a6aadcd.zip
skb: expose and constify hash primitives
Some minor changes to queue hashing: 1. Use const on accessor functions 2. Export skb_tx_hash for use in drivers (see ixgbe) Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index ca212acd334..fdb9973b82a 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1725,7 +1725,7 @@ out_kfree_skb:
static u32 skb_tx_hashrnd;
-static u16 skb_tx_hash(struct net_device *dev, struct sk_buff *skb)
+u16 skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb)
{
u32 hash;
@@ -1740,6 +1740,7 @@ static u16 skb_tx_hash(struct net_device *dev, struct sk_buff *skb)
return (u16) (((u64) hash * dev->real_num_tx_queues) >> 32);
}
+EXPORT_SYMBOL(skb_tx_hash);
static struct netdev_queue *dev_pick_tx(struct net_device *dev,
struct sk_buff *skb)