-
Notifications
You must be signed in to change notification settings - Fork 4
[PWCI] "net/ice: revert count drop-all filter in Rx stats" #174
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
This reverts commit af05f9e This patch caused testpmd to count packets not destined for our MAC even when promiscuous mode is off.This behaviour is inconsistent with other drivers and leads to incorrect Rx statistics. Fixes: af05f9e ("net/ice: count drop-all filter in Rx stats") Cc: stable@dpdk.org Signed-off-by: Shaiq Wani <shaiq.wani@intel.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR reverts the inclusion of drop-all filter counts in Rx packet stats and aligns the ibytes metric to use the main_vsi eth_stats counter. Class diagram for updated ice_stats_get functionclassDiagram
class ice_stats_get {
+stats.ipackets
+stats.opackets
+stats.ibytes
+stats.obytes
+stats.oerrors
}
class pf {
+main_vsi
}
class main_vsi {
+eth_stats.rx_unicast
+eth_stats.rx_multicast
+eth_stats.rx_broadcast
+eth_stats.rx_discards
+eth_stats.rx_bytes
+eth_stats.tx_errors
}
class ns {
+eth.rx_unknown_protocol
+eth.tx_unicast
+eth.tx_multicast
+eth.tx_broadcast
+eth.tx_bytes
+eth.tx_errors
}
ice_stats_get --> pf
pf --> main_vsi
ice_stats_get --> ns
ice_stats_get : - uses ns.eth.rx_unknown_protocol in ipackets
ice_stats_get : + uses pf.main_vsi.eth_stats.rx_bytes in ibytes
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
WalkthroughThe change updates ice_stats_get in drivers/net/intel/ice/ice_ethdev.c to compute ipackets without rx_unknown_protocol and to source ibytes from the main VSI’s rx_bytes. ipackets now sum unicast, multicast, and broadcast and subtract rx_discards; ibytes uses pf->main_vsi->eth_stats.rx_bytes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant App as Application
participant PMD as ICE PMD
participant Fn as ice_stats_get
participant MainVSI as PF.main_vsi.eth_stats
participant NS as ns->eth (previous source)
App->>PMD: rte_eth_stats_get(port)
PMD->>Fn: ice_stats_get(port)
rect rgba(230,245,255,0.5)
note right of Fn: New byte source
Fn->>MainVSI: read rx_bytes
MainVSI-->>Fn: rx_bytes (ibytes)
end
rect rgba(240,255,230,0.5)
note right of Fn: New packet aggregation
Fn->>MainVSI: read rx_unicast/multicast/broadcast, rx_discards
MainVSI-->>Fn: values
Fn->>Fn: ipackets = uni + multi + bcast - discards<br/>exclude rx_unknown_protocol
end
Fn-->>PMD: stats (ipackets, ibytes, ...)
PMD-->>App: return rte_eth_stats
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: This is an auto submission for "net/ice: revert count drop-all filter in Rx stats".
See "http://patchwork.dpdk.org/project/dpdk/list/?series=36343" for details.
Summary by Sourcery
Revert the drop-all filter from Rx statistics and correct the source of received byte counts.
Bug Fixes:
Summary by CodeRabbit