Organize codeand potentially increase performance in XDP program.

This commit is contained in:
Christian Deacon
2025-02-23 07:15:37 -05:00
parent 4e7c563274
commit e5c11bb20c
4 changed files with 6 additions and 6 deletions

View File

@@ -246,7 +246,7 @@ int xdp_prog_main(struct xdp_md *ctx)
UpdateIpStats(&pps, &bps, iph->saddr, src_port, protocol, pkt_len, now);
}
for (u8 i = 0; i < MAX_FILTERS; i++)
for (int i = 0; i < MAX_FILTERS; i++)
{
u32 key = i;