net/mlx5e: Fix trust state reset in reload
authorMoshe Tal <moshet@nvidia.com>
Wed, 9 Feb 2022 17:23:56 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:12 +0000 (12:30 +0200)
commitec26ba1f202a0fd0e92efa7b4dfe4807ec605b6e
tree49ed7f02c1b9a7e3d3a1afa7ab77ccf4471633e2
parent504d9b86745e2897cc31a1d8589ba0946a5e021a
net/mlx5e: Fix trust state reset in reload

commit b781bff882d16175277ca129c382886cb4c74a2c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c