mlxsw: reg: Extract mlxsw_reg_ritr_mac_pack()
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:14 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:25 +0000 (20:23 -0700)
commit9571e828f460161f76dc3aa24f5857076344b2da
tree5b2fda5e5ed78a2329c4168b619ca2b0a2c42fd8
parent1e659ebf581997a988faebe56e900e7139a9ccb1
mlxsw: reg: Extract mlxsw_reg_ritr_mac_pack()

Unlike other interface types, loopback RIFs do not have MAC address. So
drop the corresponding argument from mlxsw_reg_ritr_pack() and move it
to a new function. Call that from callers of mlxsw_reg_ritr_pack.

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