switch from SEC() to DEFINE_BPF_PROG()
I keep on failing to find this using grep because it doesn't match how all the other programs are defined, so change it for consistency. Test: builds, atest, TreeHugger Signed-off-by: Maciej Żenczykowski<maze@google.com> Change-Id: Ib61b375bef84d2b489080866b2411c84880e4ef2
This commit is contained in:
@@ -162,8 +162,9 @@ static inline __always_inline int do_forward(struct __sk_buff* skb, bool is_ethe
|
|||||||
return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
|
return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
|
||||||
}
|
}
|
||||||
|
|
||||||
SEC("schedcls/ingress/tether_ether")
|
DEFINE_BPF_PROG("schedcls/ingress/tether_ether", AID_ROOT, AID_ROOT,
|
||||||
int sched_cls_ingress_tether_ether(struct __sk_buff* skb) {
|
sched_cls_ingress_tether_ether)
|
||||||
|
(struct __sk_buff* skb) {
|
||||||
return do_forward(skb, true);
|
return do_forward(skb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user