]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Simplify traps definition
authorIdo Schimmel <idosch@mellanox.com>
Thu, 25 Aug 2016 16:42:38 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2016 20:13:36 +0000 (13:13 -0700)
commitadf0b574e85d748ca422ab31d0b9770d087171f6
tree7b40d4a2054d0ec06f12cf92d07a09783dcbba36
parenta0bfb8066e9c9df4eb0d621079007c1ba374f961
mlxsw: spectrum: Simplify traps definition

Instead of copying & pasting the same struct initialization for every
Rx listener, just use a macro.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c