diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-07-19 22:28:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 14:06:59 -0400 |
commit | d40156aa5ecbd51fed932ed4813df82b56e5ff4d (patch) | |
tree | 34b9d6b16ab469bde1998a20c9b26b9388578bd9 /include | |
parent | ee6ae1a1d58c70fc864bc777a36be56b0880ebff (diff) |
rtnl: allow to specify different num for rx and tx queue count
Also cut out unused function parameters and possible err in return
value.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/rtnetlink.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index bbcfd0993432..6b00c4fc4291 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
@@ -44,8 +44,10 @@ static inline int rtnl_msg_family(const struct nlmsghdr *nlh) | |||
44 | * @get_xstats_size: Function to calculate required room for dumping device | 44 | * @get_xstats_size: Function to calculate required room for dumping device |
45 | * specific statistics | 45 | * specific statistics |
46 | * @fill_xstats: Function to dump device specific statistics | 46 | * @fill_xstats: Function to dump device specific statistics |
47 | * @get_tx_queues: Function to determine number of transmit queues to create when | 47 | * @get_num_tx_queues: Function to determine number of transmit queues |
48 | * creating a new device. | 48 | * to create when creating a new device. |
49 | * @get_num_rx_queues: Function to determine number of receive queues | ||
50 | * to create when creating a new device. | ||
49 | */ | 51 | */ |
50 | struct rtnl_link_ops { | 52 | struct rtnl_link_ops { |
51 | struct list_head list; | 53 | struct list_head list; |
@@ -77,8 +79,8 @@ struct rtnl_link_ops { | |||
77 | size_t (*get_xstats_size)(const struct net_device *dev); | 79 | size_t (*get_xstats_size)(const struct net_device *dev); |
78 | int (*fill_xstats)(struct sk_buff *skb, | 80 | int (*fill_xstats)(struct sk_buff *skb, |
79 | const struct net_device *dev); | 81 | const struct net_device *dev); |
80 | int (*get_tx_queues)(struct net *net, | 82 | unsigned int (*get_num_tx_queues)(void); |
81 | struct nlattr *tb[]); | 83 | unsigned int (*get_num_rx_queues)(void); |
82 | }; | 84 | }; |
83 | 85 | ||
84 | extern int __rtnl_link_register(struct rtnl_link_ops *ops); | 86 | extern int __rtnl_link_register(struct rtnl_link_ops *ops); |