mlxsw: Convert existing consumers to use new API for parsing configuration
authorAmit Cohen <amcohen@nvidia.com>
Sun, 22 Aug 2021 11:37:14 +0000 (14:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Aug 2021 20:39:55 +0000 (21:39 +0100)
commit0071e7cdc386fb41b1e81c2dd71ce59d3ef3d2fb
treee63d618a7e1d9ce9bca3584c165b987f1d97e73c
parent2d91f0803b84e006bc46de7fb67b8e562fb65355
mlxsw: Convert existing consumers to use new API for parsing configuration

Convert VxLAN and PTP modules to increase parsing depth using new API
that was added in the previous patch.

Separate MPRS register's configuration to VxLAN related configuration
and parsing depth configuration. Handle each one using the appropriate
API.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c