From: Stephen Hemminger <shemminger@linux-foundation.org>
To: netdev@vger.kernel.org
Subject: Re: [PATCH] [NET]: Add per-connection option to set max TSO frame size
Date: Tue, 12 Feb 2008 21:22:18 -0800 [thread overview]
Message-ID: <20080212212218.5eb7d121@extreme> (raw)
In-Reply-To: <20080212220132.8446.88493.stgit@localhost.localdomain>
On Tue, 12 Feb 2008 14:01:32 -0800
PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> wrote:
> This patch adds the ability for device drivers to control the size of the
> TSO frames being sent to them, per TCP connection. By setting the
> netdevice's max_gso_frame_size value, the socket layer will set the GSO
> frame size based on that value. This will propogate into the TCP layer,
> and send TSO's of that size to the hardware.
>
> This can be desirable to help tune the bursty nature of TSO on a
> per-adapter basis, where one may have 1 GbE and 10 GbE devices coexisting
> in a system, one running multiqueue and the other not, etc.
>
> This can also be desirable for devices that cannot support full 64 KB
> TSO's, but still want to benefit from some level of segmentation
> offloading.
>
> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
> ---
>
> include/linux/netdevice.h | 6 ++++++
> include/net/sock.h | 2 ++
> net/core/dev.c | 1 +
> net/core/sock.c | 6 ++++--
> net/ipv4/tcp_output.c | 4 ++--
> 5 files changed, 15 insertions(+), 4 deletions(-)
>
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 047d432..ed1cc32 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -616,6 +616,7 @@ struct net_device
>
> /* Partially transmitted GSO packet. */
> struct sk_buff *gso_skb;
> + int max_gso_frame_size;
should use unsigned rather than int (yes the older code is sloppy).
Also what about IPV6?
--
Stephen Hemminger <stephen.hemminger@vyatta.com>
prev parent reply other threads:[~2008-02-13 5:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 22:01 [PATCH] [NET]: Add per-connection option to set max TSO frame size PJ Waskiewicz
2008-02-13 5:22 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080212212218.5eb7d121@extreme \
--to=shemminger@linux-foundation.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).