mlxsw: core: Add API to set trap action
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:31 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
commitb7bf027087cb81b4673515ea8a0e3850ab2f9055
treed8189f1198694c5ca984d450cb444a40f14ba19e
parent8c40f3b212a373be843a29db608b462af5c3ed5d
mlxsw: core: Add API to set trap action

Up until now the action of a trap was never changed during its lifetime.
This is going to change by subsequent patches that will allow devlink to
control the action of certain traps.

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/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h