@@ -4236,13 +4236,11 @@ mlxsw_sp_master_lag_check(struct mlxsw_sp *mlxsw_sp,
4236
4236
u16 lag_id ;
4237
4237
4238
4238
if (mlxsw_sp_lag_index_get (mlxsw_sp , lag_dev , & lag_id ) != 0 ) {
4239
- NL_SET_ERR_MSG (extack ,
4240
- "spectrum: Exceeded number of supported LAG devices" );
4239
+ NL_SET_ERR_MSG_MOD (extack , "Exceeded number of supported LAG devices" );
4241
4240
return false;
4242
4241
}
4243
4242
if (lag_upper_info -> tx_type != NETDEV_LAG_TX_TYPE_HASH ) {
4244
- NL_SET_ERR_MSG (extack ,
4245
- "spectrum: LAG device using unsupported Tx type" );
4243
+ NL_SET_ERR_MSG_MOD (extack , "LAG device using unsupported Tx type" );
4246
4244
return false;
4247
4245
}
4248
4246
return true;
@@ -4484,8 +4482,7 @@ static int mlxsw_sp_netdevice_port_upper_event(struct net_device *lower_dev,
4484
4482
!netif_is_lag_master (upper_dev ) &&
4485
4483
!netif_is_bridge_master (upper_dev ) &&
4486
4484
!netif_is_ovs_master (upper_dev )) {
4487
- NL_SET_ERR_MSG (extack ,
4488
- "spectrum: Unknown upper device type" );
4485
+ NL_SET_ERR_MSG_MOD (extack , "Unknown upper device type" );
4489
4486
return - EINVAL ;
4490
4487
}
4491
4488
if (!info -> linking )
@@ -4494,33 +4491,28 @@ static int mlxsw_sp_netdevice_port_upper_event(struct net_device *lower_dev,
4494
4491
(!netif_is_bridge_master (upper_dev ) ||
4495
4492
!mlxsw_sp_bridge_device_is_offloaded (mlxsw_sp ,
4496
4493
upper_dev ))) {
4497
- NL_SET_ERR_MSG (extack ,
4498
- "spectrum: Enslaving a port to a device that already has an upper device is not supported" );
4494
+ NL_SET_ERR_MSG_MOD (extack , "Enslaving a port to a device that already has an upper device is not supported" );
4499
4495
return - EINVAL ;
4500
4496
}
4501
4497
if (netif_is_lag_master (upper_dev ) &&
4502
4498
!mlxsw_sp_master_lag_check (mlxsw_sp , upper_dev ,
4503
4499
info -> upper_info , extack ))
4504
4500
return - EINVAL ;
4505
4501
if (netif_is_lag_master (upper_dev ) && vlan_uses_dev (dev )) {
4506
- NL_SET_ERR_MSG (extack ,
4507
- "spectrum: Master device is a LAG master and this device has a VLAN" );
4502
+ NL_SET_ERR_MSG_MOD (extack , "Master device is a LAG master and this device has a VLAN" );
4508
4503
return - EINVAL ;
4509
4504
}
4510
4505
if (netif_is_lag_port (dev ) && is_vlan_dev (upper_dev ) &&
4511
4506
!netif_is_lag_master (vlan_dev_real_dev (upper_dev ))) {
4512
- NL_SET_ERR_MSG (extack ,
4513
- "spectrum: Can not put a VLAN on a LAG port" );
4507
+ NL_SET_ERR_MSG_MOD (extack , "Can not put a VLAN on a LAG port" );
4514
4508
return - EINVAL ;
4515
4509
}
4516
4510
if (netif_is_ovs_master (upper_dev ) && vlan_uses_dev (dev )) {
4517
- NL_SET_ERR_MSG (extack ,
4518
- "spectrum: Master device is an OVS master and this device has a VLAN" );
4511
+ NL_SET_ERR_MSG_MOD (extack , "Master device is an OVS master and this device has a VLAN" );
4519
4512
return - EINVAL ;
4520
4513
}
4521
4514
if (netif_is_ovs_port (dev ) && is_vlan_dev (upper_dev )) {
4522
- NL_SET_ERR_MSG (extack ,
4523
- "spectrum: Can not put a VLAN on an OVS port" );
4515
+ NL_SET_ERR_MSG_MOD (extack , "Can not put a VLAN on an OVS port" );
4524
4516
return - EINVAL ;
4525
4517
}
4526
4518
break ;
@@ -4633,7 +4625,7 @@ static int mlxsw_sp_netdevice_port_vlan_event(struct net_device *vlan_dev,
4633
4625
case NETDEV_PRECHANGEUPPER :
4634
4626
upper_dev = info -> upper_dev ;
4635
4627
if (!netif_is_bridge_master (upper_dev )) {
4636
- NL_SET_ERR_MSG (extack , "spectrum: VLAN devices only support bridge and VRF uppers" );
4628
+ NL_SET_ERR_MSG_MOD (extack , "VLAN devices only support bridge and VRF uppers" );
4637
4629
return - EINVAL ;
4638
4630
}
4639
4631
if (!info -> linking )
@@ -4642,7 +4634,7 @@ static int mlxsw_sp_netdevice_port_vlan_event(struct net_device *vlan_dev,
4642
4634
(!netif_is_bridge_master (upper_dev ) ||
4643
4635
!mlxsw_sp_bridge_device_is_offloaded (mlxsw_sp ,
4644
4636
upper_dev ))) {
4645
- NL_SET_ERR_MSG (extack , "spectrum: Enslaving a port to a device that already has an upper device is not supported" );
4637
+ NL_SET_ERR_MSG_MOD (extack , "Enslaving a port to a device that already has an upper device is not supported" );
4646
4638
return - EINVAL ;
4647
4639
}
4648
4640
break ;
0 commit comments