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)
commit28e7606fa8f106cdc0355e0548396c037443e063
treea1fb9627d66ce430029d99eb79d7f06177dd3f1c
parent941f19798a11c46c6700cf0ff6f1d810a491b63b
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