From c9980842628b853dc4f5bdcd48fd0539eed3f19a Mon Sep 17 00:00:00 2001 From: cfc4n Date: Sat, 14 Oct 2023 23:28:42 +0800 Subject: [PATCH] fix veristat test failed. unrecognized ELF section name 'classifier/egress' Signed-off-by: cfc4n --- kern/tc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kern/tc.h b/kern/tc.h index 184f9da8b..832a4b200 100644 --- a/kern/tc.h +++ b/kern/tc.h @@ -223,13 +223,13 @@ static __always_inline int capture_packets(struct __sk_buff *skb, bool is_ingres } // egress_cls_func is called for packets that are going out of the network -SEC("classifier/egress") +SEC("classifier") int egress_cls_func(struct __sk_buff *skb) { return capture_packets(skb, false); }; // ingress_cls_func is called for packets that are coming into the network -SEC("classifier/ingress") +SEC("classifier") int ingress_cls_func(struct __sk_buff *skb) { return capture_packets(skb, true); };