net/mlx5e: TC, Handle sampled packets
authorChris Mi <cmi@nvidia.com>
Tue, 26 Jan 2021 03:15:46 +0000 (11:15 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:36:04 +0000 (21:36 -0700)
commitbe9dc0047450f7d8c0462a6ef3f7c26bced16911
treec5563fe333fdf3d09e61512495e3aa24c844e53a
parent7319a1cc3ca9f719e4ef1b1882f6fdb57d0719b8
net/mlx5e: TC, Handle sampled packets

Mark the sampled packets with a sample restore object. Send sampled
packets using the psample api.

Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@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/esw/sample.c
drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h