]> 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)
commiteabfd5e110ccd73b5124c65390d730df97014090
tree780a5ab80c4346a52db9490820cf441beba8f7e1
parent49b186933acf9f59c3eaf50a158a0eab06837025
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