rte_eth_fc_conf(3)

πŸ’– rte_eth_fc_conf β€” NAME πŸ’–

okay bestie, say hi to rte_eth_fc_conf β€” it's a struct, it lives in the DPDK library functions manual, and it's literally the lil control panel you use to set up Ethernet flow control parameters. yes. that one. πŸ’…


✨ SYNOPSIS ✨

First, the incantation:

#include <rte_ethdev.h>

πŸŽ€ Data Fields πŸŽ€

here's the whole squad, in order, no cap:

uint32_t high_water
uint32_t low_water
uint16_t pause_time
uint16_t send_xon
enum rte_eth_fc_mode mode
uint8_t mac_ctrl_frame_fwd
uint8_t autoneg

πŸ¦‹ Detailed Description πŸ¦‹

so like, this is a structure used to configure Ethernet flow control parameters. the way that it works is: these parameters will be configured into the register of the NIC. that's it, that's the job. πŸ‘‘

and bestie, please β€” please β€” refer to the corresponding data sheet for the proper value. DPDK is not gonna hold your hand on the numbers, and I'm not about to invent any. πŸ™ˆ

definition vibe check: Definition at line 1408 of file rte_ethdev.h.

🌸 Field Documentation 🌸

every single field, one by one, no skipping, we're doing the whole tour πŸ’–

uint32_t high_water

High threshold value to trigger XOFF.

Definition at line 1409 of file rte_ethdev.h.

uint32_t low_water

Low threshold value to trigger XON.

Definition at line 1410 of file rte_ethdev.h.

uint16_t pause_time

Pause quota in the Pause frame.

Definition at line 1411 of file rte_ethdev.h.

uint16_t send_xon

Is XON frame need be sent.

Definition at line 1412 of file rte_ethdev.h.

enum rte_eth_fc_mode mode

Link flow control mode.

Definition at line 1413 of file rte_ethdev.h.

uint8_t mac_ctrl_frame_fwd

Forward MAC control frames.

Definition at line 1414 of file rte_ethdev.h.

uint8_t autoneg

Use Pause autoneg.

Definition at line 1415 of file rte_ethdev.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. iconic behaviour honestly, the docs just generate themselves. πŸ’…


and that's the whole page bestie!! this was DPDK Version 25.11.3, Library Functions Manual, and yeah it's rte_eth_fc_conf(3) fr fr 🫢✨ go set your NIC registers, you got this πŸ’œπŸ¦‹

πŸ“¦ where this page comes from