When virtual PMDs are used to run sample applications, the application fails due to the enable promiscuous function being called. The virtual PMDs do not have dev_ops for enabling promiscuous mode, and return -ENOTSUP as a result.
Promiscuous and multicast modes are now initialised as enabled for the virtual PMDs included in this patchset. When the enable promiscuous function is called, a check now exists to allow the function return successfully if the state is already enabled for the device. This allows virtual PMDs run existing sample applications without failing. --- v2: * Removed dummy dev_ops functions. * Added promiscuous state check in ethdev API functions. * Initialised promiscuous and multicast states to enabled. Ciara Power (2): ethdev: add check for device promiscuous state drivers/net: set enabled promiscuous and multicast drivers/net/kni/rte_eth_kni.c | 2 ++ drivers/net/null/rte_eth_null.c | 2 ++ drivers/net/pcap/rte_eth_pcap.c | 2 ++ drivers/net/ring/rte_eth_ring.c | 2 ++ lib/librte_ethdev/rte_ethdev.c | 22 ++++++++++++---------- 5 files changed, 20 insertions(+), 10 deletions(-) -- 2.17.1