Quellcode durchsuchen

Add missing inline macro to xdp methods

tirex vor 2 Jahren
Ursprung
Commit
caa66cabac
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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 }
     }