net/mlx5: E-Switch, Skip restore modify header between prios of same chain
authorPaul Blakey <paulb@mellanox.com>
Mon, 16 Mar 2020 12:55:11 +0000 (14:55 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:17 +0000 (19:41 -0700)
commite0cb8afdbba909085514f02a3df2d17e7eac1ae6
treec59f8eecdb85ddf253735508f588b79986930a30
parent0b3a8b6b53406f2d890cda369aa9d61e30bc4162
net/mlx5: E-Switch, Skip restore modify header between prios of same chain

Restore modify header writes the chain mapping on the packet.
This modify header and action is added on all prios connections,
and gets overwritten with the same value consecutively in prios
of the same chain.

Use the chain's modify header only for the last prio of a given tc
chain.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c