net: Add info for NETDEV_CHANGEUPPER event
Some consumers of NETDEV_CHANGEUPPER event would like to know which upper device was linked/unlinked and what operation was carried. Add information in the notifier info block for that purpose. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
399e6f9581
commit
816dd19b3d
2 changed files with 24 additions and 2 deletions
|
|
@ -3556,6 +3556,20 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
|
|||
struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb,
|
||||
netdev_features_t features);
|
||||
|
||||
enum netdev_changeupper_event {
|
||||
NETDEV_CHANGEUPPER_LINK,
|
||||
NETDEV_CHANGEUPPER_UNLINK,
|
||||
};
|
||||
|
||||
struct netdev_changeupper_info {
|
||||
struct netdev_notifier_info info; /* must be first */
|
||||
enum netdev_changeupper_event event;
|
||||
struct net_device *upper;
|
||||
};
|
||||
|
||||
void netdev_changeupper_info_change(struct net_device *dev,
|
||||
struct netdev_changeupper_info *info);
|
||||
|
||||
struct netdev_bonding_info {
|
||||
ifslave slave;
|
||||
ifbond master;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue