On 1 Apr 2026, at 11:13, Eli Britstein wrote: > Change function signatures to take struct netdev_dpdk_common instead of > struct netdev_dpdk, and update internal accesses from dev->common.xxx to > common->xxx. This makes these functions reusable by netdev-doca which > also operates on netdev_dpdk_common. > > Signed-off-by: Eli Britstein <[email protected]> Hi Eli, The patch looks fine to me, however the more I think about the macro-based type polymorphism, I feel we should not have this. It creates fragile dependencies and becomes hard to understand and maintain. I would suggest moving them out of the common structure, or are there any real reasons for not doing this? I guess for the sw_stats we can do something like: void netdev_dpdk_get_custom_stats(struct netdev_dpdk_common *common, void *sw_stats, size_t stats_size, ...) { memset(sw_stats, 0, stats_size); } And for the tx_q fields, they're not shared by any of the functions. WDYT? Cheers, Eelco PS: I will continue the review of this series after my PTO. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- Re: [ovs-dev] [PATCH v3 01/11] ovs-rcu... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 01/11] ovs... Aaron Conole via dev
- Re: [ovs-dev] [PATCH v3 01/11... Gaetan Rivet
- [ovs-dev] [PATCH v3 02/11] refmap: Introduce refere... Eli Britstein
- Re: [ovs-dev] [PATCH v3 02/11] refmap: Introdu... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 02/11] refmap: Int... Eli Britstein via dev
- Re: [ovs-dev] [PATCH v3 02/11] refmap:... Eelco Chaudron via dev
- [ovs-dev] [PATCH v3 03/11] packets: Move ETH_TYPE_L... Eli Britstein via dev
- Re: [ovs-dev] [PATCH v3 03/11] packets: Move E... Eelco Chaudron via dev
- [ovs-dev] [PATCH v3 05/11] netdev-dpdk: Change acce... Eli Britstein
- Re: [ovs-dev] [PATCH v3 05/11] netdev-dpdk: Ch... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 05/11] netdev-dpdk... Eli Britstein
- [ovs-dev] [PATCH v3 10/11] acinclude.m4: Add '--wit... Eli Britstein
- Re: [ovs-dev] [PATCH v3 10/11] acinclude.m4: A... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 10/11] acinclude.m... Eli Britstein
- Re: [ovs-dev] [PATCH v3 10/11] acinclu... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 10/11] aci... Ilya Maximets
- Re: [ovs-dev] [PATCH v3 10/11] aci... Eli Britstein via dev
- Re: [ovs-dev] [PATCH v3 10/11... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH v3 1... Eli Britstein via dev
- [ovs-dev] [PATCH v3 09/11] unixctl: Introduce unixc... Eli Britstein
