On Thu, 26 Nov 2026 at 11:32, Kevin Traynor <[email protected]> wrote:
>
> 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.

We could reuse the same vlog (via a simple #define this_module
(*VLM_netdev_dpdk) in the netdev-dpdk-common.c).
It would set a precedent, as I see this nowhere in OVS tree.

I just have one concern.
As the goal is to share code with netdev-doca.c, using a single vlog
in the shared code means that netdev-doca devices will emit logs under
netdev_dpdk instead of a netdev_dpdk_common.
It could be confusing.


-- 
David Marchand

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

Reply via email to