[dpdk-users] Changing rte_mbuf

Tom Barbette barbette at kth.se
Fri Jun 18 12:06:13 CEST 2021


Le 15-06-21 à 08:42, mohamad ali a écrit :
> Hi i want to change rte_mbuf struct and add some custom struct to it but
> when i change it and compile again some error related to this line shows up.
> RTE_BUILD_BUG_ON(sizeof(struct rte_mbuf) > OCTEONTX_FPAVF_BUF_OFFSET);
> 
> What is the correct way to add struct to rte_mbuf ?
> thanks.
> 

You should use dynamic fields instead 
(https://doc.dpdk.org/api/rte__mbuf__dyn_8h.html)


More information about the users mailing list