net/mlx5e: Offload TC matching on ip ttl
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 7 Jun 2017 14:49:56 +0000 (17:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 22 Jun 2017 11:30:13 +0000 (14:30 +0300)
commita8ade55ffd1c1acef053a2d05f30e91a1c114f58
treea5b6c2ce46d8fdad26f66c59698edb128acff10f
parent1f97a5265f1ba990c8ac200fb1e31db4f6ff5bea
net/mlx5e: Offload TC matching on ip ttl

Enable offloading of TC matching on ip ttl / hop-limit

As matching on ttl is supported only by newer HW brands (ConnectX-5),
we should do capability check before attempting to offload that.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
include/linux/mlx5/mlx5_ifc.h