Skip to content

Commit

Permalink
pull skb data in cil_from_netdev path for HIGH_SCALE_IPCACHE mode
Browse files Browse the repository at this point in the history
Signed-off-by: Su Fei <[email protected]>
  • Loading branch information
sofat1989 authored and julianwiedmann committed Sep 5, 2023
1 parent 9426bbf commit 7664f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/lib/high_scale_ipcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ decapsulate_overlay(struct __ctx_buff *ctx, __u32 *src_id)
if (proto != bpf_htons(ETH_P_IP))
return CTX_ACT_OK;

if (!revalidate_data(ctx, &data, &data_end, &ip4))
if (!revalidate_data_pull(ctx, &data, &data_end, &ip4))
return DROP_INVALID;
if (ip4->protocol != IPPROTO_UDP)
return CTX_ACT_OK;
Expand Down

0 comments on commit 7664f96

Please sign in to comment.