OSDN Git Service

net/mlx5e: Add post act offload/unoffload API
authorRoi Dayan <roid@nvidia.com>
Thu, 14 Oct 2021 08:31:51 +0000 (11:31 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 17 Feb 2022 07:55:16 +0000 (23:55 -0800)
commit314e1105831b45a0fe3045411d7fec4997936e86
treede7cfe25771e9beeea30d04401abf7926dc470d9
parent0610f8dc0309cd0ea017d129efb95a942325344d
net/mlx5e: Add post act offload/unoffload API

Introduce mlx5e_tc_post_act_offload() and mlx5e_tc_post_act_unoffload()
to be able to unoffload and reoffload existing post action rules handles.
For example in neigh update events, the driver removes and readds rules in
hardware.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.h