Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2015 13:16:42 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Adrian Chadd <adrian.chadd@gmail.com>, =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r271946 - in head/sys: dev/oce dev/vmware/vmxnet3 dev/xen/netfront kern net netinet ofed/drivers/net/mlx4 sys
Message-ID:  <55F7FE1A.3050500@selasky.org>
In-Reply-To: <CAJ-Vmo=vq6NbUNecTvkzDLQW3rQzpPToFGbR9TxdcyO_BL3s_g@mail.gmail.com>
References:  <201409220827.s8M8RRHB031526@svn.freebsd.org> <55F69093.5050807@FreeBSD.org> <55F6935C.9000000@selasky.org> <55F6A694.7020404@FreeBSD.org> <55F6A914.6050109@selasky.org> <55F6ED8F.5030402@FreeBSD.org> <CAJ-Vmo=vq6NbUNecTvkzDLQW3rQzpPToFGbR9TxdcyO_BL3s_g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/14/15 20:35, Adrian Chadd wrote:
> Hi,
>
> So what's the actual behaviour of the new tso logic before and after
> the above change in tsomax?

Hi,

The behaviour is the same, only the limits have changed a bit.

 > like, what are the actual packet sizes
> being sent up to the hardware?

It is not about the packet sizes, it is about the number of packets we 
transmit per TSO block.

> Is TSO or the TCP stack so fragile that
> a slight change in how packets are broken up results in ridiculously
> less throughput? It's only a few bytes.

Network adapters which support TSO typically has a hard limit on the 
number of mbufs it can load. When we exceed this limit, m_defrag() or 
packet drop is next. It is the responsibility of the TCP stack to 
generated mbuf chains which are within the network adapter given limits. 
Previously only the length was accounted for. Now we also account for 
the number of segments, because there are many ways a 64K bytes long 
mbuf chain can be generated.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55F7FE1A.3050500>