[PATCH v8 03/25] net/ethtool: add ULP_DDP_{GET,SET} operations for caps and stats

Aurelien Aptel aaptel at nvidia.com
Thu Jan 12 10:50:16 PST 2023


Hi Jakub,

> -----Original Message-----
> The implementation of stats is not what I had in mind.
> None of the stats you listed under "Statistics" in the documentation look nVidia
> specific. The implementation should look something like the pause frame stats
> (struct ethtool_pause_stats etc) but you can add the dynamic string set if you
> like.
> 
> If given implementation does not support one of the stats it will not fill in the
> value and netlink will skip over it. The truly vendor- -specific stats (if any) can go
> to the old ethtool -S.

Do you mean that we could use the dynamic string approach and just define the counters names in netlink?
Our concern is that it will not allow us to have those stats per queue (as we do in the mlx patches), in
that case we can suggest reusing ethtool -Q option to request per-queue stats.
What do you think?

Thanks,



More information about the Linux-nvme mailing list