aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-12-12 12:02:48 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-12 19:34:21 -0500
commit2fd527b72bb6f95dfe8a1902e998cb76390c431e (patch)
tree94b0ba7d645c645a20f3310444d85977e13633d2 /net/core/rtnetlink.c
parent351cbde969230a072cabca9969c68ab04e58e6b3 (diff)
net: ndo_bridge_setlink: Add extack
Drivers may not be able to implement a VLAN addition or reconfiguration. In those cases it's desirable to explain to the user that it was rejected (and why). To that end, add extack argument to ndo_bridge_setlink. Adapt all users to that change. Following patches will use the new argument in the bridge driver. Signed-off-by: Petr Machata <petrm@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index c9c0407a7ee0..3b6e551f9e69 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -4332,7 +4332,8 @@ static int rtnl_bridge_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
4332 goto out; 4332 goto out;
4333 } 4333 }
4334 4334
4335 err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags); 4335 err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags,
4336 extack);
4336 if (err) 4337 if (err)
4337 goto out; 4338 goto out;
4338 4339
@@ -4344,7 +4345,8 @@ static int rtnl_bridge_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
4344 err = -EOPNOTSUPP; 4345 err = -EOPNOTSUPP;
4345 else 4346 else
4346 err = dev->netdev_ops->ndo_bridge_setlink(dev, nlh, 4347 err = dev->netdev_ops->ndo_bridge_setlink(dev, nlh,
4347 flags); 4348 flags,
4349 extack);
4348 if (!err) { 4350 if (!err) {
4349 flags &= ~BRIDGE_FLAGS_SELF; 4351 flags &= ~BRIDGE_FLAGS_SELF;
4350 4352