mlxsw: Introduce mlxsw_reg_spms_vid_pack helper and use it
authorJiri Pirko <jiri@mellanox.com>
Thu, 15 Oct 2015 15:43:26 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 06:27:55 +0000 (23:27 -0700)
commitebb7963f9b14bbaa07b6074579225d6338318ecb
tree303e0859784d6766da2700643e0bb8981103173e
parentfa6ad058bc77b6ae69bd4512b538245ee5db39eb
mlxsw: Introduce mlxsw_reg_spms_vid_pack helper and use it

Introduce separate helper for packing SPMS VIDs, as it can be used for
multiple VIDs and not only for one as previous SPMS pack function
provided.

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/switchx2.c