logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                                 rte_eth_conf(3)

Detailed Description

       A structure used to configure an Ethernet port. Depending upon the Rx multi-queue mode, extra advanced
       configuration settings may be needed.

       Definition at line 1511 of file rte_ethdev.h.

Field Documentation

uint32_tlink_speeds
       bitmap of RTE_ETH_LINK_SPEED_XXX of speeds to be used. RTE_ETH_LINK_SPEED_FIXED disables link
       autonegotiation, and a unique speed shall be set. Otherwise, the bitmap defines the set of speeds to be
       advertised. If the special value RTE_ETH_LINK_SPEED_AUTONEG (0) is used, all speeds supported are
       advertised.

       Definition at line 1512 of file rte_ethdev.h.

   structrte_eth_rxmoderxmode
       Port Rx configuration.

       Definition at line 1519 of file rte_ethdev.h.

   structrte_eth_txmodetxmode
       Port Tx configuration.

       Definition at line 1520 of file rte_ethdev.h.

   uint32_tlpbk_mode
       Loopback operation mode. By default the value is 0, meaning the loopback mode is disabled. Read the
       datasheet of given Ethernet controller for details. The possible values of this field are defined in
       implementation of each driver.

       Definition at line 1521 of file rte_ethdev.h.

   structrte_eth_rss_confrss_conf
       Port RSS configuration

       Definition at line 1527 of file rte_ethdev.h.

   structrte_eth_vmdq_dcb_confvmdq_dcb_conf
       Port VMDq+DCB configuration.

       Definition at line 1529 of file rte_ethdev.h.

   structrte_eth_dcb_rx_confdcb_rx_conf
       Port DCB Rx configuration.

       Definition at line 1531 of file rte_ethdev.h.

   structrte_eth_vmdq_rx_confvmdq_rx_conf
       Port VMDq Rx configuration.

       Definition at line 1533 of file rte_ethdev.h.

   struct{...}rx_adv_conf
       Port Rx filtering configuration.

   structrte_eth_vmdq_dcb_tx_confvmdq_dcb_tx_conf
       Port VMDq+DCB Tx configuration.

       Definition at line 1537 of file rte_ethdev.h.

   structrte_eth_dcb_tx_confdcb_tx_conf
       Port DCB Tx configuration.

       Definition at line 1539 of file rte_ethdev.h.

   structrte_eth_vmdq_tx_confvmdq_tx_conf
       Port VMDq Tx configuration.

       Definition at line 1541 of file rte_ethdev.h.

   union{...}tx_adv_conf
       Port Tx DCB configuration (union).

   uint32_tdcb_capability_en
       Currently,Priority Flow Control(PFC) are supported,if DCB with PFC is needed,and the variable must be set
       RTE_ETH_DCB_PFC_SUPPORT.

       Definition at line 1545 of file rte_ethdev.h.

   structrte_eth_intr_confintr_conf
       Interrupt mode configuration.

       Definition at line 1546 of file rte_ethdev.h.

Name

       rte_eth_conf

Synopsis

       #include <rte_ethdev.h>

   DataFields
       uint32_t link_speeds
       struct rte_eth_rxmoderxmode
       struct rte_eth_txmodetxmode
       uint32_t lpbk_mode
       struct {
          struct rte_eth_rss_confrss_conf
          struct rte_eth_vmdq_dcb_confvmdq_dcb_conf
          struct rte_eth_dcb_rx_conf dcb_rx_conf
          struct rte_eth_vmdq_rx_confvmdq_rx_conf
       } rx_adv_conf
       union {
          struct rte_eth_vmdq_dcb_tx_conf vmdq_dcb_tx_conf
          struct rte_eth_dcb_tx_conf dcb_tx_conf
          struct rte_eth_vmdq_tx_conf vmdq_tx_conf
       } tx_adv_conf
       uint32_t dcb_capability_en
       struct rte_eth_intr_confintr_conf

See Also