Skip to content

Commit

Permalink
bpf: fix typo in function name
Browse files Browse the repository at this point in the history
s/enacap/encap/

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser committed Mar 16, 2020
1 parent ff6eb66 commit 220f455
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bpf/lib/encap.h
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 220f455

Please sign in to comment.