mlx5en: Fix SIOCSIFCAPNV
In4cc5d081d8, a change was introduced that manipulated drv_ioctl_data->reqcap using IFCAP2 bits. This was noticed when creating a mixed lagg with mce0 and ixl0 caused the interfaces' txcsum caps to be disabled. Fixes:4cc5d081d8Reviewed by: glebius Sponsored by: Netflix MFC After: 7 days
This commit is contained in:
@@ -3557,12 +3557,12 @@ mlx5e_ioctl(if_t ifp, u_long command, caddr_t data)
|
||||
IFCAP_TXTLS6);
|
||||
}
|
||||
if (!mlx5e_is_tlsrx_capable(priv->mdev)) {
|
||||
drv_ioctl_data->reqcap &= ~(
|
||||
drv_ioctl_data->reqcap2 &= ~(
|
||||
IFCAP2_BIT(IFCAP2_RXTLS4) |
|
||||
IFCAP2_BIT(IFCAP2_RXTLS6));
|
||||
}
|
||||
if (!mlx5e_is_ipsec_capable(priv->mdev)) {
|
||||
drv_ioctl_data->reqcap &=
|
||||
drv_ioctl_data->reqcap2 &=
|
||||
~IFCAP2_BIT(IFCAP2_IPSEC_OFFLOAD);
|
||||
}
|
||||
if (!mlx5e_is_ratelimit_capable(priv->mdev)) {
|
||||
|
||||
Reference in New Issue
Block a user