]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net/mlx5e: DCBNL fix min inline header size for dscp
authorHuy Nguyen <huyn@mellanox.com>
Thu, 21 Dec 2017 21:15:24 +0000 (15:15 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:27:00 +0000 (12:27 +0200)
commit50f7cc6378ecc75b7e8b4ed87338b3b052aa51a8
tree00c440ba2925c6eef1aad1767853da40cc09be27
parent53a852f65282701080aa11963c23b57af3202edb
net/mlx5e: DCBNL fix min inline header size for dscp

BugLink: http://bugs.launchpad.net/bugs/1780858
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c