src/dpdk/drivers/net/pcap/rte_eth_pcap.c
static inline int
open_rx_tx_iface(const char *key, const char *value, void *extra_args)
{
	const char *iface = value;
	struct pmd_devargs *tx = extra_args;
	pcap_t *pcap = NULL;

	if (open_single_iface(iface, &pcap) < 0)
		return -1;

	tx->queue[0].pcap = pcap;
	tx->queue[0].name = iface;
	tx->queue[0].type = key;

	return 0;
}
/*
 * Opens an interface for reading and writing
 */
Opens an interface for reading and writing
Opens an interface for reading and writing
static inline int
open_rx_tx_iface(const char *key, const char *value, void *extra_args)
{
	const char *iface = value;
	struct pmd_devargs *tx = extra_args;
	pcap_t *pcap = NULL;
	if (open_single_iface(iface, &pcap) < 0)
		return -1;
	tx->queue[0].pcap = pcap;
	tx->queue[0].name = iface;
	tx->queue[0].type = key;
	return 0;
}
static inline int open_rx_tx_iface ( const char * key , const char * value , void * extra_args ) { const char * iface = value ; struct pmd_devargs * tx = extra_args ; pcap_t * pcap = NULL ; if ( open_single_iface ( iface , & pcap ) < 0 ) return -1 ; tx -> queue [ 0 ] . pcap = pcap ; tx -> queue [ 0 ] . name = iface ; tx -> queue [ 0 ] . type = key ; return 0 ; }
Opens an interface for reading and writing
Opens an interface for reading and writing