how to get "max # of mbufs in a packet" from xn to the tcp stack?

Colin Percival cperciva at freebsd.org
Wed Jul 6 19:02:37 UTC 2011


Hi all,

I've attached a patch which fixes the "nfrags > 18, netback won't be able to
handle it" problem with xen netfront when TSO is enabled.

It's not finished, though:
+	int max_mbuf_chain_len = 16;	/* XXX Set this based on interface? */

I'm not sure what the right way is to feed a value from the interface up into
tcp_output; can someone advise?

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcp_mbuf_chain_limit.patch
Type: text/x-diff
Size: 3576 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-xen/attachments/20110706/1d6e9bc3/tcp_mbuf_chain_limit-0001.bin


More information about the freebsd-xen mailing list