[PWCI] "iavf: fix reported max TX and RX queues in ethdev info"#613
[PWCI] "iavf: fix reported max TX and RX queues in ethdev info"#613
Conversation
With a regular iavf device, rte_eth_dev_info_get reports 256 maximum TX and RX queues. Trying to configure a port with 20 queues returns an error: ERR: IAVF_DRIVER: iavf_dev_configure(): large VF is not supported When the large VF feature isn't supported by the PF kernel driver, ethdev info must not report 256 supported queues but 16. Fixes: e436cd4 ("net/iavf: negotiate large VF and request more queues") Cc: stable@dpdk.org Signed-off-by: Robin Jarry <rjarry@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts iavf ethdev device info reporting so the max TX/RX queue counts reflect whether the VF supports large numbers of queue pairs or only the default, instead of always advertising the large-queue limit. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📝 WalkthroughWalkthroughModifies the iavf_ethdev.c driver to dynamically calculate maximum queue pairs based on VF capability flags. The code now checks if the VIRTCHNL_VF_LARGE_NUM_QPAIRS capability is set and applies either IAVF_MAX_NUM_QUEUES_LV or IAVF_MAX_NUM_QUEUES_DFLT accordingly, replacing the previously fixed assignment. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider guarding the
vf->vf_resdereference (e.g., checking for NULL or an uninitialized state) before accessingvf_cap_flagsto avoid potential crashes in edge cases where VF resources are not yet fully set up.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider guarding the `vf->vf_res` dereference (e.g., checking for NULL or an uninitialized state) before accessing `vf_cap_flags` to avoid potential crashes in edge cases where VF resources are not yet fully set up.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
NOTE: This is an auto submission for "iavf: fix reported max TX and RX queues in ethdev info".
See "http://patchwork.dpdk.org/project/dpdk/list/?series=37004" for details.
Summary by Sourcery
Bug Fixes:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.