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
@@ -11685,6 +11685,7 @@ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
|
||||
* @dev: the netdev being configured
|
||||
* @nlh: RTNL message
|
||||
* @flags: bridge flags
|
||||
* @extack: netlink extended ack
|
||||
*
|
||||
* Inserts a new hardware bridge if not already created and
|
||||
* enables the bridging mode requested (VEB or VEPA). If the
|
||||
@@ -11697,7 +11698,8 @@ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
|
||||
**/
|
||||
static int i40e_ndo_bridge_setlink(struct net_device *dev,
|
||||
struct nlmsghdr *nlh,
|
||||
u16 flags)
|
||||
u16 flags,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct i40e_netdev_priv *np = netdev_priv(dev);
|
||||
struct i40e_vsi *vsi = np->vsi;
|
||||
|
Reference in New Issue
Block a user