]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: TC, Don't offload CT commit if it's the last action
authorJianbo Liu <jianbol@nvidia.com>
Wed, 19 Mar 2025 14:03:03 +0000 (16:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 14:29:47 +0000 (07:29 -0700)
commit56617e11bd6a5e968351f0788a1b9b29de8afbec
treee96dee937f0275002779cf21c2d3e63685681de1
parent0fe234769ea6ca0e03516867b550348f6fe9db47
net/mlx5e: TC, Don't offload CT commit if it's the last action

For CT action with commit argument, it's usually followed by the
forward action, either to the output netdev or next chain. The default
behavior for software is to drop by setting action attribute to
TC_ACT_SHOT instead of TC_ACT_PIPE if it's the last action. But driver
can't handle it, so block the offload for such case.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1742392983-153050-6-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ct.c