Re: [PATCH net-next v5 3/9] virtio_net: remove "_queue" from ethtool -S

2024-04-09 Thread Jason Wang
On Mon, Mar 18, 2024 at 7:06 PM Xuan Zhuo wrote: > > The key size of ethtool -S is controlled by this macro. > > ETH_GSTRING_LEN 32 > > That includes the \0 at the end. So the max length of the key name must > is 31. But the length of the prefix "rx_queue_0_" is 11. If the queue > num is larger th

[PATCH net-next v5 3/9] virtio_net: remove "_queue" from ethtool -S

2024-03-18 Thread Xuan Zhuo
The key size of ethtool -S is controlled by this macro. ETH_GSTRING_LEN 32 That includes the \0 at the end. So the max length of the key name must is 31. But the length of the prefix "rx_queue_0_" is 11. If the queue num is larger than 10, the length of the prefix is 12. So the key name max is 19