]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ice: fix broken Rx on VFs
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Mon, 24 Nov 2025 17:07:35 +0000 (18:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 03:26:27 +0000 (19:26 -0800)
commit436fa8e7d1a119ec90f39e7c2ce0f3a146652899
treecd12b1460d76a777da9e6232cd8051826c5c3e7f
parentd696c73716147cb3158f1da1b89d7e75af3aa285
ice: fix broken Rx on VFs

Since the tagged commit, ice stopped respecting Rx buffer length
passed from VFs.
At that point, the buffer length was hardcoded in ice, so VFs still
worked up to some point (until, for example, a VF wanted an MTU
larger than its PF).
The next commit 93f53db9f9dc ("ice: switch to Page Pool"), broke
Rx on VFs completely since ice started accounting per-queue buffer
lengths again, but now VF queues always had their length zeroed, as
ice was already ignoring what iavf was passing to it.

Restore the line that initializes the buffer length on VF queues
basing on the virtchnl messages.

Fixes: 3a4f419f7509 ("ice: drop page splitting and recycling")
Reported-by: Jakub Slepecki <jakub.slepecki@intel.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Jakub Slepecki <jakub.slepecki@intel.com>
Link: https://patch.msgid.link/20251124170735.3077425-1-aleksander.lobakin@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/virt/queues.c