diff mbox series

hfi1: Remove open coded reference to skb frag offset

Message ID 20230911215753.12325-1-dsahern@kernel.org (mailing list archive)
State Accepted
Headers show
Series hfi1: Remove open coded reference to skb frag offset | expand

Commit Message

David Ahern Sept. 11, 2023, 9:57 p.m. UTC
frag offset should be obtained from skb_frag_off; update the code.

Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
---
 drivers/infiniband/hw/hfi1/ipoib_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Sept. 18, 2023, 11:23 a.m. UTC | #1
On Mon, 11 Sep 2023 15:57:53 -0600, David Ahern wrote:
> frag offset should be obtained from skb_frag_off; update the code.
> 
> 

Applied, thanks!

[1/1] hfi1: Remove open coded reference to skb frag offset
      https://git.kernel.org/rdma/rdma/c/1df1f730d765f5

Best regards,
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/hfi1/ipoib_tx.c b/drivers/infiniband/hw/hfi1/ipoib_tx.c
index e7d831330278..8b9cc55db59d 100644
--- a/drivers/infiniband/hw/hfi1/ipoib_tx.c
+++ b/drivers/infiniband/hw/hfi1/ipoib_tx.c
@@ -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))