Skip to content

Commit

Permalink
loxilb-io/loxilb#877 Fixes to eBPF masquerading stats
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Dec 5, 2024
1 parent 8e62cd6 commit f60af49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/llb_kern_devif.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ dp_ing_ct_main(void *ctx, struct xfi *xf)
return DP_PASS;
}
#endif
} else {
if (xf->pm.fw_rid != 0) {
dp_do_map_stats(ctx, xf, LL_DP_FW4_STATS_MAP, xf->pm.fw_rid);
}
}

LL_DBG_PRINTK("[CTRK] start");
Expand Down
1 change: 1 addition & 0 deletions kernel/llb_kern_l3fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ dp_do_ctops(void *ctx, struct xfi *xf, void *fa_,
fa->ca.cidx = act->ca.cidx;
fa->ca.fwrid = act->ca.fwrid;
#endif
xf->pm.fw_rid = act->ca.fwrid;

if (act->ca.act_type == DP_SET_DO_CT) {
goto ct_trk;
Expand Down

0 comments on commit f60af49

Please sign in to comment.