Re: [PATCH net-next v2 10/15] ethtool: provide ring sizes with RINGS_GET request
From: Jakub Kicinski
Date: Thu Mar 12 2020 - 16:48:20 EST
On Thu, 12 Mar 2020 21:08:23 +0100 (CET) Michal Kubecek wrote:
> Implement RINGS_GET request to get ring sizes of a network device. These
> are traditionally available via ETHTOOL_GRINGPARAM ioctl request.
>
> Omit attributes for ring types which are not supported by driver or device
> (zero reported for maximum).
>
> v2: (all suggested by Jakub Kicinski)
> - minor cleanup in rings_prepare_data()
> - more descriptive rings_reply_size()
> - omit attributes with zero max size
>
> Signed-off-by: Michal Kubecek <mkubecek@xxxxxxx>
Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx>