9601 Divide by zero in i40e_get_available_resources()
Review Request #1116 — Created June 19, 2018 and submitted
Information | |
---|---|
marcel | |
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.
Change Summary:
Added README.illumos, rebased to recent illumos-gate, added exception_lists.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+97 -6) |
-
FYI we tested this change on a system with this issue and can confirm this solved the problem. Looking forward to seeing it in the gate!
-
-
usr/src/uts/common/io/i40e/core/README.illumos (Diff revision 2) So, when I did this I didn't grab Intel's drivers from Intel, but from the FreeBSD tree directly. I'm not sure the 1.6.10 reference is accurate. Reading the bit here, it comes across as the diff below the bug IDs is the changes, where as that's not actually the case. I'm not sure if it's worth mentioning that most of the original diffs you have below were in service of Studio and the 32-bit kernel. It's almost certainly the case that we can probably drop most of them with an update (the ones inlined that is).
Change Summary:
Updated README.illumos as suggested by Robert.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+101 -6) |
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