]> 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)
commitd023e6fa18eed5914c2029fca6163313f2cf8754
tree7b40d4a2054d0ec06f12cf92d07a09783dcbba36
parentb76257fc92706fcf8ca85ad55cea862adcdaec2d
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