diff options
author | Tom Herbert <therbert@google.com> | 2013-12-18 02:32:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 15:00:53 -0500 |
commit | 3b21567fb4ff8d6b760443f634d0b3ffe63ce748 (patch) | |
tree | a10d2b9a54f18d84408eed05bd99a04155dd857c /drivers/net | |
parent | c7cb38af79c1e71a72d398f39296f1e27779b778 (diff) |
net: sun-niu calls skb_set_hash
Drivers should call skb_set_hash to set the hash and its type
in an skbuff.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/sun/niu.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c index 388540fcb977..8e2266e1f260 100644 --- 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, | |||
3493 | 3493 | ||
3494 | rh = (struct rx_pkt_hdr1 *) skb->data; | 3494 | rh = (struct rx_pkt_hdr1 *) skb->data; |
3495 | if (np->dev->features & NETIF_F_RXHASH) | 3495 | if (np->dev->features & NETIF_F_RXHASH) |
3496 | skb->rxhash = ((u32)rh->hashval2_0 << 24 | | 3496 | skb_set_hash(skb, |
3497 | (u32)rh->hashval2_1 << 16 | | 3497 | ((u32)rh->hashval2_0 << 24 | |
3498 | (u32)rh->hashval1_1 << 8 | | 3498 | (u32)rh->hashval2_1 << 16 | |
3499 | (u32)rh->hashval1_2 << 0); | 3499 | (u32)rh->hashval1_1 << 8 | |
3500 | (u32)rh->hashval1_2 << 0), | ||
3501 | PKT_HASH_TYPE_L3); | ||
3500 | skb_pull(skb, sizeof(*rh)); | 3502 | skb_pull(skb, sizeof(*rh)); |
3501 | 3503 | ||
3502 | rp->rx_packets++; | 3504 | rp->rx_packets++; |