summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2020-03-05 14:38:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 10:48:10 +0200
commit4ac80b02f10dc027d93ab246e4736f6a739f248c (patch)
tree8d1189cb41d8fb68cb5cb9466c41e90b58a19e1a /arch
parentccc2b645de20e0e175c7832630d65ad52b7bebc0 (diff)
downloadlinux-stable-4ac80b02f10dc027d93ab246e4736f6a739f248c.tar.gz
linux-stable-4ac80b02f10dc027d93ab246e4736f6a739f248c.tar.bz2
linux-stable-4ac80b02f10dc027d93ab246e4736f6a739f248c.zip
IB/mlx5: Replace tunnel mpls capability bits for tunnel_offloads
commit 41e684ef3f37ce6e5eac3fb5b9c7c1853f4b0447 upstream. 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: e818e255a58d ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions