Add missing inline macro to xdp methods

pull/325/head
tirex
parent 24597b15b7
commit 8d586aaca2

@ -11,10 +11,12 @@ impl XdpContext {
XdpContext { ctx }
}
#[inline]
pub fn data(&self) -> usize {
unsafe { (*self.ctx).data as usize }
}
#[inline]
pub fn data_end(&self) -> usize {
unsafe { (*self.ctx).data_end as usize }
}

Loading…
Cancel
Save