mlxsw: spectrum: Use generic listener struct for rx traps
authorNogah Frankel <nogahf@mellanox.com>
Fri, 25 Nov 2016 09:33:32 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:14 +0000 (21:22 -0500)
commit14eeda99c4a6b6bf92261f980bcd95f345c76b64
treef971c13416fbe9f5e00d3cc99fd3603a5c1d65e6
parentb63da93de89bcb009de89d15d4d01e75a2fc37f9
mlxsw: spectrum: Use generic listener struct for rx traps

Replace the old rx listener struct definitions by the generic ones.
Use the new generic registering / unregistering functions for them.
Add some macros to organize the trap list.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c