]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix when to save some qp context flags for dynamic VST to VGT transitions
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 16 Jan 2017 16:31:38 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 20:08:28 +0000 (15:08 -0500)
commit32fa27b116775660e009303883964d035c6c0327
tree5928eccb67ce8d5cf46fce29ba37cd99803acdc5
parent511ff1c82db9ec7b7c9ece012720b339f8f87cc3
net/mlx4_core: Fix when to save some qp context flags for dynamic VST to VGT transitions

Save the qp context flags byte containing the flag disabling vlan stripping
in the RESET to INIT qp transition, rather than in the INIT to RTR
transition. Per the firmware spec, the flags in this byte are active
in the RESET to INIT transition.

As a result of saving the flags in the incorrect qp transition, when
switching dynamically from VGT to VST and back to VGT, the vlan
remained stripped (as is required for VST) and did not return to
not-stripped (as is required for VGT).

Fixes: 107348da4ca3 ("net/mlx4_core: Add immediate activate for VGT->VST->VGT")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c