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.

MFC after:	1 month
Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin 2018-11-15 23:10:46 +00:00
parent aeb7a84ee1
commit 2939ecd3ce

View File

@ -1155,7 +1155,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