mlxsw: spectrum: Report extra metadata to psample module
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:39 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:44 +0000 (15:00 -0700)
commit2073c600444349b18a80b0b38dc20df92fd74155
treeffca8b29b810aafaa873d2fa879f1865aa5e49e6
parent48990bef1e6880613b142cea4f3962dd51458bd6
mlxsw: spectrum: Report extra metadata to psample module

Make use of the previously added metadata and report it to the psample
module. The metadata is read from the skb's control block, which was
initialized by the bus driver (i.e., 'mlxsw_pci') after decoding the
packet's Completion Queue Element (CQE).

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c