]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:12 +0000 (18:36 +0200)
commitdbe6ec16fcbc6fd65779b903905619bd3a3719f2
tree8eaa9fe116fb0be7198a45b93480249cfa957e00
parent36e77a8beb59eb262212c4611feacd1b320a98ce
net/mlx5e: Update netdev features after changing XDP state

[ Upstream commit 2530297fc7c0df8739f3b5d2d6d3eaf5fab0695a ]

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: cdfa51004b50 ("net/mlx5e: Properly block LRO when XDP is enabled")
Fixes: 2125deee1f60 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c