svn commit: r343063 - stable/12/sys/dev/cxgbe

John Baldwin jhb at FreeBSD.org
Tue Jan 15 21:40:52 UTC 2019


Author: jhb
Date: Tue Jan 15 21:40:51 2019
New Revision: 343063
URL: https://svnweb.freebsd.org/changeset/base/343063

Log:
  MFC 340468: Change the quantum for TLS key addresses to 32 bytes.
  
  The addresses passed when reading and writing keys are always shifted
  right by 5 as the memory locations are addressed in 32-byte chunks, so
  the quantum needs to be 32, not 8.

Modified:
  stable/12/sys/dev/cxgbe/t4_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_main.c	Tue Jan 15 21:33:26 2019	(r343062)
+++ stable/12/sys/dev/cxgbe/t4_main.c	Tue Jan 15 21:40:51 2019	(r343063)
@@ -1153,7 +1153,7 @@ t4_attach(device_t dev)
 #endif
 	if (sc->vres.key.size != 0)
 		sc->key_map = vmem_create("T4TLS key map", sc->vres.key.start,
-		    sc->vres.key.size, 8, 0, M_FIRSTFIT | M_WAITOK);
+		    sc->vres.key.size, 32, 0, M_FIRSTFIT | M_WAITOK);
 
 	/*
 	 * Second pass over the ports.  This time we know the number of rx and


More information about the svn-src-all mailing list