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: disable ethtool link speed detection when auto negotiation off
Date: Mon, 14 May 2018 09:35:14 +0200 [thread overview]
Message-ID: <3527728.6mgLYZWjGi@bentobox> (raw)
In-Reply-To: <20180513223849.14636-1-mareklindner@neomailbox.ch>
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
On Montag, 14. Mai 2018 06:38:49 CEST Marek Lindner wrote:
> Virtual interface drivers such as tun / tap interfaces, VLAN, etc tend
> to initialize the interface throughput with some value for the sake of
> having a throughput number to export via ethtool. This exported
> throughput leaves batman-adv to conclude the interface throughput is
> genuine (reflecting reality), thus no measurements are necessary.
>
> Based on the observation that those interface types also tend to set
> the link auto-negotiation to 'off', batman-adv shall check this
> setting to differentiate between genuine link throughput information
> and placeholders installed by virtual interfaces.
>
> The "default throughput" setting exported via sysfs still allows to
> configure the batman-adv throughput for the interface, thus disabling
> the measurements.
>
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> Acked-by: Antonio Quartulli <a@unstable.cc>
> ---
> v2:
> * added ethtool compat code for Linux < 4.6
> * additional explanation text in the commit msg & code
Applied in d60b8fc69ef2 [1]
Thanks,
Sven
[1] https://git.open-mesh.org/batman-adv.git/commit/d60b8fc69ef24d56a10b85210685f6a7d15a8a08
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2018-05-14 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-13 22:38 [B.A.T.M.A.N.] [PATCH v2] batman-adv: disable ethtool link speed detection when auto negotiation off Marek Lindner
2018-05-14 7:35 ` Sven Eckelmann [this message]
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=3527728.6mgLYZWjGi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox