No reorder buffer?
Avery Pennarun
apenwarr at gmail.com
Thu Jun 26 16:52:24 PDT 2014
On Thu, Jun 26, 2014 at 6:27 PM, Denton Gentry <denton.gentry at gmail.com> wrote:
> On Thu, Jun 26, 2014 at 3:28 AM, Michal Kazior <michal.kazior at tieto.com> wrote:
>> On 24 June 2014 16:47, Denton Gentry <denton.gentry at gmail.com> wrote:
>>> I'm bridging ath10k to Ethernet, gathering pcaps on another ath10k
>>> system in monitor mode and on the Ethernet system which is receiving
>>> the packets. I see packets being delivered out of order to the
>>> Ethernet system. So far as I can tell, any packet which has to be
>>> re-sent on the Wifi link will be delivered out of order to Ethernet.
>>
>> As I've mentioned in my other mail - perhaps reordering is disabled in
>> firmware under some circumstances.
>>
>> My suspicion is monitor vdev may be involved. It is created in
>> firmware when you set ath10k interface into promisc mode (bridging
>> implies that; most sniffers set promisc mode too unless told to not
>> to, e.g. tcpdump -p).
>>
>> Can you somehow verify if you observe the reordering problem without
>> bridging with ethernet (e.g. run traffic to AP w/ bridging and w/o
>> bridging) ? If it's too much work then forget it :-)
>
> Running an iperf server on my AP, to take bridging out of the picture:
> iperf -s -w 1M
Note that our version of hostapd (and possibly all versions of
hostapd) automatically creates a monitor interface alongside the wlan
interface. From what I've seen in the code, this is entirely for
legacy reasons (??) and it doesn't actually use the monitor interface
anymore for anything. So we could probably chop out the code that
creates it. I suspect if we don't, it will be in monitor mode even
when bridging is not active.
For this test, I guess we could also just manually delete the monitor
interface after starting hostapd. But I'm unclear on whether the
firmware would switch reordering back on in that case.
Or maybe using a separate monitor-mode interface doesn't trigger this
with the main wlan0 interface, but I'm guessing that's not the case.
(Separately, it makes me a bit sad that enabling monitor mode changes
the behaviour of the wifi. It defeats part of the purpose of monitor
mode.)
More information about the ath10k
mailing list