When the number of Tx or Rx descriptors is not a powA user may set a sysctl to override the default number of 2, round theTx or Rx
value down to the nearest power of 2 instead of failing to loaddescriptors. However, certain calculations in the iflib core expect the
drivernumber of descriptors to be a power of 2.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>Update _iflib_assert to verify that all of the shared context parameters
for the number of descriptors are powers of 2.
Modify iflib_reset_qvalues to check that the provided isc_nrxd value is
a power of 2. If it's not, print a warning message and then use the
default value.
An alternative might be to try rounding the number down instead.
However, this creates problems in case the rounded down value is below
the minimum value that the driver would support.