Initializing port 0 ... Creating queues: nb_rxq=2 nb_txq=4... Ethdev port_id=0 invalid rss_hf: 0x3afbc, valid value: 0x38f3c
/* Check that device supports requested rss hash functions. */ if ((dev_info.flow_type_rss_offloads | dev_conf->rx_adv_conf.rss_conf.rss_hf) != dev_info.flow_type_rss_offloads) { RTE_ETHDEV_LOG(ERR, "Ethdev port_id=%u invalid rss_hf: 0x%"PRIx64", valid value: 0x%"PRIx64" ", port_id, dev_conf->rx_adv_conf.rss_conf.rss_hf, dev_info.flow_type_rss_offloads); ret = -EINVAL; goto rollback; }
static uint8_t intel_rss_key[40] = { 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A };
0x38f3c --> 0011 1000 1111 0011 1100
ETH_RSS_IPV4
#define ETH_RSS_IPV4 (1ULL << 2) #define ETH_RSS_FRAG_IPV4 (1ULL << 3) #define ETH_RSS_NONFRAG_IPV4_TCP (1ULL << 4) #define ETH_RSS_NONFRAG_IPV4_UDP (1ULL << 5) #define ETH_RSS_NONFRAG_IPV4_SCTP (1ULL << 6) #define ETH_RSS_NONFRAG_IPV4_OTHER (1ULL << 7) --------不支持 #define ETH_RSS_IPV6 (1ULL << 8) #define ETH_RSS_FRAG_IPV6 (1ULL << 9) #define ETH_RSS_NONFRAG_IPV6_TCP (1ULL << 10) #define ETH_RSS_NONFRAG_IPV6_UDP (1ULL << 11) #define ETH_RSS_NONFRAG_IPV6_SCTP (1ULL << 12) #define ETH_RSS_NONFRAG_IPV6_OTHER (1ULL << 13)----------不支持 #define ETH_RSS_L2_PAYLOAD (1ULL << 14) #define ETH_RSS_IPV6_EX (1ULL << 15) #define ETH_RSS_IPV6_TCP_EX (1ULL << 16) #define ETH_RSS_IPV6_UDP_EX (1ULL << 17) #define ETH_RSS_PORT (1ULL << 18) #define ETH_RSS_VXLAN (1ULL << 19) #define ETH_RSS_GENEVE (1ULL << 20) #define ETH_RSS_NVGRE (1ULL << 21) #define ETH_RSS_GTPU (1ULL << 23)