]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14b992c033b37a71d580f5e564cb927696ed1b6f
tree780a5ab80c4346a52db9490820cf441beba8f7e1
parent596affd433f7e1dcb9654c2c51df58adf9f957b1
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