diff --git a/bmc/bmc_kern.c b/bmc/bmc_kern.c index 5a2f064..9a4c5c0 100644 --- a/bmc/bmc_kern.c +++ b/bmc/bmc_kern.c @@ -512,7 +512,7 @@ int bmc_tx_filter_main(struct __sk_buff *skb) return TC_ACT_OK; if (ip + 1 > data_end) - return XDP_PASS; + return TC_ACT_OK; if (ip->protocol != IPPROTO_UDP) return TC_ACT_OK; @@ -527,7 +527,7 @@ int bmc_tx_filter_main(struct __sk_buff *skb) struct bmc_stats *stats = bpf_map_lookup_elem(&map_stats, &zero); if (!stats) { - return XDP_PASS; + return TC_ACT_OK; } stats->get_resp_count++; @@ -594,7 +594,7 @@ int bmc_update_cache_main(struct __sk_buff *skb) bpf_spin_unlock(&entry->lock); struct bmc_stats *stats = bpf_map_lookup_elem(&map_stats, &zero); if (!stats) { - return XDP_PASS; + return TC_ACT_OK; } stats->update_count++; } else {