Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 21:40:51 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r343063 - stable/12/sys/dev/cxgbe
Message-ID:  <201901152140.x0FLepa0041869@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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