DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2 0/2] enable virtual PMD promiscuous and multicast
@ 2019-10-21 12:22 Ciara Power
  2019-10-21 12:22 ` [dpdk-dev] [PATCH v2 1/2] ethdev: add check for device promiscuous state Ciara Power
  2019-10-21 12:22 ` [dpdk-dev] [PATCH v2 2/2] drivers/net: set enabled promiscuous and multicast Ciara Power
  0 siblings, 2 replies; 8+ messages in thread
From: Ciara Power @ 2019-10-21 12:22 UTC (permalink / raw)
  To: thomas, ferruh.yigit, arybchenko, mtetsuyah, bruce.richardson
  Cc: dev, Ciara Power

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-10-22  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 12:22 [dpdk-dev] [PATCH v2 0/2] enable virtual PMD promiscuous and multicast Ciara Power
2019-10-21 12:22 ` [dpdk-dev] [PATCH v2 1/2] ethdev: add check for device promiscuous state Ciara Power
2019-10-21 18:39   ` Ferruh Yigit
2019-10-22  7:03   ` Andrew Rybchenko
2019-10-22  8:18     ` Ferruh Yigit
2019-10-21 12:22 ` [dpdk-dev] [PATCH v2 2/2] drivers/net: set enabled promiscuous and multicast Ciara Power
2019-10-21 18:40   ` Ferruh Yigit
2019-10-22  7:12   ` Andrew Rybchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).