Skip to content
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

[test] Bugfix: test XDP unit test failures #1461

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/rust/catpowder/win/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,21 @@ impl SharedCatpowderRuntime {

let queue_count: u32 = deduce_rss_settings(&mut api, ifindex)?;
let mut rx_rings: Vec<RxRing> = Vec::with_capacity(queue_count as usize);

for queueid in 0..queue_count {
rx_rings.push(RxRing::new(&mut api, Self::RING_LENGTH, ifindex, queueid as u32)?);
}
trace!("Created {} RX rings on interface {}", rx_rings.len(), ifindex);

trace!("Created {} RX rings on interface {}.", rx_rings.len(), ifindex);

if let Ok(vf_if_index) = vf_if_index { // Optionally create VF RX rings
let vf_queue_count = deduce_rss_settings(&mut api, vf_if_index)?;
let mut vf_rx_rings = Vec::with_capacity(vf_queue_count as usize);

for queueid in 0..vf_queue_count {
vf_rx_rings.push(RxRing::new(&mut api, Self::RING_LENGTH, vf_if_index, queueid as u32)?);
}

trace!("Created {} RX rings on VF interface {}.", vf_rx_rings.len(), vf_if_index);

Ok(Self(SharedObject::new(CatpowderRuntimeInner {
Expand Down