Skip to contentSkip to conversation

use NETIF_F_LLTX in bonding device

PATCH Applied Arthur Kepner 2 participants 2 messages Mar 15, 2005 – Mar 23, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use NETIF_F_LLTX in bonding device

Lock contention on the bonding device's xmit_lock can become a bottleneck when 3 or more gige links are aggregated. And it looks like it's unnecessary too, so use the NETIF_F_LLTX flag to avoid grabbing this lock.

Signed-off-by <[email protected]>
drivers/net/bonding/bond_main.c +4 -0
@@ -4306,6 +4306,10 @@ static int __init bond_init(struct net_d
 	 */
 	bond_dev->features |= NETIF_F_VLAN_CHALLENGED;
 
+	/* don't acquire bond device's xmit_lock when 
+	 * transmitting */
+	bond_dev->features |= NETIF_F_LLTX;
+
 	/* By default, we declare the bond to be fully
 	 * VLAN hardware accelerated capable. Special
 	 * care is taken in the various xmit functions

--
Arthur

maintainer Applied
#1 lore raw
Quoted 7 lines · On Tue, 15 Mar 2005 10:29:16 -0800 (PST) Arthur Kepner <[email protected]> wrote:

Lock contention on the bonding device's xmit_lock can become a bottleneck when 3 or more gige links are aggregated. And it looks like it's unnecessary too, so use the NETIF_F_LLTX flag to avoid grabbing this lock.

Signed-off-by <[email protected]>

Yes, bonding does all of it's own internal locking, so this change is correct.

Applied, thanks Arthur.