Skip to content

Commit

Permalink
Merge pull request #252 from bobrik/ivan/sec-kfree-skb
Browse files Browse the repository at this point in the history
Move SEC() to a separate line in kfree_skb for consistency
  • Loading branch information
bobrik authored Aug 20, 2023
2 parents c429061 + 3d97adb commit 147334d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/kfree_skb.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ struct {
__type(value, u64);
} kfree_skb_total SEC(".maps");

SEC("tp_btf/kfree_skb") int BPF_PROG(kfree_skb, struct sk_buff *skb, void *location, enum skb_drop_reason reason)
SEC("tp_btf/kfree_skb")
int BPF_PROG(kfree_skb, struct sk_buff *skb, void *location, enum skb_drop_reason reason)
{
struct kfree_skb_key_t key;
struct ethhdr eth_hdr;
Expand Down

0 comments on commit 147334d

Please sign in to comment.