Use unlikely() again.

This commit is contained in:
Christian Deacon
2024-06-13 19:30:16 -04:00
parent 1dad5509a4
commit 648dbff479

View File

@@ -86,7 +86,7 @@ int xdp_prog_main(struct xdp_md *ctx)
struct ethhdr *eth = data;
// Check if the ethernet header is valid.
if (eth + 1 > (struct ethhdr *)data_end)
if (unlikely(eth + 1 > (struct ethhdr *)data_end))
{
return XDP_DROP;
}