mlxsw: spectrum_router: Allow IPv6 routes to be programmed
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:24 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:33 +0000 (11:57 -0700)
commit9dbf4d76d07d3b581238149d6e87796c39c94716
tree32088a8b9c4dcbd71f8063b3247f6475a21e8aa6
parent62547f407fa13e02c4d8ddb1ed481a7c60068b2f
mlxsw: spectrum_router: Allow IPv6 routes to be programmed

Take advantage of previous patch and allow the RALUE register to be
called with IPv6 routes.

In order to re-use as much code as possible between IPv4 and IPv6, only
the lowest-level function that actually does the register packing is
demuxed based on the passed protocol.

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_router.c