]> git.baikalelectronics.ru Git - 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)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Apr 2018 19:43:18 +0000 (12:43 -0700)
commit5e31626c89c26a53ee78fb3d73c36979d0b64c17
treea6782773921d25578319209b488a7104d47d8d67
parent2ea83899e80a09d2851ee134b95dac761f36b574
net/mlx5e: DCBNL fix min inline header size for dscp

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: 41196ffcf728 ("net/mlx5e: Support DSCP trust state ...")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c