]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add tc chains offload support for nic flows
authorAriel Levkovich <lariel@mellanox.com>
Tue, 28 Apr 2020 22:27:15 +0000 (01:27 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:36 +0000 (15:44 -0700)
commitda288688f2564ff88475a1351161308d9437e03d
tree5abf95a668aeda1a4cc5791fdee2ca6f0108279d
parenta650fb5166d64bcd535f87da81f4f375fffda116
net/mlx5e: Add tc chains offload support for nic flows

Allow adding nic tc flow rules with goto chain action.

Connecting the nic flows to the mlx5 chains infrastructure in previous
patches allows us to support the creation of chained flow tables and
rules that direct to another chain for further packet processing.
This is a required preparation to support CT offloads for nic tc flows.

We allow the creation of 256 different chains for nic flows since we
have 8 bits available for the chain restore tag in case of a miss.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c