HomeFreeBSD

ice(4): Fix re-enabling VF queues

Description

ice(4): Fix re-enabling VF queues

On receiving a virtual channel request from VF driver tried
to configure and enable Tx and Rx queues without making
sure that they were disabled. It caused issue with reloading
a VF driver without a reset e.g. in case it crashed.
Fix that by always disabling all Rx and Tx queues.

While at that make sure that only queues requested by VF
driver are enabled. VF driver may use less queues than
assigned to the function when it was created.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1573

Details

Provenance
kgalazkaAuthored on Mar 6 2025, 9:47 PM
impCommitted on Jul 18 2025, 7:16 PM
Parents
rG925a15b969a5: ice(4): Add basic VFLR handler
Branches
Unknown
Tags
Unknown