]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Add new trap actions
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:32 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
commit7db0de944932d86fa1c3272da30f11bfd1bb1945
treeea60054111ea3988d56970308717e762a2596a8e
parent4eccd5507f0bd120cec187037c4d5aec55cc701c
mlxsw: reg: Add new trap actions

Subsequent patches will add discard traps support in mlxsw. The driver
cannot configure such traps with a normal trap action, but needs to use
exception trap action, which also increments an error counter.

On the other hand, when these traps are initialized or set to drop
action, they should use the default drop action set by the firmware.
This guarantees that when the feature is disabled we get the exact same
behavior as before the feature was introduced.

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