目录
DPDK RSS
DPDK 支持 RSS 功能,可以通过 rte_eth_dev_configure() 接口来设置每个 Ports 的 RSS 配置。
-
启用 RSS 模式:设置 struct rte_eth_conf.rte_eth_rxmode.mq_mode = ETH_MQ_RX_RSS。
-
设置 RSS 配置:设置 struct rte_eth_conf.rx_adv_conf.rte_eth_rss_conf 结构体。
struct rte_eth_rss_conf {
uint8_t *rss_key; // 指向 rss_key 数组。如果 为 NULL,则交由 NIC 自行设置。