rtnl: do not include num_rx_queues into msg when CONFIG_RPS is not set
Subsystems (2)
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
@@ -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
David Miller
maintainerFrom: Jiri Pirko <[email protected]>
Date: Sun, 22 Jul 2012 09:26:42 +0200
Quoted 1 line
Signed-off-by Jiri Pirko <[email protected]>
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?
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.
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 +0200Quoted 1 line
Signed-off-by Jiri Pirko <[email protected]>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.