Commit e738451
i40e: Fix incorrect netdev's real number of RX/TX queues
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>1 parent 40feded commit e738451
1 file changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8740 | 8740 | | |
8741 | 8741 | | |
8742 | 8742 | | |
| 8743 | + | |
| 8744 | + | |
| 8745 | + | |
| 8746 | + | |
| 8747 | + | |
| 8748 | + | |
| 8749 | + | |
| 8750 | + | |
| 8751 | + | |
| 8752 | + | |
| 8753 | + | |
| 8754 | + | |
| 8755 | + | |
| 8756 | + | |
| 8757 | + | |
| 8758 | + | |
| 8759 | + | |
| 8760 | + | |
| 8761 | + | |
| 8762 | + | |
| 8763 | + | |
8743 | 8764 | | |
8744 | 8765 | | |
8745 | 8766 | | |
| |||
8776 | 8797 | | |
8777 | 8798 | | |
8778 | 8799 | | |
8779 | | - | |
8780 | | - | |
8781 | | - | |
8782 | | - | |
8783 | | - | |
8784 | | - | |
8785 | | - | |
| 8800 | + | |
8786 | 8801 | | |
8787 | 8802 | | |
8788 | 8803 | | |
| |||
14173 | 14188 | | |
14174 | 14189 | | |
14175 | 14190 | | |
| 14191 | + | |
| 14192 | + | |
| 14193 | + | |
14176 | 14194 | | |
14177 | 14195 | | |
14178 | 14196 | | |
| |||
0 commit comments