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>
This commit is contained in:
Toke Høiland-Jørgensen
2023-03-16 23:49:28 +01:00
parent c7ecb48cfc
commit be8eb02e0c

View File

@@ -709,13 +709,13 @@ static int nat64_handler(struct __sk_buff *skb, bool egress)
return TC_ACT_OK;
}
SEC("classifier")
SEC("tc")
int nat64_egress(struct __sk_buff *skb)
{
return nat64_handler(skb, true);
}
SEC("classifier")
SEC("tc")
int nat64_ingress(struct __sk_buff *skb)
{
return nat64_handler(skb, false);