net: cisco-enic calls skb_set_hash
authorTom Herbert <therbert@google.com>
Wed, 18 Dec 2013 07:23:42 +0000 (23:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2013 20:00:52 +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 <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c

index ff78dfaec5087184021b863174f84adfeea59476..b740bfce72ef371a82077fe4b3c7f498c9430423 100644 (file)
@@ -1036,11 +1036,12 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,
                skb->protocol = eth_type_trans(skb, netdev);
                skb_record_rx_queue(skb, q_number);
                if (netdev->features & NETIF_F_RXHASH) {
-                       skb->rxhash = rss_hash;
-                       if (rss_type & (NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX |
-                                       NIC_CFG_RSS_HASH_TYPE_TCP_IPV6 |
-                                       NIC_CFG_RSS_HASH_TYPE_TCP_IPV4))
-                               skb->l4_rxhash = true;
+                       skb_set_hash(skb, rss_hash,
+                                    (rss_type &
+                                     (NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX |
+                                      NIC_CFG_RSS_HASH_TYPE_TCP_IPV6 |
+                                      NIC_CFG_RSS_HASH_TYPE_TCP_IPV4)) ?
+                                    PKT_HASH_TYPE_L4 : PKT_HASH_TYPE_L3);
                }
 
                if ((netdev->features & NETIF_F_RXCSUM) && !csum_not_calc) {