9601 Divide by zero in i40e_get_available_resources()

Review Request #1116 — Created June 19, 2018 and submitted — Latest diff uploaded

marcel
illumos-gate
master
9601
be5c6dc...
general
This fixes the num_ports calculation in the i40e driver.  Without this fix we
sometimes (at least with the hardware where I tested this on) found more
ethernet ports than we actually have (four instead of two) and this lead to
panic later in the driver.
I tested this on a hardware where the original driver paniced.  With the fix
the driver does not panic and it works properly.
Loading...