9601 Divide by zero in i40e_get_available_resources()

Review Request #1116 - Created June 19, 2018 and submitted

Information
Marcel Telka
illumos-gate
master
9601
be5c6dc...
Reviewers
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.

Issues

  • 0
  • 0
  • 1
  • 1
Description From Last Updated
Robert Mustacchi
Ken Mays
Simon Klinkert
Ken Mays
Marcel Telka
John Levon
Robert Mustacchi
Marcel Telka
Robert Mustacchi
Marcel Telka
Review request changed

Status: Closed (submitted)

Change Summary:

commit f0c1c263e90642997cf3e76484abec617782ddb8
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Mon Nov 11 21:33:22 2019 +0100
Commit:     Dan McDonald <danmcd@joyent.com>
CommitDate: Thu Nov 14 11:19:43 2019 -0500

    9601 Divide by zero in i40e_get_available_resources()
    Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

:100644 100644 7fc4834fa2 4123d2a183 M	exception_lists/copyright
:100644 100644 0adee1a9e3 6564081f83 M	exception_lists/wscheck
:000000 100644 0000000000 47cb1fdf2d A	usr/src/uts/common/io/i40e/core/README.illumos
:100644 100644 f4dd8da819 0e0dc285ae M	usr/src/uts/common/io/i40e/core/i40e_common.c
Loading...