Skip to content

Commit

Permalink
tests: change AF_XDP test PacketMap repr to C
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-alpaca authored and alessandrod committed Nov 21, 2023
1 parent 60d6a53 commit c89c95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration-test/src/tests/xdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn af_xdp() {

// So this needs to be page aligned. Pages are 4k on all mainstream architectures except for
// Apple Silicon which uses 16k pages. So let's align on that for tests to run natively there.
#[repr(align(16384))]
#[repr(C, align(16384))]
struct PacketMap(MaybeUninit<[u8; 4096]>);

// Safety: don't access alloc down the line.
Expand Down

0 comments on commit c89c95b

Please sign in to comment.