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

Reorganize the traps to use the new generic listener struct and
functions. Use macros to shorten the traps 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/switchx2.c