]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Use listener->en/dis_action instead of hard-coded values
authorJiri Pirko <jiri@mellanox.com>
Mon, 24 Feb 2020 07:35:45 +0000 (08:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:55:06 +0000 (11:55 -0800)
commitc8b4dcf687b28f8f237f9213285ae179b75ec317
treeed164472190e92f9ad88e4ee44291ccbeaf8cb9f
parent60b63251b19b4307aaf25567d602ead6b2c929af
mlxsw: spectrum_trap: Use listener->en/dis_action instead of hard-coded values

The listener fields en_action and dis_action now contain the actions to
be used for TRAP and DROP devlink trap actions. Use them directly
instead of the hard-coded values.

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