From 618f314eae03beea92efc75a79f40fd831caa54c Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Thu, 29 Jun 2006 12:31:21 -0700 Subject: [PATCH] --- yaml --- r: 31335 b: refs/heads/master c: b11d6213529b33d81c21eeba97343e3b714e62e7 h: refs/heads/master i: 31333: e21ac74f6080c18f079aa151cf38208494faa533 31331: be4b9cfbd10713cb95bfc256d258fddbaa4565ac 31327: 939a67a7bfafb93c0039cd67136cd6ba3774f96b v: v3 --- [refs] | 2 +- trunk/drivers/net/bnx2.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c448cd58b8a4..fe094c9f678d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b0da8537037f337103348f239ad901477e907aa8 +refs/heads/master: b11d6213529b33d81c21eeba97343e3b714e62e7 diff --git a/trunk/drivers/net/bnx2.c b/trunk/drivers/net/bnx2.c index 7635736cc791..e89d5df3e978 100644 --- a/trunk/drivers/net/bnx2.c +++ b/trunk/drivers/net/bnx2.c @@ -5128,6 +5128,16 @@ bnx2_set_rx_csum(struct net_device *dev, u32 data) return 0; } +static int +bnx2_set_tso(struct net_device *dev, u32 data) +{ + if (data) + dev->features |= NETIF_F_TSO | NETIF_F_TSO_ECN; + else + dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO_ECN); + return 0; +} + #define BNX2_NUM_STATS 46 static struct { @@ -5445,7 +5455,7 @@ static struct ethtool_ops bnx2_ethtool_ops = { .set_sg = ethtool_op_set_sg, #ifdef BCM_TSO .get_tso = ethtool_op_get_tso, - .set_tso = ethtool_op_set_tso, + .set_tso = bnx2_set_tso, #endif .self_test_count = bnx2_self_test_count, .self_test = bnx2_self_test, @@ -5926,7 +5936,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; #endif #ifdef BCM_TSO - dev->features |= NETIF_F_TSO; + dev->features |= NETIF_F_TSO | NETIF_F_TSO_ECN; #endif netif_carrier_off(bp->dev);