diff options
author | Vipul Pandya <vipul@chelsio.com> | 2013-02-07 21:49:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-08 17:55:48 -0500 |
commit | 8b9a4d56866e0dca6ae886ed9bff777e50d0b70c (patch) | |
tree | 9a6f026cdc7a43fec50a08beb712351c30433c49 /drivers | |
parent | 03536e23acd3706c0ec93d01dc8bef44dab1a860 (diff) |
cxgb4vf: Fix extraction of cpl_rx_pkt from the response queue descriptor
This was preventing GRO and RxCheckSum offload to happen.
Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c index 92170d50d9d8..9e8841e1be5a 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c | |||
@@ -1501,7 +1501,7 @@ int t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp, | |||
1501 | const struct pkt_gl *gl) | 1501 | const struct pkt_gl *gl) |
1502 | { | 1502 | { |
1503 | struct sk_buff *skb; | 1503 | struct sk_buff *skb; |
1504 | const struct cpl_rx_pkt *pkt = (void *)&rsp[1]; | 1504 | const struct cpl_rx_pkt *pkt = (void *)rsp; |
1505 | bool csum_ok = pkt->csum_calc && !pkt->err_vec; | 1505 | bool csum_ok = pkt->csum_calc && !pkt->err_vec; |
1506 | struct sge_eth_rxq *rxq = container_of(rspq, struct sge_eth_rxq, rspq); | 1506 | struct sge_eth_rxq *rxq = container_of(rspq, struct sge_eth_rxq, rspq); |
1507 | 1507 | ||