rte_flow_port_attr(3)

✨ rte_flow_port_attr ✨

okay bestie so this is the manual page for rte_flow_port_attr (that's the title, and it lives in the Library Functions Manual β€” section 3 energy πŸ’…). buckle up, it's a whole struct and we're going field by field, no skips, periodt.


🫢 NAME 🫢

rte_flow_port_attr β€” the struct that holds your flow engine's resource settings, and every single data field it's made of. it's giving "short page, long receipts" ngl.


🌸 SYNOPSIS 🌸

#include <rte_flow.h>

πŸŽ€ Data Fields πŸŽ€

here's the whole squad, in order, exactly as they appear:

uint32_t nb_counters
uint32_t nb_aging_objects
uint32_t nb_meters
uint32_t nb_conn_tracks
uint16_t host_port_id
uint32_t nb_quotas
uint32_t flags

πŸ’– Detailed Description πŸ’–

⚠️ Warning: EXPERIMENTAL: this API may change without prior notice. so like… it will switch up on you, bestie. do not get attached, fr fr. 😭

so what even is this? it's the flow engine resources settings. and here's the iconic little detail: the zero value means on demand resource allocations only. zero = "i'll allocate when i need it, no hoarding" ✨. anything else = you're pre-committing, main character behavior.

πŸ“ Defined at line 5589 of file rte_flow.h.


πŸ¦‹ Field Documentation πŸ¦‹

πŸ’« uint32_t nb_counters

Number of counters to configure. that's it, that's the field. how many counters do you want, babes? πŸ’…

See also: RTE_FLOW_ACTION_TYPE_COUNT

πŸ“ Definition at line 5594 of file rte_flow.h.


πŸ’« uint32_t nb_aging_objects

Number of aging objects to configure. everything ages eventually, even your flow entries 🧚

See also: RTE_FLOW_ACTION_TYPE_AGE

πŸ“ Definition at line 5599 of file rte_flow.h.


πŸ’« uint32_t nb_meters

Number of traffic meters to configure. we're measuring, we're monitoring, we're thriving 🌈

See also: RTE_FLOW_ACTION_TYPE_METER

πŸ“ Definition at line 5604 of file rte_flow.h.


πŸ’« uint32_t nb_conn_tracks

Number of connection trackings to configure. yes, tracking. no, not in a toxic way. it's a networking feature, chill 😌

See also: RTE_FLOW_ACTION_TYPE_CONNTRACK

πŸ“ Definition at line 5609 of file rte_flow.h.


πŸ’« uint16_t host_port_id

Port to base shared objects on. that's the anchor port, the home base, the one everything else is built on top of 🫢 (note the type bestie β€” this one is uint16_t, not uint32_t, do not play with it.)

πŸ“ Definition at line 5613 of file rte_flow.h.


πŸ’« uint32_t nb_quotas

Maximum number of quota actions. the maximum, okay? we're capping it on purpose πŸ‘‘

See also: RTE_FLOW_ACTION_TYPE_QUOTA

πŸ“ Definition at line 5618 of file rte_flow.h.


πŸ’« uint32_t flags

Port flags (RTE_FLOW_PORT_FLAG_*). a whole family of flags, and this field is where you pass them in. iykyk ✨

πŸ“ Definition at line 5622 of file rte_flow.h.


πŸ“ Author πŸ“

Generated automatically by Doxygen for DPDK from the source code. so like, no human wrote this, it was birthed by a doc generator and honestly? she ate πŸ’…


and that's the whole page, bestie πŸ’œ this was DPDK Version 25.11.3, and yeah, the footer still reads rte_flow_port_attr(3) because that's just her name. go configure some counters, love u, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from