]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Update restore chain id for slow path packets
authorPaul Blakey <paulb@nvidia.com>
Wed, 26 Oct 2022 13:51:43 +0000 (14:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Oct 2022 18:06:55 +0000 (11:06 -0700)
commit54e7ccf41aa92c9fa30c07dcfbd73d6df488bfec
tree1c4dcbe105d11b42c86d88ade56a14d61abc8701
parent63f6879b3ecc8b1cf0c343cee1fd76cd5df1e89f
net/mlx5e: Update restore chain id for slow path packets

Currently encap slow path rules just forward to software without
setting the chain id miss register, so driver doesn't restore
the chain, and packets hitting this rule will restart from tc chain
0 instead of continuing to the chain the encap rule was on.

Fix this by setting the chain id miss register to the chain id mapping.

Fixes: 08893db24614 ("net/mlx5: E-Switch, Mark miss packets with new chain id mapping")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20221026135153.154807-6-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c