]> asedeno.scripts.mit.edu Git - linux.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)
commit93393b339dea263b42eecd6ff680f77a08614cc5
tree7b40d4a2054d0ec06f12cf92d07a09783dcbba36
parent6bc506b4fb065eac3d89ca1ce37082e174493d9e
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