net/mlx5e: Fix trust state reset in reload
authorMoshe Tal <moshet@nvidia.com>
Wed, 9 Feb 2022 17:23:56 +0000 (19:23 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 4 May 2022 07:00:06 +0000 (00:00 -0700)
commitb781bff882d16175277ca129c382886cb4c74a2c
tree61540c8375da8443d4a9983c4b42e510c98980ad
parent0e322efd64d2ad11a773f7a314512086ebbe000c
net/mlx5e: Fix trust state reset in reload

Setting dscp2prio during the driver reload can cause dcb ieee app list to
be not empty after the reload finish and as a result to a conflict between
the priority trust state reported by the app and the state in the device
register.

Reset the dcb ieee app list on initialization in case this is
conflicting with the register status.

Fixes: 2a5e7a1344f4 ("net/mlx5e: Add dcbnl dscp to priority support")
Signed-off-by: Moshe Tal <moshet@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c