On Tue, 09 Sep 2025 13:24:02 -0700 Breno Leitao wrote:
> +static int get_num_rxrings(struct net_device *dev)

ethtool_get_rx_ring_count()

> +{
> +     const struct ethtool_ops *ops = dev->ethtool_ops;
> +     struct ethtool_rxnfc rx_rings;

You need to initialize this..

> +     int ret;
> +
> +     if (ops->get_rx_ring_count)
> +             return ops->get_rx_ring_count(dev);
> +
> +     ret = ops->get_rxnfc(dev, &rx_rings, NULL);
> +     if (ret < 0)
> +             return ret;
-- 
pw-bot: cr

Reply via email to