Skip to content

Commit be8eb02

Browse files
committed
nat64-bpf: Don't use deprecated 'classifier' section names
Newer versions of libbpf deprecated the 'classifier' section names in favour of just 'tc'. Update the nat64 code accordingly. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
1 parent c7ecb48 commit be8eb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nat64-bpf/nat64_kern.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,13 @@ static int nat64_handler(struct __sk_buff *skb, bool egress)
709709

710710
return TC_ACT_OK;
711711
}
712-
SEC("classifier")
712+
SEC("tc")
713713
int nat64_egress(struct __sk_buff *skb)
714714
{
715715
return nat64_handler(skb, true);
716716
}
717717

718-
SEC("classifier")
718+
SEC("tc")
719719
int nat64_ingress(struct __sk_buff *skb)
720720
{
721721
return nat64_handler(skb, false);

0 commit comments

Comments
 (0)