This is my second attempt. I have now splitted the patch into a generic and a pcap-specific.
I also use interface index instead of interface name. Mats Liljegren (2): Introduce if_index field to struct rte_eth_dev_info pcap: Fill in if_index field for rte_eth_dev_info_get() calls lib/librte_ether/rte_ethdev.c | 1 + lib/librte_ether/rte_ethdev.h | 1 + lib/librte_pmd_pcap/rte_eth_pcap.c | 39 ++++++++++++++++++++++++++++++-------- lib/librte_pmd_pcap/rte_eth_pcap.h | 6 ++++-- 4 files changed, 37 insertions(+), 10 deletions(-) -- 1.8.3.2