Skip to contentSkip to conversation

Deactivating TCP checksumming

DISCUSSION shesha bhushan 2 participants 2 messages Apr 1, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · shesha bhushan

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)

Quoted 4 lines

All suggestion are highly apperciated.

Thanking You
Shesha

/Matti Aarnio