diff options
Diffstat (limited to 'include/net/rtnetlink.h')
| -rw-r--r-- | include/net/rtnetlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index e21b9f9653c0..6c6d5393fc34 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
| @@ -46,6 +46,7 @@ static inline int rtnl_msg_family(const struct nlmsghdr *nlh) | |||
| 46 | * to create when creating a new device. | 46 | * to create when creating a new device. |
| 47 | * @get_num_rx_queues: Function to determine number of receive queues | 47 | * @get_num_rx_queues: Function to determine number of receive queues |
| 48 | * to create when creating a new device. | 48 | * to create when creating a new device. |
| 49 | * @get_link_net: Function to get the i/o netns of the device | ||
| 49 | */ | 50 | */ |
| 50 | struct rtnl_link_ops { | 51 | struct rtnl_link_ops { |
| 51 | struct list_head list; | 52 | struct list_head list; |
| @@ -93,6 +94,7 @@ struct rtnl_link_ops { | |||
| 93 | int (*fill_slave_info)(struct sk_buff *skb, | 94 | int (*fill_slave_info)(struct sk_buff *skb, |
| 94 | const struct net_device *dev, | 95 | const struct net_device *dev, |
| 95 | const struct net_device *slave_dev); | 96 | const struct net_device *slave_dev); |
| 97 | struct net *(*get_link_net)(const struct net_device *dev); | ||
| 96 | }; | 98 | }; |
| 97 | 99 | ||
| 98 | int __rtnl_link_register(struct rtnl_link_ops *ops); | 100 | int __rtnl_link_register(struct rtnl_link_ops *ops); |
