From: Ferruh Yigit Date: Fri, 26 Aug 2016 11:17:56 +0000 (+0100) Subject: net/pcap: fix missing Tx interface assignment X-Git-Tag: spdx-start~5856 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d75b28783406bfaa6d697acbef3670253aa80da1;p=dpdk.git net/pcap: fix missing Tx interface assignment Missing pcap assignment may cause pcap file/interface to be opened again, and previous one not closed. Fixes: 1e38a7c66923 ("pcap: fix storage of name and type in queues") Signed-off-by: Ferruh Yigit Acked-by: Stephen Hemminger --- diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index b19da12144..64877a319e 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -883,6 +883,7 @@ rte_eth_from_pcaps_common(const char *name, struct pmd_devargs *rx_queues, struct devargs_queue *queue = &tx_queues->queue[i]; tx->dumper = queue->dumper; + tx->pcap = queue->pcap; snprintf(tx->name, sizeof(tx->name), "%s", queue->name); snprintf(tx->type, sizeof(tx->type), "%s", queue->type); }