Re: [B.A.T.M.A.N.] [PATCH 3.16 046/114] batman-adv: Fix broadcast/ogm queue limit on a removed interface

2016-06-13 Thread Linus Lüssing
On Mon, Jun 13, 2016 at 07:36:37PM +0100, Ben Hutchings wrote: > 3.16.36-rc1 review patch. If anyone has any objections, please let me know. > Hi Ben, This one looks weird. The version you added for 3.2.81-rc1 looked better. Cheers, Linus > -- > > From: Linus Lüssing

Re: [B.A.T.M.A.N.] [PATCH v5 1/4] batman-adv: make the GW selection class algorithm specific

2016-06-13 Thread Antonio Quartulli
On Mon, Jun 13, 2016 at 12:45:17PM +0200, Sven Eckelmann wrote: > On Sunday 12 June 2016 12:14:23 Antonio Quartulli wrote: > [...] > > + if (bat_priv->algo_ops->gw.show_sel_class) > > + return bat_priv->algo_ops->gw.show_sel_class(bat_priv, buff); > [...] > > + if

Re: [B.A.T.M.A.N.] [PATCH v5 2/4] batman-adv: make GW election code protocol specific

2016-06-13 Thread Sven Eckelmann
On Sunday 12 June 2016 12:14:24 Antonio Quartulli wrote: > +static void batadv_iv_gw_print(struct batadv_priv *bat_priv, > + struct seq_file *seq) > +{ > + struct batadv_gw_node *gw_node; > + int gw_count = 0; > + > + seq_printf(seq, > +

Re: [B.A.T.M.A.N.] [PATCH v5 3/4] batman-adv: B.A.T.M.A.N. V - implement GW selection logic

2016-06-13 Thread Sven Eckelmann
On Sunday 12 June 2016 12:14:25 Antonio Quartulli wrote: > + if (orig_throughput < (gw_throughput + threshold)) > + goto out; Possible overflow problem in batadv_v_gw_is_eligible. We don't know what the user will add here and what the gw_throughput is. We already had a

Re: [B.A.T.M.A.N.] [PATCH v5 3/4] batman-adv: B.A.T.M.A.N. V - implement GW selection logic

2016-06-13 Thread Sven Eckelmann
On Sunday 12 June 2016 12:14:25 Antonio Quartulli wrote: > --- a/net/batman-adv/gateway_client.c > +++ b/net/batman-adv/gateway_client.c > @@ -215,6 +215,10 @@ void batadv_gw_election(struct batadv_priv *bat_priv) > if (!batadv_atomic_dec_not_zero(_priv->gw.reselect) && curr_gw) >

Re: [B.A.T.M.A.N.] [PATCH v5 4/4] batman-adv: disable sysfs knobs when GW-mode is not implemented

2016-06-13 Thread Sven Eckelmann
On Sunday 12 June 2016 12:14:26 Antonio Quartulli wrote: > Now that the GW-mode code is algorithm specific, batman-adv expects the > routing algorithm to implement some APIs to make it work. > > However, such APIs are not mandatory, therefore we might have algorithms > not providing them. In this

Re: [B.A.T.M.A.N.] [PATCH v5 1/4] batman-adv: make the GW selection class algorithm specific

2016-06-13 Thread Sven Eckelmann
On Sunday 12 June 2016 12:14:23 Antonio Quartulli wrote: [...] > + if (bat_priv->algo_ops->gw.show_sel_class) > + return bat_priv->algo_ops->gw.show_sel_class(bat_priv, buff); [...] > + if (bat_priv->algo_ops->gw.store_sel_class) > + return

Re: [B.A.T.M.A.N.] [PATCH v9 10/14] batman-adv: add B.A.T.M.A.N. Dump gateways via netlink

2016-06-13 Thread Sven Eckelmann
Hi, it looks like this patch is incorrect and has to be rewritten. TQ is only available in BATMAN_IV and BATMAN_V will have to use THROUGHPUT. Thus this patch should be rewritten on top of the gw patchset from Antonio. I will therefore mark this patch and all following patches as "changes

Re: [B.A.T.M.A.N.] [PATCH v5 0/6] Optimizations for setups running dat and bla

2016-06-13 Thread Andreas Pape
Hi Sven, thanks for the feedback. I just realized that I forgot to rebase the patchset before sending it. Could this be the cause? When I try to apply the patches locally to a fresh cloned batman-adv repository, the patches succeeded but some hunks succeed with some offset or fuzz only due to the