Print this page
5255 uts shouldn't open-code ISP2

*** 29,38 **** --- 29,39 ---- * * Implements the routines necessary for initializing and (later) tearing * down the list of Hermon configuration information. */ + #include <sys/sysmacros.h> #include <sys/types.h> #include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h> #include <sys/modctl.h>
*** 435,445 **** * with all the other headers and alignment restrictions, sets the * maximum for the number of SGLs that we can advertise support for. */ max_size = (HERMON_QP_WQE_MLX_QP1_HDRS + (max_sgl << 4)); log2 = highbit(max_size); ! if ((max_size & (max_size - 1)) == 0) { log2 = log2 - 1; } max_size = (1 << log2); max_size = min(max_size, state->hs_devlim.max_desc_sz_sq); --- 436,446 ---- * with all the other headers and alignment restrictions, sets the * maximum for the number of SGLs that we can advertise support for. */ max_size = (HERMON_QP_WQE_MLX_QP1_HDRS + (max_sgl << 4)); log2 = highbit(max_size); ! if (ISP2(max_size)) { log2 = log2 - 1; } max_size = (1 << log2); max_size = min(max_size, state->hs_devlim.max_desc_sz_sq);