diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-05-10 12:48:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 18:43:55 -0400 |
commit | 5c34e0221423aeabc0b085adc5fccda3f91e2c49 (patch) | |
tree | 41f6a10a4404930804b6602266a701a1dbfe420e /include/net/switchdev.h | |
parent | 41c498b9359e360f08723b7605ec0c40926ec415 (diff) |
switchdev: add new switchdev_port_bridge_dellink
Same change as setlink. Provide the wrapper op for SELF ndo_bridge_dellink
and call into the switchdev driver to delete afspec VLANs.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r-- | include/net/switchdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index ce5ceb2dc677..8ffadca9e760 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h | |||
@@ -164,6 +164,12 @@ static inline int switchdev_port_obj_del(struct net_device *dev, | |||
164 | return -EOPNOTSUPP; | 164 | return -EOPNOTSUPP; |
165 | } | 165 | } |
166 | 166 | ||
167 | static inline int switchdev_port_bridge_dellink(struct net_device *dev, | ||
168 | struct nlmsghdr *nlh, u16 flags) | ||
169 | { | ||
170 | return -EOPNOTSUPP; | ||
171 | } | ||
172 | |||
167 | static inline int register_switchdev_notifier(struct notifier_block *nb) | 173 | static inline int register_switchdev_notifier(struct notifier_block *nb) |
168 | { | 174 | { |
169 | return 0; | 175 | return 0; |