]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6aa0fc87800c76aa2413eb2db5930d160c0e067
treea0770d13917a6f9210ed32a15d0848dd9a69103c
parent0760cee4a7ec27d8e8deb4ed4bdfceca8ff050f7
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