]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Accept action skbedit in the tc actions list
authorAriel Levkovich <lariel@nvidia.com>
Mon, 11 Jan 2021 19:42:59 +0000 (21:42 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 29 Oct 2021 20:53:29 +0000 (13:53 -0700)
commit1b2bd84b653d8f1113dff2bdb7ac04e35988dc55
tree53c40e8423b116efbdb6048cc8333b4494aae898
parente94539c27500ef85289e118abf6309da0dc13a19
net/mlx5e: Accept action skbedit in the tc actions list

Setting the skb packet type field to host is usually
done when performing forwarding to ingress device.

This is required since the receive handling that is used
by the redirect to ingress action checks whether the packet
doesn't belong to this host and drops the packet in such case.

In order to be able to offload action redirect ingress, tc offload
code needs to accept the skbedit ptype action as well.

There's no special handling in HW for such action since it will
be followed by a redirect action and therefore, this code
only allows us to accept such action in the actions list but
not performing anything specific in HW for it.

Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c