[dpdk-dev] [PATCH v2 1/2] mbuf: add function returning default buffer address
Yongseok Koh
yskoh at mellanox.com
Thu Jan 10 19:22:08 CET 2019
On Jan 9, 2019, at 5:46 AM, David Marchand <david.marchand at redhat.com<mailto:david.marchand at redhat.com>> wrote:
On Wed, Jan 9, 2019 at 2:19 PM Yongseok Koh <yskoh at mellanox.com<mailto:yskoh at mellanox.com>> wrote:
This patch introduces two new functions - rte_mbuf_buf_addr_default() and
rte_mbuf_data_baddr_default().
rte_mbuf_buf_addr_default() reutrns the default buffer address of given
mbuf which comes after mbuf structure and private data.
The buffer address should always be the same for a given mbuf, there is no "default" value for it, there is only one value.
So for me s/rte_mbuf_buf_addr_default/rte_mbuf_buf_addr/g.
+1
rte_mbuf_data_baddr_default() returns the default address of mbuf data
taking the headroom into account.
Or just rte_mbuf_data_addr_default() ?
+1
Signed-off-by: Yongseok Koh <yskoh at mellanox.com<mailto:yskoh at mellanox.com>>
Those are new functions, they should go through the EXPERIMENTAL api marking process.
If that's the rule, I'll follow anyway, although these are too obvious to be experimental.
Thanks,
Yongseok
More information about the dev
mailing list