Commit 8e0ddc0
qede: prevent chip hang when increasing channels
qede requires qed to provide enough resources to accommodate 16 combined
channels, but that upper-bound isn't actually being enforced by it.
Instead, qed inform back to qede how many channels can be opened based on
available resources - but that calculation doesn't really take into account
the resources requested by qede; Instead it considers other FW/HW available
resources.
As a result, if a user would increase the number of channels to more than
16 [e.g., using ethtool] the chip would hang.
This change increments the resources requested by qede to 64 combined
channels instead of 16; This value is an upper bound on the possible
available channels [due to other FW/HW resources].
Signed-off-by: Sudarsana Reddy Kalluru <[email protected]>
Signed-off-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 1d2f7b2 commit 8e0ddc0
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
1941 | | - | |
1942 | | - | |
1943 | 1941 | | |
1944 | 1942 | | |
1945 | 1943 | | |
| |||
2090 | 2088 | | |
2091 | 2089 | | |
2092 | 2090 | | |
2093 | | - | |
| 2091 | + | |
2094 | 2092 | | |
2095 | | - | |
| 2093 | + | |
2096 | 2094 | | |
2097 | 2095 | | |
2098 | 2096 | | |
| |||
0 commit comments