]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix incorrect netdev's real number of RX/TX queues
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Fri, 17 Dec 2021 14:29:05 +0000 (14:29 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 4 Jan 2022 22:12:18 +0000 (14:12 -0800)
commitf8a814fa1c3e1cb483d5f02c30e1ded22bdb460e
tree7c410d7589d39cc857c3e2af22964ca90ae6a519
parente8fcf4df46049c4a92409f9bcdf4ae1902ed1b75
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: 79a154c5e3e8 ("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>
drivers/net/ethernet/intel/i40e/i40e_main.c