Re: [PATCH net-next v2 1/5] net: ethtool: Make RXNFC walking code accept a callback

From: Jacob Keller
Date: Thu Oct 26 2023 - 19:18:21 EST




On 10/26/2023 3:45 PM, Florian Fainelli wrote:
> In preparation for iterating over RXNFC rules for a different purpose,
> factor the generic code that already does that by allowing a callback to
> be specified. The body of ethtool_get_max_rxnfc_channel() now accepts a
> callback as an argument and is renamed to __ethtool_for_each_rxnfc().
>
> Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>

Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>