From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Marek Lindner <mareklindner@neomailbox.ch>
Subject: Re: [B.A.T.M.A.N.] [PATCH v2] batman-adv: init ELP tweaking options only once
Date: Wed, 11 May 2016 09:29:22 +0200 [thread overview]
Message-ID: <16078999.daXBnunon6@bentobox> (raw)
In-Reply-To: <1462890719-2146-1-git-send-email-mareklindner@neomailbox.ch>
[-- Attachment #1: Type: text/plain, Size: 2411 bytes --]
On Tuesday 10 May 2016 22:31:59 Marek Lindner wrote:
> The ELP interval and throughput override interface settings are initialized
> with default settings on every time an interface is added to a mesh.
> This patch prevents this behavior by moving the configuration init to the
> interface detection routine which runs only once per interface.
>
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> ---
[...]
> index db2009d..dd6a5a2 100644
> --- a/net/batman-adv/hard-interface.c
> +++ b/net/batman-adv/hard-interface.c
> @@ -683,6 +683,13 @@ batadv_hardif_add_interface(struct net_device *net_dev)
> if (batadv_is_wifi_netdev(net_dev))
> hard_iface->num_bcasts = BATADV_NUM_BCASTS_WIRELESS;
>
> + /* enable link throughput auto-detection by setting the throughput
> + * override to zero
> + */
> + atomic_set(&hard_iface->bat_v.throughput_override, 0);
> +
> + atomic_set(&hard_iface->bat_v.elp_interval, 500);
> +
> /* extra reference for return */
> kref_init(&hard_iface->refcount);
> kref_get(&hard_iface->refcount);
>
This needs to check if BATMAN_V is enabled:
/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.c:689:31: error: no member 'bat_v' in struct batadv_hard_iface
/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.c:691:31: error: no member 'bat_v' in struct batadv_hard_iface
/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.c: In function 'batadv_hardif_add_interface':
/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.c:689:24: error: 'struct batadv_hard_iface' has no member named 'bat_v'
atomic_set(&hard_iface->bat_v.throughput_override, 0);
^
/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.c:691:24: error: 'struct batadv_hard_iface' has no member named 'bat_v'
atomic_set(&hard_iface->bat_v.elp_interval, 500);
^
make[2]: *** [/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv/hard-interface.o] Error 1
make[1]: *** [_module_/home/build_test/build_env/tmp.Fco0ibFY6r/net/batman-adv] Error 2
make: *** [all] Error 2
This report was brought to you by todays build test [1] - the leading provider
of "omg, batman-adv doesn't build cleanly"
Kind regards,
Sven
[1] https://lists.open-mesh.org/pipermail/linux-merge/2016-May/003168.html
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-05-11 7:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 14:31 [B.A.T.M.A.N.] [PATCH v2] batman-adv: init ELP tweaking options only once Marek Lindner
2016-05-10 14:57 ` Antonio Quartulli
2016-05-10 21:14 ` Marek Lindner
2016-05-11 7:29 ` Sven Eckelmann [this message]
2016-05-11 7:40 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16078999.daXBnunon6@bentobox \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=mareklindner@neomailbox.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.