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: 1e38a7c669
("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>
This commit is contained in:
parent
0c2c1f3393
commit
d75b287834
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user