Subject: Re: [PATCH ethtool] netlink: rss: retrieve ring count using ETHTOOL_GRXRINGS ioctl

From: Jacob Keller <[email-masked]>
Date: Thu, 19 Sep 2024 10:58:48 -0700

On 9/13/2024 4:07 PM, Mogilappagari, Sudheer wrote:
> 
> 
>> -----Original Message-----
>> From: Vladimir Oltean <[email-masked]>
>> Sent: Friday, September 13, 2024 3:49 PM
>> To: Mogilappagari, Sudheer <[email-masked]>
>> Cc: [email-masked]; Michal Kubecek <[email-masked]>; Jakub
>> Kicinski <[email-masked]>
>> Subject: Re: [PATCH ethtool] netlink: rss: retrieve ring count using
>> ETHTOOL_GRXRINGS ioctl
>>
>> Hi Sudheer,
>>
>> On Fri, Sep 13, 2024 at 10:43:19PM +0000, Mogilappagari, Sudheer wrote:
>>> Hi Vladimir, my understanding is ioctls are not used in ethtool
>>> netlink path. Can we use ETHTOOL_MSG_RINGS_GET
>> (tb[ETHTOOL_A_RINGS_RX]
>>> member) instead ?
>>
>> You mean this?
>>
>>   ``ETHTOOL_A_RINGS_RX``                u32     size of RX ring
> 
> Yes. I had meant ETHTOOL_A_RINGS_RX but I see it is ring size and not ring
> count. There seems to be no netlink message that fetches ringcount info. 
> 

We could extend the netlink interface to add this over netlink instead
of ioctl, but that hasn't been done yet.