]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: mlx4 calls skb_set_hash
authorTom Herbert <therbert@google.com>
Wed, 18 Dec 2013 07:31:23 +0000 (23:31 -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/mellanox/mlx4/en_rx.c

index 07a1d0fbae4706a6718406158c2358a8eb62da9b..2aa0ae1ea45ad47078c5c88f7e3f1eab92ecb962 100644 (file)
@@ -747,7 +747,9 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
                                        }
 
                                        if (dev->features & NETIF_F_RXHASH)
-                                               gro_skb->rxhash = be32_to_cpu(cqe->immed_rss_invalid);
+                                               skb_set_hash(gro_skb,
+                                                            be32_to_cpu(cqe->immed_rss_invalid),
+                                                            PKT_HASH_TYPE_L3);
 
                                        skb_record_rx_queue(gro_skb, cq->ring);
 
@@ -789,7 +791,9 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
                skb_record_rx_queue(skb, cq->ring);
 
                if (dev->features & NETIF_F_RXHASH)
-                       skb->rxhash = be32_to_cpu(cqe->immed_rss_invalid);
+                       skb_set_hash(skb,
+                                    be32_to_cpu(cqe->immed_rss_invalid),
+                                    PKT_HASH_TYPE_L3);
 
                if ((be32_to_cpu(cqe->vlan_my_qpn) &
                    MLX4_CQE_VLAN_PRESENT_MASK) &&