Unroll main filters loop to save instructions with BPF verifier and potentially improve performance.

This commit is contained in:
Christian Deacon
2025-03-23 20:36:28 -04:00
parent 5aa3270f82
commit 0c77037537

View File

@@ -324,6 +324,7 @@ int xdp_prog_main(struct xdp_md *ctx)
int action = 0;
u64 block_time = 1;
#pragma unroll
for (int i = 0; i < MAX_FILTERS; i++)
{
u32 key = i;