diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-07-19 22:28:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 14:07:00 -0400 |
commit | 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 (patch) | |
tree | e0b8367bc36b79986d0c5951485531377a39c680 /include/linux/if_link.h | |
parent | d40156aa5ecbd51fed932ed4813df82b56e5ff4d (diff) |
rtnl: allow to specify number of rx and tx queues on device creation
This patch introduces IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES by
which userspace can set number of rx and/or tx queues to be allocated
for newly created netdevice.
This overrides ops->get_num_[tr]x_queues()
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r-- | include/linux/if_link.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index f715750d0b87..ac173bd2ab65 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h | |||
@@ -140,6 +140,8 @@ enum { | |||
140 | IFLA_EXT_MASK, /* Extended info mask, VFs, etc */ | 140 | IFLA_EXT_MASK, /* Extended info mask, VFs, etc */ |
141 | IFLA_PROMISCUITY, /* Promiscuity count: > 0 means acts PROMISC */ | 141 | IFLA_PROMISCUITY, /* Promiscuity count: > 0 means acts PROMISC */ |
142 | #define IFLA_PROMISCUITY IFLA_PROMISCUITY | 142 | #define IFLA_PROMISCUITY IFLA_PROMISCUITY |
143 | IFLA_NUM_TX_QUEUES, | ||
144 | IFLA_NUM_RX_QUEUES, | ||
143 | __IFLA_MAX | 145 | __IFLA_MAX |
144 | }; | 146 | }; |
145 | 147 | ||