projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7cb38a
)
net: sun-niu calls skb_set_hash
author
Tom Herbert
<
[email protected]
>
Wed, 18 Dec 2013 07:32:00 +0000
(23:32 -0800)
committer
David S. Miller
<
[email protected]
>
Wed, 18 Dec 2013 20:00:53 +0000
(15:00 -0500)
Drivers should call skb_set_hash to set the hash and its type
in an skbuff.
Signed-off-by: Tom Herbert <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/sun/niu.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sun/niu.c
b/drivers/net/ethernet/sun/niu.c
index 388540fcb9773dab8973094bb4ec76f74fe4f73d..8e2266e1f26070614559c12d5d5de50281aad813 100644
(file)
--- a/
drivers/net/ethernet/sun/niu.c
+++ b/
drivers/net/ethernet/sun/niu.c
@@
-3493,10
+3493,12
@@
static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
rh = (struct rx_pkt_hdr1 *) skb->data;
if (np->dev->features & NETIF_F_RXHASH)
- skb->rxhash = ((u32)rh->hashval2_0 << 24 |
- (u32)rh->hashval2_1 << 16 |
- (u32)rh->hashval1_1 << 8 |
- (u32)rh->hashval1_2 << 0);
+ skb_set_hash(skb,
+ ((u32)rh->hashval2_0 << 24 |
+ (u32)rh->hashval2_1 << 16 |
+ (u32)rh->hashval1_1 << 8 |
+ (u32)rh->hashval1_2 << 0),
+ PKT_HASH_TYPE_L3);
skb_pull(skb, sizeof(*rh));
rp->rx_packets++;