菜单

Sinsegye-DPDK-Ethercat 数据结构

数据结构

shell 复制代码
typedef struct {
    unsigned lcore_id;					
    unsigned int delay_µs;				
    uint16_t portid;					
    uint64_t sync_interval;				
    struct rte_mempool *mbuf_pool;		
    struct rte_ring *tx_ring;			
    struct rte_ring *rx_ring;			
    struct rte_timer sync_timer;		
} DpdkEthercat;

数据字段

shell 复制代码
unsigned lcore_id;					
unsigned int delay_µs;
uint16_t portid;
uint64_t sync_interval;
struct rte_mempool *mbuf_pool;		
struct rte_ring *tx_ring;			
struct rte_ring *rx_ring;				
struct rte_timer sync_timer;			

详细说明

描述了DPDK-Ethercat网口的结构特征

数据结构文档

  • lcore_id

    unsigned lcore_id

    DPDK绑定的CPU核心


  • delay_µs

    unsigned int delay_µs

    PMD模式下轮询延时


  • portid

    uint16_t portid

    DPDK绑定的网口


  • sync_interval

    uint64_t sync_interval

    Ethercat应用模式下同步周期


  • mbuf_pool

    struct rte_mempool *mbuf_pool

    DPDK内存池


  • tx_ring

    struct rte_ring *tx_ring

    DPDK发送的数据包


  • rx_ring

    struct rte_ring *rx_ring

    DPDK接收的数据包


  • sync_timer

    struct rte_timer sync_timer

    Ethercat应用模式同步定时器


最近修改: 2025-08-19