Skip to content

Commit

Permalink
Add tx_metadata_len field to XdpUmemReg
Browse files Browse the repository at this point in the history
This field is introduced in kernel version 6.8.
  • Loading branch information
oherrala committed Sep 21, 2024
1 parent 75bdff8 commit 12292b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ pub mod xdp {
/// XDP umem registration.
///
/// `struct xdp_umem_reg`
// https://github.com/torvalds/linux/blob/v6.6/include/uapi/linux/if_xdp.h#L73-L79
// https://github.com/torvalds/linux/blob/v6.8/include/uapi/linux/if_xdp.h#L79-L86
#[repr(C)]
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct XdpUmemReg {
Expand All @@ -1674,6 +1674,8 @@ pub mod xdp {
///
/// Requires kernel version 5.4.
pub flags: XdpUmemRegFlags,
/// AF_XDP TX metadata length
pub tx_metadata_len: u32,
}

/// XDP statistics.
Expand Down

0 comments on commit 12292b7

Please sign in to comment.