Skip to content

Commit a7ea49a

Browse files
ecsvsimonwunderlich
authored andcommitted
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>
1 parent dee222c commit a7ea49a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/batman-adv/soft-interface.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ static void batadv_softif_init_early(struct net_device *dev)
10501050
dev->needs_free_netdev = true;
10511051
dev->priv_destructor = batadv_softif_free;
10521052
dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_NETNS_LOCAL;
1053+
dev->features |= NETIF_F_LLTX;
10531054
dev->priv_flags |= IFF_NO_QUEUE;
10541055

10551056
/* can't call min_mtu, because the needed variables

0 commit comments

Comments
 (0)