aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/rtnetlink.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/net/rtnetlink.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'include/net/rtnetlink.h')
-rw-r--r--include/net/rtnetlink.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
index 5a15fabd6a7..678f1ffaf84 100644
--- a/include/net/rtnetlink.h
+++ b/include/net/rtnetlink.h
@@ -6,7 +6,7 @@
6 6
7typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, void *); 7typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, void *);
8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); 8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
9typedef u16 (*rtnl_calcit_func)(struct sk_buff *, struct nlmsghdr *); 9typedef u16 (*rtnl_calcit_func)(struct sk_buff *);
10 10
11extern int __rtnl_register(int protocol, int msgtype, 11extern int __rtnl_register(int protocol, int msgtype,
12 rtnl_doit_func, rtnl_dumpit_func, 12 rtnl_doit_func, rtnl_dumpit_func,
@@ -41,13 +41,9 @@ static inline int rtnl_msg_family(const struct nlmsghdr *nlh)
41 * @get_size: Function to calculate required room for dumping device 41 * @get_size: Function to calculate required room for dumping device
42 * specific netlink attributes 42 * specific netlink attributes
43 * @fill_info: Function to dump device specific netlink attributes 43 * @fill_info: Function to dump device specific netlink attributes
44 * @get_xstats_size: Function to calculate required room for dumping device 44 * @get_xstats_size: Function to calculate required room for dumping devic
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_num_tx_queues: Function to determine number of transmit queues
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.
51 */ 47 */
52struct rtnl_link_ops { 48struct rtnl_link_ops {
53 struct list_head list; 49 struct list_head list;
@@ -79,8 +75,9 @@ struct rtnl_link_ops {
79 size_t (*get_xstats_size)(const struct net_device *dev); 75 size_t (*get_xstats_size)(const struct net_device *dev);
80 int (*fill_xstats)(struct sk_buff *skb, 76 int (*fill_xstats)(struct sk_buff *skb,
81 const struct net_device *dev); 77 const struct net_device *dev);
82 unsigned int (*get_num_tx_queues)(void); 78 int (*get_tx_queues)(struct net *net, struct nlattr *tb[],
83 unsigned int (*get_num_rx_queues)(void); 79 unsigned int *tx_queues,
80 unsigned int *real_tx_queues);
84}; 81};
85 82
86extern int __rtnl_link_register(struct rtnl_link_ops *ops); 83extern int __rtnl_link_register(struct rtnl_link_ops *ops);
@@ -97,7 +94,7 @@ extern void rtnl_link_unregister(struct rtnl_link_ops *ops);
97 * @fill_link_af: Function to fill IFLA_AF_SPEC with address family 94 * @fill_link_af: Function to fill IFLA_AF_SPEC with address family
98 * specific netlink attributes. 95 * specific netlink attributes.
99 * @get_link_af_size: Function to calculate size of address family specific 96 * @get_link_af_size: Function to calculate size of address family specific
100 * netlink attributes. 97 * netlink attributes exlusive the container attribute.
101 * @validate_link_af: Validate a IFLA_AF_SPEC attribute, must check attr 98 * @validate_link_af: Validate a IFLA_AF_SPEC attribute, must check attr
102 * for invalid configuration settings. 99 * for invalid configuration settings.
103 * @set_link_af: Function to parse a IFLA_AF_SPEC attribute and modify 100 * @set_link_af: Function to parse a IFLA_AF_SPEC attribute and modify
@@ -125,7 +122,7 @@ extern void rtnl_af_unregister(struct rtnl_af_ops *ops);
125 122
126 123
127extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]); 124extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
128extern struct net_device *rtnl_create_link(struct net *net, 125extern struct net_device *rtnl_create_link(struct net *src_net, struct net *net,
129 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]); 126 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]);
130extern int rtnl_configure_link(struct net_device *dev, 127extern int rtnl_configure_link(struct net_device *dev,
131 const struct ifinfomsg *ifm); 128 const struct ifinfomsg *ifm);