On 11/24/26 10:52, David Marchand wrote:
The dpdk_list serves different usecases:
- maintaining all DPDK ports link status (dpdk_watchdog),
- looking up a DPDK port id for checking which netdevice uses a DPDK
   port (if any),
- looking up a vhost_id for checking which netdevice uses a vHost port
   (if any),
- running some command on all DPDK and vHost backed ports,

Have a separate list (and mutex) for vHost ports objects.

Thanks to this, specialised usecases don't need to care about the
device type.

Signed-off-by: David Marchand <[email protected]>
Acked-by: Eelco Chaudron <[email protected]>
---
Changes since RFC v2:
- rebased,

---
  lib/netdev-dpdk-common.c |   3 +-
  lib/netdev-dpdk-common.h |   6 +-
  lib/netdev-dpdk.c        | 159 ++++++++++++++++++---------------------
  3 files changed, 79 insertions(+), 89 deletions(-)


Acked-by: Kevin Traynor <[email protected]>



_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to