aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@animalcreek.com>2012-07-20 09:35:13 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-22 15:28:11 -0400
commit1d69c2b343c7e1dc9584b7aa446f40dbab4c4f80 (patch)
tree1d3741024e7a8c4197955e013be318b28e68df72 /net/core/rtnetlink.c
parentfd183f6a73fc0ff3e32c636dbb539e35d4c530c9 (diff)
rtnl: Add #ifdef CONFIG_RPS around num_rx_queues reference
Commit 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 (rtnl: allow to specify number of rx and tx queues on device creation) added a reference to the net_device structure's 'num_rx_queues' member in net/core/rtnetlink.c:rtnl_fill_ifinfo() However, the definition for 'num_rx_queues' is surrounded by an '#ifdef CONFIG_RPS' while the new reference to it is not. This causes a compile error when CONFIG_RPS is not defined. Fix the compile error by surrounding the new reference to 'num_rx_queues' by an '#ifdef CONFIG_RPS'. CC: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 5bb1ebca2eb..334b930e0de 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -892,7 +892,9 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev,
892 nla_put_u32(skb, IFLA_GROUP, dev->group) || 892 nla_put_u32(skb, IFLA_GROUP, dev->group) ||
893 nla_put_u32(skb, IFLA_PROMISCUITY, dev->promiscuity) || 893 nla_put_u32(skb, IFLA_PROMISCUITY, dev->promiscuity) ||
894 nla_put_u32(skb, IFLA_NUM_TX_QUEUES, dev->num_tx_queues) || 894 nla_put_u32(skb, IFLA_NUM_TX_QUEUES, dev->num_tx_queues) ||
895#ifdef CONFIG_RPS
895 nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) || 896 nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) ||
897#endif
896 (dev->ifindex != dev->iflink && 898 (dev->ifindex != dev->iflink &&
897 nla_put_u32(skb, IFLA_LINK, dev->iflink)) || 899 nla_put_u32(skb, IFLA_LINK, dev->iflink)) ||
898 (dev->master && 900 (dev->master &&