public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Deactivating TCP checksumming
@ 2003-04-01 12:12 shesha bhushan
  2003-04-01 12:28 ` Matti Aarnio
  0 siblings, 1 reply; 16+ messages in thread
From: shesha bhushan @ 2003-04-01 12:12 UTC (permalink / raw)
  To: matti.aarnio; +Cc: linux-kernel, kernelnewbies

I get that. I can talk with the driver vendor. But to gain the usefulness of 
caculation of CSUM in HW we need to disable the software CSUM calculation in 
TCP layer in the kernel. Am I correct? I am trying to find that and I ma 
stuck there. How to disble the software TCP CSUM calculation? and later I 
can talk with driver vendor to enable it in hardware. I wanted help from 
linux gurus in disabling TCP csum calculation in the kernel.

Thanking You
Shesha






>From: Matti Aarnio <matti.aarnio@zmailer.org>
>To: shesha bhushan <bhushan_vadulas@hotmail.com>
>Subject: Re: Deactivating TCP checksumming
>Date: Tue, 1 Apr 2003 15:00:08 +0300
>
>On Tue, Apr 01, 2003 at 11:22:50AM +0000, shesha bhushan wrote:
> > Ok I will. Is there any other material which I can reffer?
> > I am using Intel pro1000 GBE
> >
> > Thank you very much for providing me the below information.
>
>You will need to talk with the driver author then.
>In 2.4.20 kernels (at least RedHat version) there is directory
>   drivers/net/e1000/
>in which the driver code resides.
>
>The  e1000_main.c  has:
>
>         if(adapter->hw.mac_type >= e1000_82543) {
>                 netdev->features = NETIF_F_SG |
>                                    NETIF_F_HW_CSUM |
>                                    NETIF_F_HW_VLAN_TX |
>                                    NETIF_F_HW_VLAN_RX |
>                                    NETIF_F_HW_VLAN_FILTER;
>         } else {
>                 netdev->features = NETIF_F_SG;
>         }
>
>
>   ... so, if your card isn't with that chip, then perhaps that is
>the reason for not doing checksums in HW ?
>
>Existence of that kind of test is telling to me, that "E1000" name
>is used to refer to a series of cards with varying properties.
>(Like there are a whole family of cards driven by  3c59x driver,
>  and even larger one referred as "tulip".)
>
>/Matti Aarnio
>
> > >From: Matti Aarnio <matti.aarnio@zmailer.org>
> > >To: shesha bhushan <bhushan_vadulas@hotmail.com>
> > >CC: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
> > >Subject: Re: Deactivating TCP checksumming
> > >Date: Tue, 1 Apr 2003 13:58:21 +0300
> > >
> > >On Tue, Apr 01, 2003 at 09:47:30AM +0000, shesha bhushan wrote:
> > >> Hello all,
> > >>  I am trying to de-activate the TCP checksumming and allow hardware 
>(GBE
> > >to
> > >> compute it for me). But can any one let me know how to do it.
> > >
> > >GBE ?  Likely device feature flags are wrong -- See examples
> > >from   drivers/net/sunhme.c,  acenic.c,  tg3.c  for various ways
> > >to use  NETIF_F_*_CSUM  feature flags.
> > >
> > >For (some of) explanations:  include/linux/netdevice.h
> > >(for NETIF_F_* flags)
> > >
> > >> All suggestion are highly apperciated.
> > >>
> > >> Thanking You
> > >> Shesha
> > >
> > >/Matti Aarnio


_________________________________________________________________



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Deactivating TCP checksumming
@ 2003-04-01  9:47 shesha bhushan
  2003-04-01 10:58 ` Matti Aarnio
  0 siblings, 1 reply; 16+ messages in thread
From: shesha bhushan @ 2003-04-01  9:47 UTC (permalink / raw)
  To: linux-kernel, kernelnewbies


Hello all,
  I am trying to de-activate the TCP checksumming and allow hardware (GBE to 
compute it for me). But can any one let me know how to do it.

This is what I did.But Its not working for me.

In linux/net/ipv4/tcp.c there are function calls to 
csum_and_copy_from_user(). I replaced it from copy_from_user() and set the 
skb->ip_summed = CHECKSUM_HW and skb->csum = 1;. Is this correct. Since its 
not working there must be something more that has to be done. could any one 
please tell me what additional thinks I need to do.

All suggestion are highly apperciated.

Thanking You
Shesha




_________________________________________________________________
Say it now. Say it online. http://www.msn.co.in/ecards/ Send e-cards to your 
love


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

end of thread, other threads:[~2003-04-04 14:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01 12:12 Deactivating TCP checksumming shesha bhushan
2003-04-01 12:28 ` Matti Aarnio
2003-04-02 19:22   ` Dennis Cook
2003-04-02 20:36     ` Jeff Garzik
2003-04-02 20:47       ` Dennis Cook
2003-04-02 20:58         ` Jeff Garzik
2003-04-03 20:34           ` Dennis Cook
2003-04-03 20:47             ` Jeff Garzik
2003-04-03 20:57               ` Dennis Cook
2003-04-04 14:20                 ` Jeff Garzik
2003-04-04 14:08               ` Abhishek Agrawal
2003-04-04  4:41             ` Ion Badulescu
2003-04-02 21:03         ` Richard B. Johnson
2003-04-02 21:22           ` Dennis Cook
  -- strict thread matches above, loose matches on Subject: below --
2003-04-01  9:47 shesha bhushan
2003-04-01 10:58 ` Matti Aarnio

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