net/mlx5e: API to manipulate TTC rules destinations
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 2 Apr 2020 09:02:33 +0000 (02:02 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 27 Jun 2020 21:00:18 +0000 (14:00 -0700)
commitb8922a73ec3e37db8836dbcce2af19d85a8bc9ef
treecc1d104b7f29413be226ed6e99c1fdd73999d830
parentc293ac927fbb0c804b91118535f64d5d9f7a0d8f
net/mlx5e: API to manipulate TTC rules destinations

Store the default destinations of the on-load generated TTC
(Traffic Type Classifier) rules in the ttc rules table.

Introduce TTC API functions to manipulate/restore and get the TTC rule
destination and use these API functions in arfs implementation.

This will allow a better decoupling between TTC implementation and its
users.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c