Thread (10 messages) 10 messages, 3 authors, 2025-09-11

Re: [PATCH net-next 4/7] net: ethtool: add get_rx_ring_count callback to optimize RX ring queries

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-10 16:10:38
Also in: lkml, netdev

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()
quoted hunk ↗ jump to hunk
+{
+	const struct ethtool_ops *ops = dev->ethtool_ops;
+	struct ethtool_rxnfc rx_rings;
You need to initialize this..
quoted hunk ↗ jump to hunk
+	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help