OSDN Git Service

mlxsw: spectrum_router: Export RIF dev access function
authorYotam Gigi <yotamg@mellanox.com>
Tue, 19 Sep 2017 08:00:19 +0000 (10:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 21:21:40 +0000 (14:21 -0700)
commit91e4d59a4600afe64b44e013a7c1805bbfe61e59
tree227544a4d8046188d366d8cd864dbcd0c3bd9b94
parent4af5964e58884855d28ae68ddf01279868e70853
mlxsw: spectrum_router: Export RIF dev access function

The mlxsw_sp_rif struct, defined as private struct in spectrum_router.c
will be used in the multicast router source file. Due to the fact that the
dev field will be needed by the multicast router logic, add an access
function to it.

Signed-off-by: Yotam Gigi <yotamg@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/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h