net/mlx5e: Allow re-allocating mod header actions
authorPaul Blakey <paulb@mellanox.com>
Sun, 16 Feb 2020 10:01:31 +0000 (12:01 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Feb 2020 01:49:49 +0000 (17:49 -0800)
commit6ae4a6a594b8f642906922b86d4c920c68e09404
tree46a5848dab4420a531c8998df0930e1d3a1a59db
parentd6d27782864f7dd5584fefe050c030283cc40d71
net/mlx5e: Allow re-allocating mod header actions

Currently the size of the mod header actions array is deduced from the
number of parsed TC header rewrite actions. However, mod header actions
are also used for setting HW register values. Support the dynamic
reallocation of the mod header array as a pre-step for adding HW
registers mod actions.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h