mlxsw: spectrum_router: Access rif->dev from params in mlxsw_sp_rif_create()
authorPetr Machata <petrm@nvidia.com>
Mon, 12 Jun 2023 15:31:03 +0000 (17:31 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 14 Jun 2023 11:12:20 +0000 (13:12 +0200)
commit2019b5eeae2af862af41882b0863d61dfdaee25d
tree95e09daf68f39d849c34394aee860606620914b4
parentfb6ac45e86668456e5750d2a1c874ca2f5526171
mlxsw: spectrum_router: Access rif->dev from params in mlxsw_sp_rif_create()

The previous patch added a helper to access a netdevice given a RIF. Using
this helper in mlxsw_sp_rif_create() is unreasonable: the netdevice was
given in RIF creation parameters. Just take it there.

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