Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2017 09:22:48 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321679 - head/sys/dev/virtio/network
Message-ID:  <201707290922.v6T9Mm2E073566@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Sat Jul 29 09:22:48 2017
New Revision: 321679
URL: https://svnweb.freebsd.org/changeset/base/321679

Log:
  vtnet: Support jumbo frames without TSO/GSO
  
  Currently in Virtio driver without TSO/GSO features enabled, the max scatter
  gather segments for the TX path can be 4, which limits the support for 9K JUMBO
  frames. 9K JUMBO frames results in more than 4 scatter gather segments and
  virtio driver fails to send the frame down to host OS. With TSO/GSO feature
  enabled max scatter gather segments can be 64, then 9K JUMBO frames are fine,
  this is making virtio driver to support JUMBO frames only with TSO/GSO.
  
  Increasing the VTNET_MIN_TX_SEGS which is the case for non TSO/GSO to 32 to
  support upto 64K JUMBO frames to Host.
  
  Submitted by:	Lohith Bellad <lohithbsd@gmail.com>
  Reviewed by:	adrian
  Differential Revision:	https://reviews.freebsd.org/D8803

Modified:
  head/sys/dev/virtio/network/if_vtnetvar.h

Modified: head/sys/dev/virtio/network/if_vtnetvar.h
==============================================================================
--- head/sys/dev/virtio/network/if_vtnetvar.h	Sat Jul 29 08:35:07 2017	(r321678)
+++ head/sys/dev/virtio/network/if_vtnetvar.h	Sat Jul 29 09:22:48 2017	(r321679)
@@ -314,7 +314,7 @@ CTASSERT(sizeof(struct vtnet_mac_filter) <= PAGE_SIZE)
 #define VTNET_MRG_RX_SEGS	1
 #define VTNET_MIN_RX_SEGS	2
 #define VTNET_MAX_RX_SEGS	34
-#define VTNET_MIN_TX_SEGS	4
+#define VTNET_MIN_TX_SEGS	32
 #define VTNET_MAX_TX_SEGS	64
 
 /*



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