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: a3f5252e5c
("net/pcap: enable infinitely Rx a pcap file")
Signed-off-by: Aideen McLoughlin <aideen.mcloughlin@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
49a0a2ffd5
commit
db87e1e3c1
@ -1318,7 +1318,7 @@ eth_from_pcaps(struct rte_vdev_device *vdev,
|
|||||||
/* Assign tx ops. */
|
/* Assign tx ops. */
|
||||||
if (devargs_all->is_tx_pcap)
|
if (devargs_all->is_tx_pcap)
|
||||||
eth_dev->tx_pkt_burst = eth_pcap_tx_dumper;
|
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;
|
eth_dev->tx_pkt_burst = eth_pcap_tx;
|
||||||
else
|
else
|
||||||
eth_dev->tx_pkt_burst = eth_tx_drop;
|
eth_dev->tx_pkt_burst = eth_tx_drop;
|
||||||
|
Loading…
Reference in New Issue
Block a user