net/pcap: fix single iface support
authorAideen McLoughlin <aideen.mcloughlin@intel.com>
Tue, 16 Jul 2019 14:26:21 +0000 (15:26 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commitdb87e1e3c11a1576326756318859c75c0d645ed2
treef46fc2722a09ffb8c2749b3869afb0355759cba1
parent49a0a2ffd5db85f7bcc1de37391272f859aabbd4
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 <aideen.mcloughlin@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c