]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8be133f922a2b9bdcb8898b126d0b16d9b2a1dac
tree46a5848dab4420a531c8998df0930e1d3a1a59db
parentd75410826c9f0112776ca00e3b731e16a7eb13d9
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