svn commit: r336356 - head/sys/dev/e1000

Marius Strobl marius at FreeBSD.org
Mon Jul 16 19:47:58 UTC 2018


Author: marius
Date: Mon Jul 16 19:47:57 2018
New Revision: 336356
URL: https://svnweb.freebsd.org/changeset/base/336356

Log:
  Update igb_sctx_init for r336313, missed when incorporating shurd@'s
  feedback on the initial D15720.
  
  Reported by:	kib

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Mon Jul 16 19:47:29 2018	(r336355)
+++ head/sys/dev/e1000/if_em.c	Mon Jul 16 19:47:57 2018	(r336356)
@@ -507,12 +507,13 @@ static struct if_shared_ctx em_sctx_init = {
 
 if_shared_ctx_t em_sctx = &em_sctx_init;
 
-
 static struct if_shared_ctx igb_sctx_init = {
 	.isc_magic = IFLIB_MAGIC,
 	.isc_q_align = PAGE_SIZE,
-	.isc_tx_maxsize = EM_TSO_SIZE,
+	.isc_tx_maxsize = EM_TSO_SIZE + sizeof(struct ether_vlan_header),
 	.isc_tx_maxsegsize = PAGE_SIZE,
+	.isc_tso_maxsize = EM_TSO_SIZE + sizeof(struct ether_vlan_header),
+	.isc_tso_maxsegsize = EM_TSO_SEG_SIZE,
 	.isc_rx_maxsize = MJUM9BYTES,
 	.isc_rx_nsegments = 1,
 	.isc_rx_maxsegsize = MJUM9BYTES,


More information about the svn-src-head mailing list