mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-25 03:40:37 +01:00
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:
parent
f9b2083394
commit
d7edc806b6
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue