[ofa-general][PATCH 4/12 v2] mlx4: Pre reserved Qp regions
Roland Dreier
rdreier at cisco.com
Tue Jun 10 07:17:34 PDT 2008
> The parameters that we wanted to be log2 values are those that must be
> a power of 2.
> These new parameters do not have this limitation, and thus no need for
> log2 requirement.
How the heck is the end-user supposed to know or care which parameters
are which?
Plus:
> +module_param_named(num_mac, num_mac, int, 0444);
> +MODULE_PARM_DESC(num_mac, "Maximum number of MACs per ETH port "
> + "(1-127, default 1)");
> + dev->caps.log_num_macs = ilog2(roundup_pow_of_two(num_mac + 1));
and so on...
so it sure looks like a power of two to me.
More information about the general
mailing list