]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlxsw: spectrum: Allow different traps to have different actions
authorIdo Schimmel <idosch@mellanox.com>
Thu, 25 Aug 2016 16:42:39 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2016 20:13:36 +0000 (13:13 -0700)
commit63a811417d97015feb049ba411300990d6835fab
tree8d632e8ee3a6913644bc865d8461df745ec0c2e0
parent93393b339dea263b42eecd6ff680f77a08614cc5
mlxsw: spectrum: Allow different traps to have different actions

Up until now we only trapped packets to CPU, but we are going to allow
some packets to be mirrored (trap & forward) to CPU.

Extend the Rx listener with 'action' member.

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