net/pcap: fix missing Tx interface assignment
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Aug 2016 11:17:56 +0000 (12:17 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
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 <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/pcap/rte_eth_pcap.c

index b19da12..64877a3 100644 (file)
@@ -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);
        }