Skip to content

Commit

Permalink
Fixes for incluster mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Feb 27, 2024
1 parent c949fbe commit 2c1db4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions kernel/llb_kern_devif.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,12 @@ dp_ing_ct_main(void *ctx, struct xfi *xf)
}

dp_do_nat(ctx, xf);

#ifdef HAVE_DP_LBMODE_ONLY
if ((xf->pm.phit & LLB_DP_NAT_HIT) == 0) {
return DP_PASS;
}
#endif
}

LL_DBG_PRINTK("[CTRK] start");
Expand Down
10 changes: 9 additions & 1 deletion kernel/llb_kern_l3fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,11 @@ dp_do_ipv4_fwd(void *ctx, struct xfi *xf, void *fa_)
if (xf->tm.tunnel_id == 0 || xf->tm.tun_type != LLB_TUN_GTP) {
dp_do_sess4_lkup(ctx, xf);
}

#ifndef HAVE_DP_LBMODE_ONLY
if (xf->pm.phit & LLB_DP_TMAC_HIT) {
#else
if (1) {
#endif

/* If some pipeline block already set a redirect before this,
* we honor this and dont do further l3 processing
Expand All @@ -389,7 +392,12 @@ dp_do_ipv4_fwd(void *ctx, struct xfi *xf, void *fa_)
static void __always_inline
dp_do_ipv6_fwd(void *ctx, struct xfi *xf, void *fa_)
{

#ifndef HAVE_DP_LBMODE_ONLY
if (xf->pm.phit & LLB_DP_TMAC_HIT) {
#else
if (1) {
#endif

/* If some pipeline block already set a redirect before this,
* we honor this and dont do further l3 processing
Expand Down

0 comments on commit 2c1db4c

Please sign in to comment.