core: clat: add the "nm" prefix to ebpf program names

The program names are displayed in the "bpftool prog" output. It is
easier to recognize NM programs if they have the "nm" prefix.
This commit is contained in:
Beniamino Galvani 2026-02-02 22:26:45 +01:00
parent f9b2083394
commit d7edc806b6
2 changed files with 4 additions and 4 deletions

View file

@ -1103,14 +1103,14 @@ out:
SEC("tcx/egress")
int
clat_egress(struct __sk_buff *skb)
nm_clat_egress(struct __sk_buff *skb)
{
return clat_handle_v4(skb);
}
SEC("tcx/ingress")
int
clat_ingress(struct __sk_buff *skb)
nm_clat_ingress(struct __sk_buff *skb)
{
return clat_handle_v6(skb);
}

View file

@ -5708,7 +5708,7 @@ _l3_commit_pref64(NML3Cfg *self, NML3CfgCommitType commit_type)
}
self->priv.p->clat_ingress_link =
bpf_program__attach_tcx(self->priv.p->clat_bpf->progs.clat_ingress,
bpf_program__attach_tcx(self->priv.p->clat_bpf->progs.nm_clat_ingress,
self->priv.ifindex,
NULL);
if (!self->priv.p->clat_ingress_link) {
@ -5718,7 +5718,7 @@ _l3_commit_pref64(NML3Cfg *self, NML3CfgCommitType commit_type)
}
self->priv.p->clat_egress_link =
bpf_program__attach_tcx(self->priv.p->clat_bpf->progs.clat_egress,
bpf_program__attach_tcx(self->priv.p->clat_bpf->progs.nm_clat_egress,
self->priv.ifindex,
NULL);
if (!self->priv.p->clat_egress_link) {