]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Fri, 21 Jan 2022 14:49:24 +0000 (15:49 +0100)
commit18119514252d5ccccd6faf88f1da0b06aaeaf6d3
tree9fbb603e1c6977f864e62cd5c9a2b098a9c12dd2
parent30bab62ba5480142a2fc2d9f4670b05ce1505e32
i40e: Fix incorrect netdev's real number of RX/TX queues

BugLink: https://bugs.launchpad.net/bugs/1957882
commit e738451d78b2f8a9635d66c6a87f304b4d965f7a 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: 41c445ff0f48 ("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>
Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
drivers/net/ethernet/intel/i40e/i40e_main.c