-
Notifications
You must be signed in to change notification settings - Fork 3
[PWCI] "[RFC] ethdev: support Rx data discard" #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
In some cases application does not need to receive entire packet from port hardware. If application could fetch required data only and safely discard the rest of Rx packet data, that could improve port performance by reducing PCI bandwidth. The RTE_ETH_DEV_DISCARD_RX_DATA device capability flag notifies that a port hardware supports Rx data discard. Signed-off-by: Gregory Etelson <getelson@nvidia.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdd a new ethdev device capability flag to advertise support for Rx data discard in the ethdev API. Class diagram for new ethdev Rx data discard capability flagclassDiagram
class RteEthDevCapabilityFlags {
<<bitmask>>
RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS RTE_BIT32_6
RTE_ETH_DEV_DISCARD_RX_DATA RTE_BIT32_7
}
class RteEthDevice {
uint32 dev_flags
}
RteEthDevice "1" -- "1" RteEthDevCapabilityFlags : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📝 WalkthroughWalkthroughA new public device capability flag Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- Consider expanding the comment on
RTE_ETH_DEV_DISCARD_RX_DATAto clarify the expected PMD behavior (e.g., whether metadata is still delivered, how it interacts with existing Rx offloads, and in which modes it applies), so consumers can implement consistent handling.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider expanding the comment on `RTE_ETH_DEV_DISCARD_RX_DATA` to clarify the expected PMD behavior (e.g., whether metadata is still delivered, how it interacts with existing Rx offloads, and in which modes it applies), so consumers can implement consistent handling.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
lib/ethdev/rte_ethdev.h (1)
2173-2174: New device flag looks correct; consider cross-checking doc/usage.The new
RTE_ETH_DEV_DISCARD_RX_DATAflag uses the next free bit (RTE_BIT32(7)) in the device flags block and follows existing naming/comment style; no ABI or semantic issues here. As a follow-up, ensure:
- Its meaning is documented in the ethdev/PMD documentation.
- It is wired consistently via
rte_eth_dev_info.dev_flags, and not confused with theRTE_ETH_DEV_CAPA_*capability bits elsewhere.To verify consistency, please double-check that any new documentation and PMD implementations refer to this as a
dev_flagsbit (notdev_capa) and that no other flag is already using bit 7.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
lib/ethdev/rte_ethdev.h
⏰ 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)
- GitHub Check: Sourcery review
NOTE: This is an auto submission for "[RFC] ethdev: support Rx data discard".
See "http://patchwork.dpdk.org/project/dpdk/list/?series=36951" for details.
Summary by Sourcery
New Features:
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.