Does the bonding driver honour dev->features of slave devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,
	  I am going throgh the "Link Aggregation" module in Linux 
(bonding.c). The code seems to suggest that the dev->features of slave 
devices is simply ignored while bundling into the master device. Suppose I 
have two Intel epro1000 cards that can support TCP Segmentation Offload. 
Now if I bond these two slave cards into a new master card, the new 
bonding device that is the master device will be used in the routing 
table. When a TCP connection is established sk->route_caps is assigned 
from the dev->features of the assigned outgoing device. If the outgoing 
device is the bonding device then the dev->features won't have NETIF_F_TSO 
as the feature and hence upper layers will believe that the outgoing 
device cannot do TSO.
I believe that at best we can take an OR of the dev->features of all the 
slave devices and assign it to the dev->features of the bonding device. 
This way we are sure that we are taking the Least Common Denominator while 
deciding the features for the master device.

Thanx,
tomar
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux