Skip to contentSkip to conversation

cxgb4vf: Fix extraction of cpl_rx_pkt from the response queue descriptor

PATCH Applied Vipul Pandya 2 participants 2 messages Feb 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgb4vf: Fix extraction of cpl_rx_pkt from the response queue descriptor

This was preventing GRO and RxCheckSum offload to happen.

---
 drivers/net/ethernet/chelsio/cxgb4vf/sge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/chelsio/cxgb4vf/sge.c +1 -1
index 92170d5..9e8841e 100644
@@ -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);
 
Signature · 1 line
1.7.1