[PATCH v11 02/25] net/ethtool: add new stringset ETH_SS_ULP_DDP_{CAPS,STATS}

Jakub Kicinski kuba at kernel.org
Fri Feb 3 19:42:59 PST 2023


On Fri,  3 Feb 2023 15:26:42 +0200 Aurelien Aptel wrote:
> This commit exposes ULP DDP capability and statistics names to
> userspace via netlink.
> 
> In order to support future ULP DDP capabilities and statistics without
> having to change the netlink protocol (and userspace ethtool) we add
> new string sets to let userspace dynamically fetch what the kernel
> supports.
> 
> * ETH_SS_ULP_DDP_CAPS stores names of ULP DDP capabilities
> * ETH_SS_ULP_DDP_STATS stores names of ULP DDP statistics.
> 
> These stringsets will be used in later commits when implementing the
> new ULP DDP GET/SET netlink messages.
> 
> We keep the convention of strset.c of having the static_assert()
> right after the array declaration, despite the checkpatch warning.

Reviewed-by: Jakub Kicinski <kuba at kernel.org>



More information about the Linux-nvme mailing list