diff options
| author | David Ahern <[email protected]> | 2023-09-11 21:57:53 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2023-09-18 11:24:15 +0000 |
| commit | 4ececeb839868ad235515f5bb332530f2ac11253 (patch) | |
| tree | a34afe1317b6714ec1e8469fc70b0577b3dd4a7a | |
| parent | RDMA/core: Fix repeated words in comments (diff) | |
| download | kernel-4ececeb839868ad235515f5bb332530f2ac11253.tar.gz kernel-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 <[email protected]>
Cc: Dennis Dalessandro <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
| -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)) |
