]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9f29933512752f13a5fdfe39d79282e14ebf0f6
treeffca8b29b810aafaa873d2fa879f1865aa5e49e6
parent34a319db8a4ac20aedbc21ba6f7e31ce26398581
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