RTE_FLOW_ACTION_CONNTRACK(3)

✨ NAME ✨

rte_flow_action_conntrack β€” bestie, this is the struct that holds all the tea β˜• for the conntrack action, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_flow.h>

🌸 Data Fields 🌸

okay so here's the whole squad of fields, in order, exactly as they show up πŸ’–

  • uint16_t peer_port
  • uint32_t is_original_dir:1
  • uint32_t enable:1
  • uint32_t live_connection:1
  • uint32_t selective_ack:1
  • uint32_t challenge_ack_passed:1
  • uint32_t last_direction:1
  • uint32_t liberal_mode:1
  • enum rte_flow_conntrack_state state
  • uint8_t max_ack_window
  • uint8_t retransmission_limit
  • struct rte_flow_tcp_dir_param original_dir
  • struct rte_flow_tcp_dir_param reply_dir
  • uint16_t last_window
  • uint32_t last_seq
  • uint32_t last_ack
  • uint32_t last_end

πŸ’« Detailed Description πŸ’«

Warning ⚠️ EXPERIMENTAL: this structure may change without prior notice 😭 fr fr, it can just change on you, so don't get too attached

RTE_FLOW_ACTION_TYPE_CONNTRACK

This is the configuration and the initial state for the connection tracking module. The way this struct is giving "I do both" energy β€” it can be used for both setting and query. And listen: all fields should be in host byte order, okay? Every single one. Don't play with me 🫢

Definition at line 4027 of file rte_flow.h.


πŸ”₯ Field Documentation πŸ”₯

uint16_t peer_port

The peer port number. And yes, it can be the same port πŸ’…

Definition at line 4029 of file rte_flow.h.

uint32_t is_original_dir

The direction of this connection when you're creating a flow rule. Heads up tho: this value only affects the creation of subsequent flow rules. That's it. That's the whole job.

Definition at line 4034 of file rte_flow.h.

uint32_t enable

Enables / disables the conntrack HW module. When it's disabled, the result will always be RTE_FLOW_CONNTRACK_FLAG_DISABLED, and in that state the HW just acts as a passthrough, lowkey minding its own business. Also β€” it only affects this conntrack object in the HW, with no effect on any of the other objects. Very "stay in your lane" of it ✨

Definition at line 4042 of file rte_flow.h.

uint32_t live_connection

At least one ack was seen after the connection was established. πŸŽ‰

Definition at line 4044 of file rte_flow.h.

uint32_t selective_ack

Enable selective ACK on this connection.

Definition at line 4046 of file rte_flow.h.

uint32_t challenge_ack_passed

A challenge ack has passed. βœ…

Definition at line 4048 of file rte_flow.h.

uint32_t last_direction

1: the last packet is seen from the original direction. 0: the last packet is seen from the reply direction. Binary queen πŸ‘‘

Definition at line 4053 of file rte_flow.h.

uint32_t liberal_mode

No TCP check will be done except the state change. It's giving "we're being chill about it" 🌈

Definition at line 4055 of file rte_flow.h.

enum rte_flow_conntrack_state state

The current state of this connection.

Definition at line 4057 of file rte_flow.h.

uint8_t max_ack_window

Scaling factor for maximal allowed ACK window.

Definition at line 4059 of file rte_flow.h.

uint8_t retransmission_limit

Maximal allowed number of retransmission times. So like, the limit. The cap. Periodt.

Definition at line 4061 of file rte_flow.h.

struct rte_flow_tcp_dir_param original_dir

TCP parameters of the original direction.

Definition at line 4063 of file rte_flow.h.

struct rte_flow_tcp_dir_param reply_dir

TCP parameters of the reply direction.

Definition at line 4065 of file rte_flow.h.

uint16_t last_window

The window value of the last packet that passed this conntrack.

Definition at line 4067 of file rte_flow.h.

uint32_t last_seq

The sequence of the last packet that passed this conntrack.

Definition at line 4070 of file rte_flow.h.

uint32_t last_ack

The acknowledgment of the last packet that passed this conntrack.

Definition at line 4072 of file rte_flow.h.

uint32_t last_end

The total value ACK + payload length of the last packet that passed this conntrack. Yes bestie, it's adding them together, that's the whole vibe πŸ”₯

Definition at line 4077 of file rte_flow.h.


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for DPDK from the source code. Not me writing it by hand, it's literally a robot doing the most for us πŸ€–πŸ’–


and that's the page, bestie!! this is from DPDK Version 25.11.3, mwah 😘 slay, go configure your conntrack, ily 🫢✨🌈

πŸ“¦ where this page comes from