Skip to contentSkip to conversation

rtnl: do not include num_rx_queues into msg when CONFIG_RPS is not set

PATCH In review Jiri Pirko 2 participants 3 messages Jul 22, 2012 – Jul 23, 2012

Subsystems (2)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH 1/1 rtnl: do not include num_rx_queues into msg when CONFIG_RPS is not set

---
 net/core/rtnetlink.c |    2 ++
 1 file changed, 2 insertions(+)
net/core/rtnetlink.c +2 -0
index 5bb1ebc..334b930 100644
@@ -892,7 +892,9 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev,
 	    nla_put_u32(skb, IFLA_GROUP, dev->group) ||
 	    nla_put_u32(skb, IFLA_PROMISCUITY, dev->promiscuity) ||
 	    nla_put_u32(skb, IFLA_NUM_TX_QUEUES, dev->num_tx_queues) ||
+#ifdef CONFIG_RPS
 	    nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) ||
+#endif
 	    (dev->ifindex != dev->iflink &&
 	     nla_put_u32(skb, IFLA_LINK, dev->iflink)) ||
 	    (dev->master &&
Signature · 1 line
1.7.10.4
author
#2 lore raw
Quoted 7 lines · Sun, Jul 22, 2012 at 09:27:46PM CEST, [email protected] wrote:

From: Jiri Pirko <[email protected]>
Date: Sun, 22 Jul 2012 09:26:42 +0200

Quoted 1 line

Jiri, I've been patiently waiting for you to ACK Mark A. Greear's patch fixing this bug, did you not see it at all?

Oh I missed that. That email somehow skipped my inbox and went only to ml folder...

Quoted 5 lines

http://patchwork.ozlabs.org/patch/172393/

I'm just going to apply it since you're not watching for fixes for code you've changed.