[dpdk-dev] [PATCH V2] app/testpmd: support Tx mbuf free on demand cmd

Thomas Monjalon thomas at monjalon.net
Wed Mar 10 08:59:13 CET 2021


10/03/2021 02:48, oulijun:
> Can we add an API such as rte_eth_get_device(pord_id)
> 
> for example:
> struct rte_eth_dev *
> rte_eth_get_device(uint16_t port_id)
> {
>         return &rte_eth_devices[port_id];
> }

An application is not supposed to access the struct rte_eth_dev.
Which info do you need from this struct?




More information about the dev mailing list