File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,11 @@ struct rte_eth_conf DpdkCore::createPortConfig()
178178#endif
179179
180180 if (m_supportedRSS) {
181+ #if RTE_VERSION >= RTE_VERSION_NUM(21, 11, 0, 0)
182+ portConfig.rxmode .mq_mode = RTE_ETH_MQ_RX_RSS;
183+ #else
181184 portConfig.rxmode .mq_mode = ETH_MQ_RX_RSS;
185+ #endif
182186 } else {
183187 portConfig.rxmode .mq_mode = RTE_ETH_MQ_RX_NONE;
184188 }
@@ -215,7 +219,11 @@ void DpdkCore::configureRSS()
215219 struct rte_eth_rss_conf rssConfig = {
216220 .rss_key = rssKey,
217221 .rss_key_len = RSS_KEY_LEN,
222+ #if RTE_VERSION >= RTE_VERSION_NUM(21, 11, 0, 0)
223+ .rss_hf = RTE_ETH_RSS_IP,
224+ #else
218225 .rss_hf = ETH_RSS_IP,
226+ #endif
219227 };
220228
221229 if (rte_eth_dev_rss_hash_update (m_portId, &rssConfig)) {
You can’t perform that action at this time.
0 commit comments