netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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; 2+ 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] 2+ messages in thread

* Re: Limit skb to be less than 64K with TSO
  2003-07-23 18:44 Limit skb to be less than 64K with TSO Feldman, Scott
@ 2003-07-23 18:50 ` David S. Miller
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

end of thread, other threads:[~2003-07-23 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-23 18:44 Limit skb to be less than 64K with TSO Feldman, Scott
2003-07-23 18:50 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).