src/dpdk/drivers/net/pcap/rte_eth_pcap.c
static inline int
open_rx_iface(const char *key, const char *value, void *extra_args)
{
	int ret = open_iface(key, value, extra_args);
	if (ret < 0)
		return ret;
	if (strcmp(key, ETH_PCAP_RX_IFACE_IN_ARG) == 0) {
		struct pmd_devargs *pmd = extra_args;
		unsigned int qid = pmd->num_of_queue - 1;

		set_iface_direction(pmd->queue[qid].name,
				pmd->queue[qid].pcap,
				PCAP_D_IN);
	}

	return 0;
}
/*
 * Opens a NIC for reading packets from it
 */
Opens a NIC for reading packets from it
Opens a NIC for reading packets from it
static inline int
open_rx_iface(const char *key, const char *value, void *extra_args)
{
	int ret = open_iface(key, value, extra_args);
	if (ret < 0)
		return ret;
	if (strcmp(key, ETH_PCAP_RX_IFACE_IN_ARG) == 0) {
		struct pmd_devargs *pmd = extra_args;
		unsigned int qid = pmd->num_of_queue - 1;
		set_iface_direction(pmd->queue[qid].name,
				pmd->queue[qid].pcap,
				PCAP_D_IN);
	}
	return 0;
}
static inline int open_rx_iface ( const char * key , const char * value , void * extra_args ) { int ret = open_iface ( key , value , extra_args ) ; if ( ret < 0 ) return ret ; if ( strcmp ( key , ETH_PCAP_RX_IFACE_IN_ARG ) == 0 ) { struct pmd_devargs * pmd = extra_args ; unsigned int qid = pmd -> num_of_queue - 1 ; set_iface_direction ( pmd -> queue [ qid ] . name , pmd -> queue [ qid ] . pcap , PCAP_D_IN ) ; } return 0 ; }
Opens a NIC for reading packets from it
Opens a NIC for reading packets from it