On 11/24/26 10:52, David Marchand wrote:
Define a netdev_dpdk_common structure that is a 1:1 copy of netdev_dpdk
at this point.

At this point of the changes, the "common" fields can be identified by
looking at netdev_dpdk_common_construct() content.

Then move helpers that are not eth/vhost specific, and prefer
accessing common fields with a common-> pointer.

Signed-off-by: David Marchand<[email protected]>
Acked-by: Eelco Chaudron<[email protected]>
---
Changes since v1:
- rebased:
   - removal of unused cache line markers,
   - removal of buf_size,
   - qos_conf destroy call (had to introduce a new helper),
- moved netdev_dpdk_common_get_sw_custom_stats call back under device
   mutex,

Changes since RFC v1:
- moved construct/destruct helpers to netdev-dpdk-common.c,
- added specific numa_id helpers,

---
  lib/automake.mk          |    4 +-
  lib/netdev-dpdk-common.c |  203 ++++++++
  lib/netdev-dpdk-common.h |  236 +++++++++
  lib/netdev-dpdk.c        | 1033 ++++++++++++++++++--------------------
  4 files changed, 919 insertions(+), 557 deletions(-)
  create mode 100644 lib/netdev-dpdk-common.c
  create mode 100644 lib/netdev-dpdk-common.h


One concern is that 'ovs-appctl vlog/set netdev_dpdk:dbg' will no longer return the same dbg as previously.

From a user perspective, it doesn't feel like we need both a netdev_dpdk and netdev_dpdk_common logging modules or clear what the split would be.

There is also the danger someones debug scripts just stay with netdev_dpdk:dbg only and they "lose" logs. I think a single logging module seems better from a user perspective.






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

Reply via email to