Commit 4ececeb8 authored by David Ahern's avatar David Ahern Committed by Leon Romanovsky

IB/hfi1: Remove open coded reference to skb frag offset

frag offset should be obtained from skb_frag_off; update the code.
Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Link: https://lore.kernel.org/r/20230911215753.12325-1-dsahern@kernel.orgSigned-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent e57b0eef
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment