]> 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)
commit3a86b83dfcfa325a7f80c67ddb3ace0051857812
treea1fb9627d66ce430029d99eb79d7f06177dd3f1c
parent0628f81f55de0c0c4d6182bba3728927fb6866d2
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