test: Update to use non-mut map types

pull/290/head
Tatsuyuki Ishi 2 years ago
parent 41c6b56142
commit e852f7e0cc

@ -14,10 +14,10 @@ use aya_bpf::{
}; };
#[map] #[map]
static mut FOO: Array<u32> = Array::<u32>::with_max_entries(10, 0); static FOO: Array<u32> = Array::<u32>::with_max_entries(10, 0);
#[map(name = "BAR")] #[map(name = "BAR")]
static mut BAZ: Array<u32> = Array::<u32>::with_max_entries(10, 0); static BAZ: Array<u32> = Array::<u32>::with_max_entries(10, 0);
#[xdp] #[xdp]
pub fn pass(ctx: XdpContext) -> u32 { pub fn pass(ctx: XdpContext) -> u32 {

Loading…
Cancel
Save