static int
mlxsw_sp_br_ban_rif_pvid_change(struct mlxsw_sp *mlxsw_sp,
const struct net_device *br_dev,
- const struct switchdev_obj_port_vlan *vlan)
+ const struct switchdev_obj_port_vlan *vlan,
+ struct netlink_ext_ack *extack)
{
u16 pvid;
if (vlan->flags & BRIDGE_VLAN_INFO_PVID) {
if (vlan->vid != pvid) {
- netdev_err(br_dev, "Can't change PVID, it's used by router interface\n");
+ NL_SET_ERR_MSG_MOD(extack, "Can't change PVID, it's used by router interface");
return -EBUSY;
}
} else {
if (vlan->vid == pvid) {
- netdev_err(br_dev, "Can't remove PVID, it's used by router interface\n");
+ NL_SET_ERR_MSG_MOD(extack, "Can't remove PVID, it's used by router interface");
return -EBUSY;
}
}
if (br_vlan_enabled(orig_dev))
err = mlxsw_sp_br_ban_rif_pvid_change(mlxsw_sp,
- orig_dev, vlan);
+ orig_dev, vlan,
+ extack);
if (!err)
err = -EOPNOTSUPP;
return err;