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>
This commit is contained in:
committed by
David S. Miller
parent
351cbde969
commit
2fd527b72b
@@ -4332,7 +4332,8 @@ static int rtnl_bridge_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
goto out;
|
||||
}
|
||||
|
||||
err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags);
|
||||
err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags,
|
||||
extack);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
@@ -4344,7 +4345,8 @@ static int rtnl_bridge_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
err = -EOPNOTSUPP;
|
||||
else
|
||||
err = dev->netdev_ops->ndo_bridge_setlink(dev, nlh,
|
||||
flags);
|
||||
flags,
|
||||
extack);
|
||||
if (!err) {
|
||||
flags &= ~BRIDGE_FLAGS_SELF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user