net/mlx5e: Move mod hdr allocation to a single place
authorRoi Dayan <roid@nvidia.com>
Thu, 12 Aug 2021 12:46:34 +0000 (15:46 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:52 +0000 (18:10 -0700)
commitd9581e2fa73fadba187b2e62e05306e24e8a1ded
tree983d9eff14b2e757fc8154340e1d1a7e6f99d114
parent61c6f0d19084578975f6344712cd1bffd5326851
net/mlx5e: Move mod hdr allocation to a single place

Move mod hdr allocation chunk from parse_tc_fdb_actions() and
parse_tc_nic_actions() to a shared function.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c