Skip to content

Commit df80056

Browse files
bpf/nat: Document needs_ct flag in code
Co-authored-by: Julian Wiedmann <jwi@isovalent.com> Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
1 parent 8c1000c commit df80056

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bpf/lib/nat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ enum nat_dir {
4646

4747
struct nat_entry {
4848
__u64 created;
49+
/* needs_ct is set whenever we want to NAT a connection that may not be
50+
* tracked, for example in the egress gateway case with a non-local pod
51+
* or in the case of host-local connections.
52+
*/
4953
__u64 needs_ct; /* Only single bit used. */
5054
__u64 pad1; /* Future use. */
5155
__u64 pad2; /* Future use. */

0 commit comments

Comments
 (0)