mlxsw: spectrum_router: Move IPIP init up
authorPetr Machata <petrm@nvidia.com>
Mon, 12 Jun 2023 15:31:09 +0000 (17:31 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 14 Jun 2023 11:12:21 +0000 (13:12 +0200)
commitd4a37bf0943d70ca78ae93da9b05e70632c2019c
tree69bc1dca06ed313844040f3272947f77f94f4d33
parent440273e763f575bfd801e00a8892a9abb82fa263
mlxsw: spectrum_router: Move IPIP init up

mlxsw will need to keep track of certain devices that are not related to
any of its front panel ports. This includes IPIP netdevices. To be able to
query the list of supported IPIP types, router->ipip_ops_arr needs to be
initialized.

To that end, move the IPIP initialization up (and finalization
correspondingly down).

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c