Skip to contentSkip to conversation

hfi1: Remove open coded reference to skb frag offset

PATCH Applied David Ahern 2 participants 2 messages Sep 12, 2023 – Sep 18, 2023

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

PATCH 1/1 hfi1: Remove open coded reference to skb frag offset

frag offset should be obtained from skb_frag_off; update the code.

Cc Dennis Dalessandro <[email protected]>
---
 drivers/infiniband/hw/hfi1/ipoib_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/hfi1/ipoib_tx.c +1 -1
index e7d831330278..8b9cc55db59d 100644
@@ -217,7 +217,7 @@ static int hfi1_ipoib_build_ulp_payload(struct ipoib_txreq *tx,
 		ret = sdma_txadd_page(dd,
 				      txreq,
 				      skb_frag_page(frag),
-				      frag->bv_offset,
+				      skb_frag_off(frag),
 				      skb_frag_size(frag),
 				      NULL, NULL, NULL);
 		if (unlikely(ret))
Signature · 1 line
2.25.1