-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for DPDK 24.11 #92
base: main
Are you sure you want to change the base?
Conversation
* run ci for toolchain 1.81.0 * run ci for toolchain 1.84.0 * cache dpdk build * check dpdk cache * fix dpdk cache * run ci * fix * fix ci
@@ -66,7 +69,7 @@ fn main() { | |||
.stdout; | |||
|
|||
if ldflags_bytes.is_empty() { | |||
println!("Could not get DPDK's LDFLAGS. Are DPDK_PATH, LD_LIBRARY_PATH set correctly?"); | |||
println!("Could not get DPDK's LDFLAGS. Is LD_LIBRARY_PATH set correctly?"); |
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.
Why this change?
uses: actions/checkout@v3 | ||
|
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.
not a big deal, but it is nice to have conceptually separate changes in separate PRs (formatting or toolchain changes like this vs. the DPDK update)
Thanks for submitting! Can you name in the PR description how y'all have tested this so far? |
@@ -89,7 +89,7 @@ impl fmt::Debug for Mempool { | |||
|
|||
/// Rounds `n` up to the nearest multiple of `s` | |||
fn round_up(n: u32, s: u32) -> u32 { | |||
((n + s - 1) / s) * s | |||
(n.div_ceil(s)) * s |
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.
can you revert this and submit in a separate PR? unless there is some reason why it's tightly coupled to the DPDK change that I am missing
@@ -24,7 +24,7 @@ pub struct Ipv6<'a> { | |||
mbuf: &'a Mbuf, | |||
} | |||
|
|||
impl<'a> Ipv6<'a> { | |||
impl Ipv6<'_> { |
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.
similarly - the lifetime syntax changes would ideally be reverted and submitted in a separate PR
@@ -33,6 +33,132 @@ impl rte_ipv4_hdr { | |||
} | |||
} | |||
|
|||
#[cfg(not(dpdk_ge_2411))] |
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.
@tbarbette @thegwan these refactors to account for the interface changes LGTM, but checking if either of you have any concerns from working on the original DPDK layer?
This PR adds support for DPDK 24.11 while preserving the support for previous DPDK versions.
Changes included in this PR: