netdev
[Top] [All Lists]

RE: [PATCH 2.6.12-rc4] IPv4/IPv6: UDP Large Send Offload feature

To: "'David S. Miller'" <davem@xxxxxxxxxxxxx>
Subject: RE: [PATCH 2.6.12-rc4] IPv4/IPv6: UDP Large Send Offload feature
From: "Ravinandan Arakali" <ravinandan.arakali@xxxxxxxxxxxx>
Date: Thu, 2 Jun 2005 16:18:55 -0700
Cc: <jgarzik@xxxxxxxxx>, <netdev@xxxxxxxxxxx>, <raghavendra.koushik@xxxxxxxxxxxx>, <leonid.grossman@xxxxxxxxxxxx>, <ananda.raju@xxxxxxxxxxxx>, <rapuru.sriram@xxxxxxxxxxxx>
Importance: Normal
In-reply-to: <20050527.120215.26278001.davem@davemloft.net>
Sender: netdev-bounce@xxxxxxxxxxx
David,
Since there seems to be pros and cons for both the approaches, we are
planning
to submit two separate patches(one for each approach). These patches also
include the ethtool changes. In terms of performance, we did not observe any
diff between the two approaches although the first approach(using SG)
minimizes
coalescing in driver.

Also, some changes will be required in the ethtool user-level utility.
I'm not sure if this is the right forum to submit patches for the ethtool
utility as well..

Thanks,
Ravi


-----Original Message-----
From: David S. Miller [mailto:davem@xxxxxxxxxxxxx]
Sent: Friday, May 27, 2005 12:02 PM
To: ravinandan.arakali@xxxxxxxxxxxx
Cc: jgarzik@xxxxxxxxx; netdev@xxxxxxxxxxx;
raghavendra.koushik@xxxxxxxxxxxx; leonid.grossman@xxxxxxxxxxxx;
ananda.raju@xxxxxxxxxxxx; rapuru.sriram@xxxxxxxxxxxx
Subject: Re: [PATCH 2.6.12-rc4] IPv4/IPv6: UDP Large Send Offload
feature


From: "Ravinandan Arakali" <ravinandan.arakali@xxxxxxxxxxxx>
Date: Fri, 27 May 2005 09:32:00 -0700

> Thanks for the quick feedback.
> At that time when we considered using skb_shinfo(skb)->fraglist,
> it contained fragments of MTU size. So, for a 60k udp datagram
> and 1500 MTU we will have 60k/1500 = 45 fragments which is
> more than MAX_SKB_FRAGS(18).
>
> However we will relook at fraglist for the possibility of increasing
> frag size to >MTU.

MAX_SKB_FRAGS controls the limit of skb_shinfo(skb)->frags[]
entries, not how many SKBs may be chained via
skb_shinfo(skb)->fraglist, there is no limit on the latter.

Note that there is much coalescing that can be performed on
the SKB list data areas, particularly if UDP sendfile() is
being used.

But such coalescing is messy to be performing inside of the
drivers.  It may end up being the case that your approach
ends up being a better one for these reasons.


<Prev in Thread] Current Thread [Next in Thread>