batman-adv: Enable LockLess TX for softif
authorSven Eckelmann <sven@narfation.org>
Tue, 11 Sep 2018 15:22:01 +0000 (17:22 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 15 Sep 2018 07:51:10 +0000 (09:51 +0200)
commita7ea49afcc888dd5aac76774767bfb90be937aad
treea392332c05dc89c6e3c111b1e5515e1d41f210af
parentdee222c7b20cdfff4b4d554bb4a5199572c5f28c
batman-adv: Enable LockLess TX for softif

The batadv interfaces are virtual interfaces which just tunnel the traffic
over other ethernet compatible interfaces. It doesn't need serialization
during the tx phase and is using RCU for most of its internal
datastructures. Since it doesn't have actual queues which could be locked
independently, the throughput gets significantly reduced by the extra lock
in the core net code.

8 parallel TCP connections forwarded by an IPQ4019 based hardware over
5GHz could reach:

* without LLTX: 349 Mibit/s
* with LLTX:    563 Mibit/s

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/soft-interface.c