mlxsw: reg: Give mlxsw_reg_ratr_pack a type parameter
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:15 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:25 +0000 (20:23 -0700)
commit89e419828f91ecf46c85b23576904077f62a1a2e
tree4473d23f09e0b20dd642d758fc7c56d88d0b6ac6
parent9571e828f460161f76dc3aa24f5857076344b2da
mlxsw: reg: Give mlxsw_reg_ratr_pack a type parameter

To support IPIP, the driver needs to be able to construct an IPIP
adjacency. Change mlxsw_reg_ratr_pack to take an adjacency type as an
argument. Adjust the one existing caller.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c