Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bmc/bmc_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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++;

Expand Down Expand Up @@ -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 {
Expand Down