]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix fdb cap bits swap
authorVu Pham <vu@mellanox.com>
Wed, 31 Oct 2018 14:03:21 +0000 (16:03 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Dec 2018 09:24:44 +0000 (01:24 -0800)
commit13dd631b254790fd81a2dfec77a93f87fa1f19be
treed30c95604b620e31e34c84a1ccff6072ea1e8f33
parent040365dedd26c4b11dfe5f61c260f498a9da8912
net/mlx5: E-Switch, Fix fdb cap bits swap

The cap bits locations for the fdb caps of multi path to table (used for
local mirroring) and multi encap (used for prio/chains) were wrongly used
in swapped locations. This went unnoted so far b/c we tested the offending
patch with CX5 FW that supports both of them. On different environments where
not both caps are supported, we will be messed up, fix that.

Fixes: 3826e2f08e12 ('net/mlx5: Add cap bits for multi fdb encap')
Signed-off-by: Vu Pham <vu@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Tested-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/mlx5/mlx5_ifc.h