diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-05-29 21:36:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-01 11:49:23 -0700 |
commit | 45b1c87313cd2ab2843edd4e6467e3d6458e0c68 (patch) | |
tree | 43a6bdbddbe6d74e76f91f40a648be3acadc11eb /scripts/stackdelta | |
parent | 1897936744f0ab366102170d7c76bfc8f7aeb2ba (diff) | |
download | linux-stable-45b1c87313cd2ab2843edd4e6467e3d6458e0c68.tar.gz linux-stable-45b1c87313cd2ab2843edd4e6467e3d6458e0c68.tar.bz2 linux-stable-45b1c87313cd2ab2843edd4e6467e3d6458e0c68.zip |
mlxsw: spectrum_trap: Factor out common Rx listener function
We currently have an Rx listener function for exception traps that marks
received skbs with 'offload_fwd_mark' and injects them to the kernel's
Rx path. The marking is done because all these exceptions occur during
L3 forwarding, after the packets were potentially flooded at L2.
A subsequent patch will add support for control traps. Packets received
via some of these control traps need different handling:
1. Packets might not need to be marked with 'offload_fwd_mark'. For
example, if packet was trapped before L2 forwarding
2. Packets might not need to be injected to the kernel's Rx path. For
example, sampled packets are reported to user space via the psample
module
Factor out a common Rx listener function that only reports trapped
packets to devlink. Call it from mlxsw_sp_rx_no_mark_listener() and
mlxsw_sp_rx_mark_listener() that will inject the packets to the kernel's
Rx path, without and with the marking, respectively.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions