rte_sched_port_params(3)
β¨ 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
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms