net/mlx5e: Update netdev features after changing XDP state
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Mon, 23 May 2022 12:39:13 +0000 (15:39 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 31 May 2022 20:40:55 +0000 (13:40 -0700)
commitf6279f113ad593971999c877eb69dc3d36a75894
tree76dc4c6718e99c165f73bc9e29431d094d19215c
parent3fc2a9e89b3508a5cc0c324f26d7b4740ba8c456
net/mlx5e: Update netdev features after changing XDP state

Some features (LRO, HW GRO) conflict with XDP. If there is an attempt to
enable such features while XDP is active, they will be set to `off
[requested on]`. In order to activate these features after XDP is turned
off, the driver needs to call netdev_update_features(). This commit adds
this missing call after XDP state changes.

Fixes: cf6e34c8c22f ("net/mlx5e: Properly block LRO when XDP is enabled")
Fixes: b0617e7b3500 ("net/mlx5e: Properly block HW GRO when XDP is enabled")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c