aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c59x.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-11-07 03:58:09 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 10:53:25 -0500
commitd311b0d3d8fcc279132f7251704b23ec264a194f (patch)
tree00ee7574ec4133d9b93edc138bb9491430884378 /drivers/net/3c59x.c
parent900fd17dd01d2c99dfd1ec0b53a860894a2673ee (diff)
[PATCH] 3c59x: don't enable scatter/gather w/o checksum support
It is not valid to enable scatter/gather without hardware checksum support of some kind. (akpm: applies only to the old boomerang cards). Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r--drivers/net/3c59x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index c1ee8efc9d56..7488ee7f7caf 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -1536,11 +1536,10 @@ static int __devinit vortex_probe1(struct device *gendev,
1536 if (vp->full_bus_master_tx) { 1536 if (vp->full_bus_master_tx) {
1537 dev->hard_start_xmit = boomerang_start_xmit; 1537 dev->hard_start_xmit = boomerang_start_xmit;
1538 /* Actually, it still should work with iommu. */ 1538 /* Actually, it still should work with iommu. */
1539 dev->features |= NETIF_F_SG;
1540 if (card_idx < MAX_UNITS && 1539 if (card_idx < MAX_UNITS &&
1541 ((hw_checksums[card_idx] == -1 && (vp->drv_flags & HAS_HWCKSM)) || 1540 ((hw_checksums[card_idx] == -1 && (vp->drv_flags & HAS_HWCKSM)) ||
1542 hw_checksums[card_idx] == 1)) { 1541 hw_checksums[card_idx] == 1)) {
1543 dev->features |= NETIF_F_IP_CSUM; 1542 dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
1544 } 1543 }
1545 } else { 1544 } else {
1546 dev->hard_start_xmit = vortex_start_xmit; 1545 dev->hard_start_xmit = vortex_start_xmit;