Re: [patch net-next] mlxsw: spectrum_router: Fix build when IPv6 isn't enabled

2017-07-24 Thread David Ahern
On 7/24/17 1:56 AM, Jiri Pirko wrote: > @@ -949,9 +950,13 @@ mlxsw_sp_router_neighs_update_interval_init(struct > mlxsw_sp *mlxsw_sp) > { > unsigned long interval; > > +#if IS_ENABLED(CONFIG_IPV6) > interval = min_t(unsigned long, >NEIGH_VAR(&arp_tbl.parms, D

Re: [patch net-next] mlxsw: spectrum_router: Fix build when IPv6 isn't enabled

2017-07-24 Thread David Miller
From: Jiri Pirko Date: Mon, 24 Jul 2017 09:56:00 +0200 > From: Ido Schimmel > > When IPv6 isn't enabled the following error is generated: > > ERROR: "nd_tbl" [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] > undefined! > > Fix it by replacing 'arp_tbl' and 'nd_tbl' with 'tbl->family'

[patch net-next] mlxsw: spectrum_router: Fix build when IPv6 isn't enabled

2017-07-24 Thread Jiri Pirko
From: Ido Schimmel When IPv6 isn't enabled the following error is generated: ERROR: "nd_tbl" [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] undefined! Fix it by replacing 'arp_tbl' and 'nd_tbl' with 'tbl->family' wherever possible and reference 'nd_tbl' only when IPV6 is enabled. Fixe