* Limit skb to be less than 64K with TSO
@ 2003-07-22 16:16 Alan Shih
0 siblings, 0 replies; 3+ messages in thread
From: Alan Shih @ 2003-07-22 16:16 UTC (permalink / raw)
To: linux-kernel
I am lost at the following situation:
Env:
I am writing driver + smart NIC's firmware. The smart NIC has limited
memory. It can do checksum and TSO but with 32K max.
Problem:
SKB may be 64K in size when it reaches the driver. I cannot push all 64K to
the NIC to do checksum. Is there a way to limit the network stack to give
me only 32K or smaller segments? If I do checksum in the main processor, it
defeats the purpose.
TIA
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Limit skb to be less than 64K with TSO
2003-07-23 18:44 Feldman, Scott
@ 2003-07-23 18:50 ` David S. Miller
0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2003-07-23 18:50 UTC (permalink / raw)
To: Feldman, Scott; +Cc: alan, netdev, kuznet
On Wed, 23 Jul 2003 11:44:46 -0700
"Feldman, Scott" <scott.feldman@intel.com> wrote:
> > I am writing driver + smart NIC's firmware. The smart NIC
> > has limited memory. It can do checksum and TSO but with 32K max.
>
> Do we need a netdev->tso_max so the driver can advertise the maximum TSO
> send support by h/w?
Maybe, it's easy to implement.
Add netdev->tso_max
Add sk->sk_tso_max right after sk->sk_route_caps
When sk->sk_route_caps is set, fetch netdev->tso_max via route
and put into sk->sk_tso_max.
Replace "65535" constant in tcp_sync_mss with sk->sk_tso_max.
That shoule be it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Limit skb to be less than 64K with TSO
@ 2003-07-23 18:44 Feldman, Scott
2003-07-23 18:50 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Feldman, Scott @ 2003-07-23 18:44 UTC (permalink / raw)
To: Alan Shih, netdev
> I am writing driver + smart NIC's firmware. The smart NIC
> has limited memory. It can do checksum and TSO but with 32K max.
Do we need a netdev->tso_max so the driver can advertise the maximum TSO
send support by h/w?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-23 18:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-22 16:16 Limit skb to be less than 64K with TSO Alan Shih
2003-07-23 18:44 Feldman, Scott
2003-07-23 18:50 ` David S. Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.