net/mlx5e: DCBNL fix min inline header size for dscp
commit7580ec4a51e83429c5864e42639420a33702163b
authorHuy Nguyen <huyn@mellanox.com>
Thu, 21 Dec 2017 21:15:24 +0000 (21 15:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 May 2018 08:19:35 +0000 (19 10:19 +0200)
tree8a9019b54d2d035bb4677eb16f1d2cfc05ebfc6c
parent675776ca53f05174eb1407e3fb666a2d2ea218cc
net/mlx5e: DCBNL fix min inline header size for dscp

[ Upstream commit 35f80acb24cd53dabd65e0660e46afdf5c45991d ]

When the trust state is set to dscp and the netdev is down, the inline
header size is not updated. When netdev is up, the inline header size
stays at L2 instead of IP.

Fix this issue by updating the private parameter when the netdev is in
down so that when netdev is up, it picks up the right header size.

Fixes: fbcb127e89ba ("net/mlx5e: Support DSCP trust state ...")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c