Repository navigation
Commit c859c4d
i40e: Fix incorrect netdev's real number of RX/TX queues
commit e738451 upstream.
There was a wrong queues representation in sysfs during
driver's reinitialization in case of online cpus number is
less than combined queues. It was caused by stopped
NetworkManager, which is responsible for calling vsi_open
function during driver's initialization.
In specific situation (ex. 12 cpus online) there were 16 queues
in /sys/class/net/<iface>/queues. In case of modifying queues with
value higher, than number of online cpus, then it caused write
errors and other errors.
Add updating of sysfs's queues representation during driver
initialization.
Fixes: 41c445f ("i40e: main driver core")
Signed-off-by: Lukasz Cieplicki <lukaszx.cieplicki@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent d0ad644 commit c859c4d
1 file changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8381 | 8381 | | |
8382 | 8382 | | |
8383 | 8383 | | |
| 8384 | + | |
| 8385 | + | |
| 8386 | + | |
| 8387 | + | |
| 8388 | + | |
| 8389 | + | |
| 8390 | + | |
| 8391 | + | |
| 8392 | + | |
| 8393 | + | |
| 8394 | + | |
| 8395 | + | |
| 8396 | + | |
| 8397 | + | |
| 8398 | + | |
| 8399 | + | |
| 8400 | + | |
| 8401 | + | |
| 8402 | + | |
| 8403 | + | |
| 8404 | + | |
8384 | 8405 | | |
8385 | 8406 | | |
8386 | 8407 | | |
| |||
8417 | 8438 | | |
8418 | 8439 | | |
8419 | 8440 | | |
8420 | | - | |
8421 | | - | |
8422 | | - | |
8423 | | - | |
8424 | | - | |
8425 | | - | |
8426 | | - | |
| 8441 | + | |
8427 | 8442 | | |
8428 | 8443 | | |
8429 | 8444 | | |
| |||
13710 | 13725 | | |
13711 | 13726 | | |
13712 | 13727 | | |
| 13728 | + | |
| 13729 | + | |
| 13730 | + | |
13713 | 13731 | | |
13714 | 13732 | | |
13715 | 13733 | | |
| |||
0 commit comments