linux-uconsole/include/linux/mlx5
Alex Vesker dce1622d54 IB/mlx5: Replace tunnel mpls capability bits for tunnel_offloads
[ Upstream commit 41e684ef3f ]

Until now the flex parser capability was used in ib_query_device() to
indicate tunnel_offloads_caps support for mpls_over_gre/mpls_over_udp.

Newer devices and firmware will have configurations with the flexparser
but without mpls support.

Testing for the flex parser capability was a mistake, the tunnel_stateless
capability was intended for detecting mpls and was introduced at the same
time as the flex parser capability.

Otherwise userspace will be incorrectly informed that a future device
supports MPLS when it does not.

Link: https://lore.kernel.org/r/20200305123841.196086-1-leon@kernel.org
Cc: <stable@vger.kernel.org> # 4.17
Fixes: e818e255a5 ("IB/mlx5: Expose MPLS related tunneling offloads")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-17 10:48:43 +02:00
..
accel.h
cmd.h
cq.h
device.h net/mlx5: Rename modify/query_vport state related enums 2018-08-08 19:34:54 -07:00
doorbell.h
driver.h net/mlx5: Fix atomic_mode enum values 2019-11-20 18:45:52 +01:00
eswitch.h net/mlx5: E-Switch, Avoid setup attempt if not being e-switch manager 2018-06-26 15:26:29 -07:00
fs.h net/mlx5e: Prevent encap flow counter update async to user query 2019-08-09 17:52:33 +02:00
fs_helpers.h
mlx5_ifc.h IB/mlx5: Replace tunnel mpls capability bits for tunnel_offloads 2020-04-17 10:48:43 +02:00
mlx5_ifc_fpga.h net/mlx5: Accel, add TLS rx offload routines 2018-07-16 00:13:11 -07:00
port.h
qp.h
srq.h
transobj.h net/mlx5e: Avoid unbounded peer devices when unpairing TC hairpin rules 2018-10-01 10:58:00 -07:00
vport.h net/mlx5: Remove unused mlx5_query_vport_admin_state 2018-08-08 19:34:55 -07:00