diff options
author | Tom Herbert <therbert@google.com> | 2013-12-18 02:23:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 15:00:52 -0500 |
commit | 8264989cf3ae6f3f4b8c53b18c355643ba31c5bb (patch) | |
tree | 70adf55f2c34899e0e55e7b2ba45400ea48b5035 | |
parent | bd5cef035990a8f4be812f0c34ce34316cb8e9d5 (diff) |
net: cxgb4 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>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index cc380c36e1a8..42745438c1e0 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c | |||
@@ -1630,7 +1630,8 @@ static void do_gro(struct sge_eth_rxq *rxq, const struct pkt_gl *gl, | |||
1630 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 1630 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
1631 | skb_record_rx_queue(skb, rxq->rspq.idx); | 1631 | skb_record_rx_queue(skb, rxq->rspq.idx); |
1632 | if (rxq->rspq.netdev->features & NETIF_F_RXHASH) | 1632 | if (rxq->rspq.netdev->features & NETIF_F_RXHASH) |
1633 | skb->rxhash = (__force u32)pkt->rsshdr.hash_val; | 1633 | skb_set_hash(skb, (__force u32)pkt->rsshdr.hash_val, |
1634 | PKT_HASH_TYPE_L3); | ||
1634 | 1635 | ||
1635 | if (unlikely(pkt->vlan_ex)) { | 1636 | if (unlikely(pkt->vlan_ex)) { |
1636 | __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan)); | 1637 | __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan)); |
@@ -1686,7 +1687,8 @@ int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp, | |||
1686 | skb->protocol = eth_type_trans(skb, q->netdev); | 1687 | skb->protocol = eth_type_trans(skb, q->netdev); |
1687 | skb_record_rx_queue(skb, q->idx); | 1688 | skb_record_rx_queue(skb, q->idx); |
1688 | if (skb->dev->features & NETIF_F_RXHASH) | 1689 | if (skb->dev->features & NETIF_F_RXHASH) |
1689 | skb->rxhash = (__force u32)pkt->rsshdr.hash_val; | 1690 | skb_set_hash(skb, (__force u32)pkt->rsshdr.hash_val, |
1691 | PKT_HASH_TYPE_L3); | ||
1690 | 1692 | ||
1691 | rxq->stats.pkts++; | 1693 | rxq->stats.pkts++; |
1692 | 1694 | ||