[dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface
Ferruh Yigit
ferruh.yigit at intel.com
Mon May 22 11:39:04 CEST 2017
Hi Chas,
On 5/17/2017 7:03 PM, Charles (Chas) Williams wrote:
> Provide an accessor for the name of the underlying linux interface
> used by the AF_PACKET-based interface.
This patch provides a PMD specific API to get PMD internal data
(internals->if_name).
I think we should avoid PMD specific APIs if possible.
internals->if_name is provided by application, as devargs to af_packet
(iface=..), so app already knows port_id -> if_name mapping.
OR
With rte_eth_dev_info_get() af_packet returns the if_index for
underlying interface, it is possible to use if_indextoname() to get ifname.
Because above methods exists to get if_name, I think this API is not
necessary.
>
> Signed-off-by: Charles (Chas) Williams <ciwillia at brocade.com>
<...>
More information about the dev
mailing list