]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Refactor rx handler of represetor device
authorAriel Levkovich <lariel@nvidia.com>
Tue, 26 Oct 2021 13:01:03 +0000 (16:01 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 29 Oct 2021 20:53:29 +0000 (13:53 -0700)
commit7151e301756b74282f52a8075bcae9b71d71ca98
treea1fb9627d66ce430029d99eb79d7f06177dd3f1c
parent5b1ca1f0f96adb3eb7b533e400378887d0b8e2a4
net/mlx5e: Refactor rx handler of represetor device

Move the ownership of skb forwarding to network stack to the
tc update_skb handler as different cases will require different
handling of the skb.

While the tc handler will take care of the various cases and
properly handle the handover of the skb to the network stack
and freeing the skb, the main rx handler will be kept clean
from branches and usage of flags.

Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c