pcap: reduce duplication
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Feb 2016 16:58:07 +0000 (16:58 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commit77e14d2271b0083c999c95ae3fb99f9669123572
treefba4c49b733c299853b54c31c8fa166678fada8e
parentc6fb0e55585206a89f6db396de860e6e844cad06
pcap: reduce duplication

1- Remove duplicate nb_rx/tx_queues fields from internals
2- Move duplicate code into a common function

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Nicolás Pernas Maradei <nicolas.pernas.maradei@emutex.com>
drivers/net/pcap/rte_eth_pcap.c