Re: [PATCH net-next v2 11/15] ethtool: set device ring sizes with RINGS_SET request
From: Jakub Kicinski
Date: Thu Mar 12 2020 - 16:50:05 EST
On Thu, 12 Mar 2020 21:08:28 +0100 (CET) Michal Kubecek wrote:
> Implement RINGS_SET netlink request to set ring sizes of a network device.
> These are traditionally set with ETHTOOL_SRINGPARAM ioctl request.
>
> Like the ioctl implementation, the generic ethtool code checks if supplied
> values do not exceed driver defined limits; if they do, first offending
> attribute is reported using extack.
>
> v2:
> - fix netdev reference leak in error path (found by Jakub Kicinsky)
>
> Signed-off-by: Michal Kubecek <mkubecek@xxxxxxx>
Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx>