net: emulex-benet calls skb_set_hash
authorTom Herbert <therbert@google.com>
Wed, 18 Dec 2013 07:23:51 +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/emulex/benet/be_main.c

index 0fde69d5cb6afd610db5f2a57325e5d2e9f5ed94..f67586a766d26e9c4eba9a42e61fdd1f3b73993f 100644 (file)
@@ -1581,7 +1581,7 @@ static void be_rx_compl_process(struct be_rx_obj *rxo, struct napi_struct *napi,
        skb->protocol = eth_type_trans(skb, netdev);
        skb_record_rx_queue(skb, rxo - &adapter->rx_obj[0]);
        if (netdev->features & NETIF_F_RXHASH)
-               skb->rxhash = rxcp->rss_hash;
+               skb_set_hash(skb, rxcp->rss_hash, PKT_HASH_TYPE_L3);
        skb_mark_napi_id(skb, napi);
 
        if (rxcp->vlanf)
@@ -1639,7 +1639,7 @@ static void be_rx_compl_process_gro(struct be_rx_obj *rxo,
        skb->ip_summed = CHECKSUM_UNNECESSARY;
        skb_record_rx_queue(skb, rxo - &adapter->rx_obj[0]);
        if (adapter->netdev->features & NETIF_F_RXHASH)
-               skb->rxhash = rxcp->rss_hash;
+               skb_set_hash(skb, rxcp->rss_hash, PKT_HASH_TYPE_L3);
        skb_mark_napi_id(skb, napi);
 
        if (rxcp->vlanf)