net/pcap: fix input only Rx
When input only Rx interface argument 'rx_iface_in' provided, current
code assigns 'eth_null_rx' burst function by mistake and no packet
received as a result.
Like in following usage no packets received from physical interface:
"--vdev net_pcap0,rx_iface_in=eth0,tx_iface=eth0"
Fixing the burst function assignment when 'rx_iface_in' argument is used
Fixes: f14a945915
("net/pcap: remove Rx queue argument necessity")
Cc: stable@dpdk.org
Reported-by: Muthurajan Jayakumar <muthurajan.jayakumar@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
99fb0a03fd
commit
113a461e82
@ -1416,7 +1416,8 @@ pmd_pcap_probe(struct rte_vdev_device *dev)
|
||||
devargs_all.is_rx_pcap =
|
||||
rte_kvargs_count(kvlist, ETH_PCAP_RX_PCAP_ARG) ? 1 : 0;
|
||||
devargs_all.is_rx_iface =
|
||||
rte_kvargs_count(kvlist, ETH_PCAP_RX_IFACE_ARG) ? 1 : 0;
|
||||
(rte_kvargs_count(kvlist, ETH_PCAP_RX_IFACE_ARG) +
|
||||
rte_kvargs_count(kvlist, ETH_PCAP_RX_IFACE_IN_ARG)) ? 1 : 0;
|
||||
pcaps.num_of_queue = 0;
|
||||
|
||||
devargs_all.is_tx_pcap =
|
||||
|
Loading…
Reference in New Issue
Block a user