rte_sched_port_params(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

✨ rte_sched_port_params(3) ✨

okay bestie, so this is a Library Functions Manual page and it's literally all about rte_sched_port_params β€” the struct that holds all your port config vibes πŸ’… it lives in rte_sched.h and ngl it's giving "main character of the traffic scheduler" energy πŸ‘‘


🌸 SYNOPSIS 🌸

#include <rte_sched.h>

πŸŽ€ Data Fields πŸŽ€

here's the whole squad, fr fr:

const char * name
int socket
uint64_t rate
uint32_t mtu
uint32_t frame_overhead
uint32_t n_subports_per_port
struct rte_sched_subport_profile_params * subport_profiles
uint32_t n_subport_profiles
uint32_t n_max_subport_profiles
uint32_t n_pipes_per_subport

πŸ’– Detailed Description πŸ’–

so like, this is the Port configuration parameters struct 🫢 that's the whole vibe. it's defined at line 270 of file rte_sched.h if you're the kind of person who checks receipts (respect).


πŸ¦‹ Field Documentation πŸ¦‹

🌈 const char* name

the name of the port to be associated ✨ definition at line 272 of file rte_sched.h.

⭐ int socket

the CPU socket ID πŸ‘‘ definition at line 275 of file rte_sched.h.

πŸ”₯ uint64_t rate

output port rate, measured in bytes per second πŸ’€ definition at line 278 of file rte_sched.h.

🌸 uint32_t mtu

maximum Ethernet frame size, measured in bytes. and listen β€” it should not include the framing overhead, okay? that's a separate thing, don't come for me πŸ™ˆ definition at line 283 of file rte_sched.h.

🧚 uint32_t frame_overhead

framing overhead per packet, measured in bytes ✨ definition at line 286 of file rte_sched.h.

πŸ’œ uint32_t n_subports_per_port

the number of subports πŸ’… definition at line 289 of file rte_sched.h.

πŸ“ struct rte_sched_subport_profile_params* subport_profiles

the subport profile table πŸŽ€ and like, every pipe gets configured using one of the profiles from this table. iykyk. definition at line 294 of file rte_sched.h.

🌈 uint32_t n_subport_profiles

profiles in the pipe profile table ✨ definition at line 297 of file rte_sched.h.

πŸ¦‹ uint32_t n_max_subport_profiles

max allowed profiles in the pipe profile table πŸ‘‘ definition at line 300 of file rte_sched.h.

πŸ’– uint32_t n_pipes_per_subport

maximum number of subport pipes πŸ”₯ and okay this one's kinda important β€” this parameter is used to reserve a fixed number of bits in struct rte_mbuf::sched.queue_id for the pipe_id for all the subports of the same port. so like, it's not just a count, it's a reservation situation, periodt. definition at line 307 of file rte_sched.h.


πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for DPDK from the source code πŸ€– no human wrote this, it just spawned like that, iconic honestly.


ok that's the whole page bestie, go configure your ports, you're gonna slay πŸ’…βœ¨

~ cute sign-off ~ this one came from the DPDK source, Version 26.03.0, and it's the rte_sched_port_params(3) page 🫢 bye babes πŸ’–

πŸ“¦ where this page comes from