cxgb4vf: Fix extraction of cpl_rx_pkt from the response queue descriptor
authorVipul Pandya <vipul@chelsio.com>
Fri, 8 Feb 2013 02:49:51 +0000 (02:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 22:55:48 +0000 (17:55 -0500)
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>
drivers/net/ethernet/chelsio/cxgb4vf/sge.c

index 92170d50d9d8d0a1fa6b4ed1508de34d1855ae10..9e8841e1be5aa7ad29bce727c838ff919a46267f 100644 (file)
@@ -1501,7 +1501,7 @@ int t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp,
                       const struct pkt_gl *gl)
 {
        struct sk_buff *skb;
-       const struct cpl_rx_pkt *pkt = (void *)&rsp[1];
+       const struct cpl_rx_pkt *pkt = (void *)rsp;
        bool csum_ok = pkt->csum_calc && !pkt->err_vec;
        struct sge_eth_rxq *rxq = container_of(rspq, struct sge_eth_rxq, rspq);