From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: james@nurealm.net, Ben Greear <greearb@candelatech.com>,
Dan Williams <dcbw@redhat.com>,
linux-wireless@vger.kernel.org
Subject: Re: wireless drivers fail to report link speed?
Date: Wed, 9 Aug 2017 11:30:12 +0200 [thread overview]
Message-ID: <598AD624.1060003@broadcom.com> (raw)
In-Reply-To: <3d16a276-0e15-c722-483c-c17d715ebb5e@nurealm.net>
On 8/9/2017 2:36 AM, James Feeney wrote:
> Hey
>
[...]
> On 08/08/2017 05:43 PM, Dan Williams wrote:
>>
>> It's very relevant to the question. Because if the speed is actually
>> not useful for the requested purpose, there is no real point in having
>> it reported it via ethtool. Same for duplex. Wifi is only "half
>> duplex", and so the property is actually meaningless for WiFi.
>
> That seems a little over-broad, at least certainly with respect to "half
> duplex". If the link is known to be half duplex, then the kernel ethtool can
> simply report that the link is "half duplex". I am not hearing a good
> justification, or a necessity, for the kernel ethtool to return an error, instead.
There is nothing "over-board" about it. Whhy asking a question if you
already know the answer.
>> At
>> worst, your bonding link will flip-flop between slaves every second or
>> two. At best, bonding won't do anything differently than if the speed
>> was just faked to some fake lowest common denominator number so that
>> your wired link was always faster.
>
> Well ok, flip-flopping every second would seem a pointless and bad effect. But
> then, for instance, my rtl8192ce driver shows a stable, actual link speed:
>
> $ iwconfig wlp2s0
> ...
> Bit Rate=72.2 Mb/s
> ...
>
> $ ethtool -S wlp2s0
> ...
> txrate: 72200000
> rxrate: 1000000
> ...
>
> Then, I don't know if this effect is as bad as you suggest. Is there an actual
> "stable" link speed here? Or is this an "illusion", of bit of "fluff" being
> promoted by the user-space iwconfig and ethtool?
>
>> Sure, somebody could do a patch (like Ben has) that plumbs all this
>> stuff through. But that's not solving the *actual* problem, which is
>> that this bonding change makes assumptions of slave devices that simply
>> don't match how those devices work.
>
> I take it that your position would be that the bonding module people, and Mahesh
> in particular, are being unreasonable in expecting the kernel ethtool to provide
> anything but an error in response to get_settings()? What do you think of
> Florian's suggestion, to check for dev->ieee80211_ptr being set, and letting
> these interfaces proceed with being enslaved in a bond master network device if
> that's the case?
>
> Would you go so far as to say that modifying the kernel ethtool to report
> wireless link speed and duplex would be entirely pointless?
It really depends on how it is used. In case of the bonding module it
seems it need to be pretty accurate to assure using the fastest link.
You say your rtl8192ce driver reports stable speed, but what is your
connection state and are you actually sending packets over it. Also the
rxrate reported is 1MB/s, which is probably rate of the last received
packet. Apart from your data connection to the AP the device is
receiving beacons which are sent at a low speed thus screwing up the rx
speed accuracy of your link.
Actually what the bonding module could rely on would be what is
described in section 11.46 ("Estimated throughput") of IEEE802.11-2016
as it seems to address exactly the bonding use-case. However, I am not
aware of any devices in the field carrying that feature (but I am not
all knowing ;-) ).
Regards,
Arend
> Thanks
> James
>
next prev parent reply other threads:[~2017-08-09 9:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 19:07 wireless drivers fail to report link speed? James Feeney
2017-08-08 21:42 ` Dan Williams
2017-08-08 21:58 ` Ben Greear
2017-08-08 22:25 ` James Feeney
2017-08-08 22:49 ` Ben Greear
2017-08-09 0:36 ` James Feeney
2017-08-09 9:30 ` Arend van Spriel [this message]
2017-08-09 17:01 ` James Feeney
2017-08-09 18:25 ` Dan Williams
2017-08-10 1:20 ` James Feeney
2017-08-11 18:43 ` Andy Gospodarek
2017-08-10 5:25 ` Kalle Valo
2017-08-09 13:43 ` Dan Williams
2017-08-08 23:43 ` Dan Williams
2017-08-09 12:24 ` Kalle Valo
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=598AD624.1060003@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=dcbw@redhat.com \
--cc=greearb@candelatech.com \
--cc=james@nurealm.net \
--cc=linux-wireless@vger.kernel.org \
/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.