Thread (67 messages) 67 messages, 9 authors, 2021-04-21

Re: [dpdk-dev] [PATCH v2 3/6] net/pcap: move OS-dependent code to separate files

From: Dmitry Kozlyuk <hidden>
Date: 2021-02-25 16:05:06

2021-02-25 14:51, Ferruh Yigit:
On 2/14/2021 2:16 AM, Dmitry Kozlyuk wrote:
quoted
PCAP PMD queries interface information differently for Linux and
FreeBSD, OS-specific code is guarded by #ifdef. In preparation to add
Windows-specific part and libpcap wrapper, extract OS-independent
interface and move implementations to separate files. Rename
rte_eth_pcap.c to pcap_ethdev.c for consistency with the rest of DPDK.

Signed-off-by: Dmitry Kozlyuk <redacted>  
<...>
quoted
+int
+osdep_iface_index_get(const char *name)
+{
+	return if_nametoindex(name);
+}  

The 'osdep_iface_index_get' wrapper is not required for this patch and can be 
done in patch 6/6, but OK to have here to make the switch clear.
Yes, it was my intention to keep Windows patches separate.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help