From 220f455016c5c8ec435324500000ad65c0482d92 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Mar 2020 14:16:52 +0100 Subject: [PATCH] bpf: fix typo in function name s/enacap/encap/ Signed-off-by: Tobias Klauser --- bpf/lib/encap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bpf/lib/encap.h b/bpf/lib/encap.h index 82913acea3a2..cfdcbe333ff6 100644 --- a/bpf/lib/encap.h +++ b/bpf/lib/encap.h @@ -12,8 +12,8 @@ #ifdef ENCAP_IFINDEX #ifdef ENABLE_IPSEC static __always_inline int -enacap_and_redirect_nomark_ipsec(struct __ctx_buff *ctx, __u32 tunnel_endpoint, - __u8 key, __u32 seclabel) +encap_and_redirect_nomark_ipsec(struct __ctx_buff *ctx, __u32 tunnel_endpoint, + __u8 key, __u32 seclabel) { /* Traffic from local host in tunnel mode will be passed to * cilium_host. In non-IPSec case traffic with non-local dst @@ -159,7 +159,7 @@ encap_and_redirect_with_nodeid(struct __ctx_buff *ctx, __u32 tunnel_endpoint, { #ifdef ENABLE_IPSEC if (key) - return enacap_and_redirect_nomark_ipsec(ctx, tunnel_endpoint, key, seclabel); + return encap_and_redirect_nomark_ipsec(ctx, tunnel_endpoint, key, seclabel); #endif return __encap_and_redirect_with_nodeid(ctx, tunnel_endpoint, seclabel, monitor); } @@ -219,7 +219,7 @@ encap_and_redirect_netdev(struct __ctx_buff *ctx, struct endpoint_key *k, if (tunnel->key) { __u8 key = get_min_encrypt_key(tunnel->key); - return enacap_and_redirect_nomark_ipsec(ctx, tunnel->ip4, + return encap_and_redirect_nomark_ipsec(ctx, tunnel->ip4, key, seclabel); } #endif