diff options
author | Petr Machata <petrm@mellanox.com> | 2018-12-12 12:02:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-12 19:34:21 -0500 |
commit | 69b7320e14e6e8c7a77fa5803cecc86434a1162d (patch) | |
tree | 8b7a52552bdea210f55d06d9ecc0b5a5e47f07be /include/net/switchdev.h | |
parent | 169327d5850cb80d98d095cfaf8dfbb63d576864 (diff) |
net: switchdev: Add extack argument to switchdev_port_obj_add()
After the previous patch, bridge driver has extack argument available to
pass to switchdev. Therefore extend switchdev_port_obj_add() with this
argument, updating all callers, and passing the argument through to
switchdev_port_obj_notify().
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
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, 4 insertions, 2 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 866b6d148b77..69016305ad58 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h | |||
@@ -180,7 +180,8 @@ int switchdev_port_attr_get(struct net_device *dev, | |||
180 | int switchdev_port_attr_set(struct net_device *dev, | 180 | int switchdev_port_attr_set(struct net_device *dev, |
181 | const struct switchdev_attr *attr); | 181 | const struct switchdev_attr *attr); |
182 | int switchdev_port_obj_add(struct net_device *dev, | 182 | int switchdev_port_obj_add(struct net_device *dev, |
183 | const struct switchdev_obj *obj); | 183 | const struct switchdev_obj *obj, |
184 | struct netlink_ext_ack *extack); | ||
184 | int switchdev_port_obj_del(struct net_device *dev, | 185 | int switchdev_port_obj_del(struct net_device *dev, |
185 | const struct switchdev_obj *obj); | 186 | const struct switchdev_obj *obj); |
186 | 187 | ||
@@ -233,7 +234,8 @@ static inline int switchdev_port_attr_set(struct net_device *dev, | |||
233 | } | 234 | } |
234 | 235 | ||
235 | static inline int switchdev_port_obj_add(struct net_device *dev, | 236 | static inline int switchdev_port_obj_add(struct net_device *dev, |
236 | const struct switchdev_obj *obj) | 237 | const struct switchdev_obj *obj, |
238 | struct netlink_ext_ack *extack) | ||
237 | { | 239 | { |
238 | return -EOPNOTSUPP; | 240 | return -EOPNOTSUPP; |
239 | } | 241 | } |