]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
net: igb calls skb_set_hash
authorTom Herbert <therbert@google.com>
Wed, 18 Dec 2013 16:46:58 +0000 (16:46 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 13 Mar 2014 01:58:35 +0000 (18:58 -0700)
Drivers should call skb_set_hash to set the hash and its type
in an skbuff.

Signed-off-by: Tom Herbert <therbert@google.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c

index 3384156cf1b504e6e15e36583c3a7bc756e0001b..a96beb67e9ee9cadb5fc501ded2241cd2afd95a8 100644 (file)
@@ -6620,7 +6620,9 @@ static inline void igb_rx_hash(struct igb_ring *ring,
                               struct sk_buff *skb)
 {
        if (ring->netdev->features & NETIF_F_RXHASH)
-               skb->rxhash = le32_to_cpu(rx_desc->wb.lower.hi_dword.rss);
+               skb_set_hash(skb,
+                            le32_to_cpu(rx_desc->wb.lower.hi_dword.rss),
+                            PKT_HASH_TYPE_L3);
 }
 
 /**