]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit617c4e70821b8a992ac71c4a54e742661c5bebc8
treea5b6c2ce46d8fdad26f66c59698edb128acff10f
parent94e747f358ea014623bef1e4f01f7ad5a04d2748
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