mlxsw: core: Expose generic macros for rx trap
authorNogah Frankel <nogahf@mellanox.com>
Fri, 25 Nov 2016 09:33:31 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:14 +0000 (21:22 -0500)
commitb63da93de89bcb009de89d15d4d01e75a2fc37f9
tree780a5ab80c4346a52db9490820cf441beba8f7e1
parent0791051c43ef994149c6d8b3ee7dc8d7e81a16a6
mlxsw: core: Expose generic macros for rx trap

In Spectrum, there is a macro to arrange the traps list.
This macro is useful for everyone who is using rx traps.
Create a similar macro in core.h for creating the generic listener struct
for rx traps.

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/core.h