Re: [patch net-next 11/42] mlxsw: spectrum: Add router interface struct

2016-07-01 Thread Ido Schimmel
Fri, Jul 01, 2016 at 07:16:23PM IDT, d...@cumulusnetworks.com wrote: >On 7/1/16 8:04 AM, Jiri Pirko wrote: >> @@ -327,6 +333,19 @@ mlxsw_sp_port_vport_find_by_fid(const struct >> mlxsw_sp_port *mlxsw_sp_port, >> return NULL; >> } >> >> +static inline struct mlxsw_sp_rif * >>

Re: [patch net-next 11/42] mlxsw: spectrum: Add router interface struct

2016-07-01 Thread David Ahern
On 7/1/16 8:04 AM, Jiri Pirko wrote: @@ -327,6 +333,19 @@ mlxsw_sp_port_vport_find_by_fid(const struct mlxsw_sp_port *mlxsw_sp_port, return NULL; } +static inline struct mlxsw_sp_rif * +mlxsw_sp_rif_find_by_dev(const struct mlxsw_sp *mlxsw_sp, +const struct

[patch net-next 11/42] mlxsw: spectrum: Add router interface struct

2016-07-01 Thread Jiri Pirko
From: Ido Schimmel When enabling the router in the device we will represent L3 netdevs using router interfaces (RIFs). These will be specified whenever programming routes or neighbours on the netdev. Introduce the basic RIF infrastructure which allows one to lookup a RIF by