Skip to content

Commit

Permalink
use RawPacket::LEN for ringbuf size
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Sep 12, 2024
1 parent 7f8bd04 commit a0b7bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oryx-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use network_types::{
use oryx_common::{ip::ProtoHdr, RawPacket};

#[map]
static DATA: RingBuf = RingBuf::with_byte_size(4096 * 40, 0);
static DATA: RingBuf = RingBuf::with_byte_size(4096 * RawPacket::LEN as u32, 0);

#[classifier]
pub fn oryx(ctx: TcContext) -> i32 {
Expand Down

0 comments on commit a0b7bef

Please sign in to comment.