On Mon, 15 Sep 2025 03:47:29 -0700 Breno Leitao wrote:
> @@ -1217,7 +1237,7 @@ static noinline_for_stack int 
> ethtool_get_rxrings(struct net_device *dev,
>       size_t info_size;
>       int ret;
>  
> -     if (!ops->get_rxnfc)
> +     if (!ops->get_rxnfc && !ops->get_rx_ring_count)
>               return -EOPNOTSUPP;

There's inconsistency in how we check for the ops being present.
Here we check for get_rxnfc and the new callback.
But ethtool_set_rxfh() and ethtool_set_rxfh_indir() are only checking
for get_rxnfc. I suppose we can remove the explicit ops checks and
let ethtool_get_rx_ring_count() return EOPNOTSUPP?

Reply via email to