net/mlx5: E-Switch, use new cap as condition for mpls over udp
authorEli Cohen <elic@nvidia.com>
Tue, 12 Jan 2021 07:05:26 +0000 (23:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 23:45:54 +0000 (15:45 -0800)
commitaf4c2fab3ff4318b85e7e0ffe86e76d425cc7533
treeec3bb75362e5ff99b1835244dab2d9b62af4cd70
parent21bad8da1e7728eb69bb4f4558058872cbf6b06e
net/mlx5: E-Switch, use new cap as condition for mpls over udp

Use tunnel_stateless_mpls_over_udp instead of
MLX5_FLEX_PROTO_CW_MPLS_UDP since new devices have native support for
mpls over udp and do not rely on flex parser.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_mplsoudp.c