From db87e1e3c11a1576326756318859c75c0d645ed2 Mon Sep 17 00:00:00 2001 From: Aideen McLoughlin Date: Tue, 16 Jul 2019 15:26:21 +0100 Subject: [PATCH] net/pcap: fix single iface support Because of the commit mentioned below the default case was changed and this broke single_iface support. This patch adds a check to fix single_iface support. Fixes: a3f5252e5cbd ("net/pcap: enable infinitely Rx a pcap file") Signed-off-by: Aideen McLoughlin Acked-by: Ferruh Yigit --- drivers/net/pcap/rte_eth_pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index d1dca2a381..d0e79aa5de 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -1318,7 +1318,7 @@ eth_from_pcaps(struct rte_vdev_device *vdev, /* Assign tx ops. */ if (devargs_all->is_tx_pcap) eth_dev->tx_pkt_burst = eth_pcap_tx_dumper; - else if (devargs_all->is_tx_iface) + else if (devargs_all->is_tx_iface || single_iface) eth_dev->tx_pkt_burst = eth_pcap_tx; else eth_dev->tx_pkt_burst = eth_tx_drop; -- 2.20.1