use NETIF_F_LLTX in bonding device
Subsystems (3)
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
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_lockcan become a bottleneck when 3 or more gige links are aggregated. And it looks like it's unnecessary too, so use theNETIF_F_LLTXflag 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.