Explorar el Código

Add missing inline macro to xdp methods

tirex hace 2 años
padre
commit
caa66cabac
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      bpf/aya-bpf/src/programs/xdp.rs

+ 2 - 0
bpf/aya-bpf/src/programs/xdp.rs

@@ -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 }
     }