]> git.baikalelectronics.ru Git - kernel.git/commit
net: Enable TSO if supported by at least one device
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 8 Sep 2008 23:10:02 +0000 (16:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Sep 2008 23:10:02 +0000 (16:10 -0700)
commitf1f247053d0b6fa9f2f45eba0431dffaf2983d6d
tree1635ffcfb925cfdded28291b26ca0505834c486f
parent88b25e55561dd56a97f8520e5d435b80878c3a7e
net: Enable TSO if supported by at least one device

As it stands users of netdev_compute_features (e.g., bridges/bonding)
will only enable TSO if all consituent devices support it.  This
is unnecessarily pessimistic since even on devices that do not
support hardware TSO and SG, emulated TSO still performs to a par
with TSO off.

This patch enables TSO if at least on constituent device supports
it in hardware.

The direct beneficiaries will be virtualisation that uses bridging
since this means that TSO will always be enabled for communication
from the host to the guests.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c