Skip to content

Commit

Permalink
net/sfc: account for data offset on Tx
Browse files Browse the repository at this point in the history
Data that needs to be sent starts at the offset stored in the data_off
field, which may be different from RTE_PKTMBUF_HEADROOM.

Signed-off-by: Viacheslav Galaktionov <[email protected]>
  • Loading branch information
okt-galaktionov committed Dec 1, 2022
1 parent e2bafcd commit 76e499c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mbuf/rte_mbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ rte_mbuf_data_iova(const struct rte_mbuf *mb)
static inline rte_iova_t
rte_mbuf_data_iova_default(const struct rte_mbuf *mb)
{
return rte_mbuf_iova_get(mb) + RTE_PKTMBUF_HEADROOM;
return rte_mbuf_iova_get(mb) + mb->data_off;
}

/**
Expand Down

0 comments on commit 76e499c

Please sign in to comment.