public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit
@ 2009-12-02  3:18 jie.yang
  2009-12-02  8:31 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: jie.yang @ 2009-12-02  3:18 UTC (permalink / raw)
  To: davem; +Cc: ben, 558426, netdev, linux-kernel, Jie Yang

From: Jie Yang <jie.yang@atheros.com>

For hardware limit to support TSOV6, just disable this feature
Signed-off-by: Jie Yang <jie.yang@atheros.com>
---

 drivers/net/atl1e/atl1e_main.c |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c
index ad17e74..08f8c09 100644
--- a/drivers/net/atl1e/atl1e_main.c
+++ b/drivers/net/atl1e/atl1e_main.c
@@ -1664,41 +1664,6 @@ static int atl1e_tso_csum(struct atl1e_adapter *adapter,
 			}
 			return 0;
 		}
-
-		if (offload_type & SKB_GSO_TCPV6) {
-			real_len = (((unsigned char *)ipv6_hdr(skb) - skb->data)
-					+ ntohs(ipv6_hdr(skb)->payload_len));
-			if (real_len < skb->len)
-				pskb_trim(skb, real_len);
-
-			/* check payload == 0 byte ? */
-			hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb));
-			if (unlikely(skb->len == hdr_len)) {
-				/* only xsum need */
-				dev_warn(&pdev->dev,
-					"IPV6 tso with zero data??\n");
-				goto check_sum;
-			} else {
-				tcp_hdr(skb)->check = ~csum_ipv6_magic(
-						&ipv6_hdr(skb)->saddr,
-						&ipv6_hdr(skb)->daddr,
-						0, IPPROTO_TCP, 0);
-				tpd->word3 |= 1 << TPD_IP_VERSION_SHIFT;
-				hdr_len >>= 1;
-				tpd->word3 |= (hdr_len & TPD_V6_IPHLLO_MASK) <<
-					TPD_V6_IPHLLO_SHIFT;
-				tpd->word3 |= ((hdr_len >> 3) &
-					TPD_V6_IPHLHI_MASK) <<
-					TPD_V6_IPHLHI_SHIFT;
-				tpd->word3 |= (tcp_hdrlen(skb) >> 2 &
-					TPD_TCPHDRLEN_MASK) <<
-					TPD_TCPHDRLEN_SHIFT;
-				tpd->word3 |= ((skb_shinfo(skb)->gso_size) &
-					TPD_MSS_MASK) << TPD_MSS_SHIFT;
-					tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT;
-			}
-		}
-		return 0;
 	}
 
 check_sum:
@@ -2287,7 +2252,6 @@ static int atl1e_init_netdev(struct net_device *netdev, struct pci_dev *pdev)
 		NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
 	netdev->features |= NETIF_F_LLTX;
 	netdev->features |= NETIF_F_TSO;
-	netdev->features |= NETIF_F_TSO6;
 
 	return 0;
 }

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit
  2009-12-02  3:18 [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit jie.yang
@ 2009-12-02  8:31 ` David Miller
  2009-12-02  8:34   ` Jie Yang
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-12-02  8:31 UTC (permalink / raw)
  To: jie.yang; +Cc: ben, 558426, netdev, linux-kernel

From: <jie.yang@atheros.com>
Date: Wed, 2 Dec 2009 11:18:34 +0800

> From: Jie Yang <jie.yang@atheros.com>
> 
> For hardware limit to support TSOV6, just disable this feature
> Signed-off-by: Jie Yang <jie.yang@atheros.com>

Shouldn't we be applying this to net-2.6 since it's a bug fix?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit
  2009-12-02  8:31 ` David Miller
@ 2009-12-02  8:34   ` Jie Yang
  2009-12-02  8:37     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jie Yang @ 2009-12-02  8:34 UTC (permalink / raw)
  To: David Miller
  Cc: ben@decadent.org.uk, 558426@bugs.debian.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org

On Wednesday, December 02, 2009 4:32 PM
David Miller <davem@davemloft.net> wrote:
>
> From: <jie.yang@atheros.com>
> Date: Wed, 2 Dec 2009 11:18:34 +0800
>
> > From: Jie Yang <jie.yang@atheros.com>
> >
> > For hardware limit to support TSOV6, just disable this feature
> > Signed-off-by: Jie Yang <jie.yang@atheros.com>
>
> Shouldn't we be applying this to net-2.6 since it's a bug fix?
>
oh, It should applying to net-2.6.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit
  2009-12-02  8:34   ` Jie Yang
@ 2009-12-02  8:37     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-12-02  8:37 UTC (permalink / raw)
  To: Jie.Yang; +Cc: ben, 558426, netdev, linux-kernel

From: Jie Yang <Jie.Yang@Atheros.com>
Date: Wed, 2 Dec 2009 16:34:18 +0800

> On Wednesday, December 02, 2009 4:32 PM
> David Miller <davem@davemloft.net> wrote:
>>
>> From: <jie.yang@atheros.com>
>> Date: Wed, 2 Dec 2009 11:18:34 +0800
>>
>> > From: Jie Yang <jie.yang@atheros.com>
>> >
>> > For hardware limit to support TSOV6, just disable this feature
>> > Signed-off-by: Jie Yang <jie.yang@atheros.com>
>>
>> Shouldn't we be applying this to net-2.6 since it's a bug fix?
>>
> oh, It should applying to net-2.6.

Great, that's where I've applied it.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-02  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02  3:18 [PATCH net-next]atl1e:disable NETIF_F_TSO6 for hardware limit jie.yang
2009-12-02  8:31 ` David Miller
2009-12-02  8:34   ` Jie Yang
2009-12-02  8:37     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox