Hello
I am encountering an issue where the RSS value for some packets is set to 0
when I try to calculate it. Here’s my code for configuring RSS:
static constexpr auto kRssHashKeyLen = 40U;
static std::array<uint8_t, kRssHashKeyLen> kSymmetricHashKey = {
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};
rte_eth_conf port_conf{};
rte_eth_rxmode rx_mode{};
rx_mode.mq_mode = RTE_ETH_MQ_RX_RSS;
rx_mode.offloads = RTE_ETH_RX_OFFLOAD_RSS_HASH;
port_conf.rxmode = rx_mode;
port_conf.rx_adv_conf.rss_conf.rss_key = kSymmetricHashKey.data();
port_conf.rx_adv_conf.rss_conf.rss_key_len = kRssHashKeyLen;
port_conf.rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP | RTE_ETH_RSS_UDP |
RTE_ETH_RSS_TCP;
Setting rx_vec_en=0 on the device helped resolve this problem. However, a new
issue has emerged—packets belonging to the same connection sometimes yield
different RSS values at the output.
Could you please advise how to address this problem?
DPDK version: 23.11
Regards,
Zaytsev Leonid
УВЕДОМЛЕНИЕ О КОНФИДЕНЦИАЛЬНОСТИ: Это электронное сообщение и любые документы,
приложенные к нему, содержат конфиденциальную информацию. Настоящим уведомляем
Вас о том, что если это сообщение не предназначено Вам, использование,
копирование, распространение информации, содержащейся в настоящем сообщении, а
также осуществление любых действий на основе этой информации, строго запрещено.
Если Вы получили это сообщение по ошибке, пожалуйста, сообщите об этом
отправителю по электронной почте и удалите это сообщение. CONFIDENTIALITY
NOTICE: This email and any files attached to it are confidential. If you are
not the intended recipient you are notified that using, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited. If you have received this email in error please notify the
sender and delete this email.