All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hfi1: Remove open coded reference to skb frag offset
@ 2023-09-11 21:57 David Ahern
  2023-09-18 11:23 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: David Ahern @ 2023-09-11 21:57 UTC (permalink / raw)
  To: linux-rdma; +Cc: David Ahern, Dennis Dalessandro

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(-)

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))
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hfi1: Remove open coded reference to skb frag offset
  2023-09-11 21:57 [PATCH] hfi1: Remove open coded reference to skb frag offset David Ahern
@ 2023-09-18 11:23 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2023-09-18 11:23 UTC (permalink / raw)
  To: linux-rdma, David Ahern; +Cc: Dennis Dalessandro


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,
-- 
Leon Romanovsky <leon@kernel.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-18 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11 21:57 [PATCH] hfi1: Remove open coded reference to skb frag offset David Ahern
2023-09-18 11:23 ` Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.