diff options
author | David Ahern <dsahern@kernel.org> | 2023-09-11 23:57:53 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-09-18 13:24:15 +0200 |
commit | 4ececeb839868ad235515f5bb332530f2ac11253 (patch) | |
tree | a34afe1317b6714ec1e8469fc70b0577b3dd4a7a /drivers/infiniband | |
parent | RDMA/core: Fix repeated words in comments (diff) | |
download | linux-4ececeb839868ad235515f5bb332530f2ac11253.tar.xz linux-4ececeb839868ad235515f5bb332530f2ac11253.zip |
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: David Ahern <dsahern@kernel.org>
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Link: https://lore.kernel.org/r/20230911215753.12325-1-dsahern@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/hfi1/ipoib_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |