]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: set ice PMD RSS key length to 52 bytes for all DPDK versions 12262/head
authorLukas Sismis <lsismis@oisf.net>
Mon, 9 Dec 2024 15:07:57 +0000 (16:07 +0100)
committerLukas Sismis <lukas.sismis@gmail.com>
Wed, 11 Dec 2024 09:12:58 +0000 (10:12 +0100)
ICE driver (Intel E810 NIC) requires/supports 52-byte long RSS key.
The 52 byte key length was mandatory from DPDK 23.11 when Suricata
was starting with independently configured ice PMD.

However, Suricata failed to start when ice PMD was part of
net_bonding PMD, requiring 52 byte RSS key even in DPDK versions
lower than 23.11. Since the support for the longer key is present
since DPDK 19.11 the key is set to 52 bytes for all versions.

Ticket: 7445
(cherry picked from commit 18ab9a6ccd2392f7e94db9623bb3383731038937)

src/util-dpdk-ice.c

index 4b714d88c353ae145f4c84acb55a2850a5178025..8cd6b777e02fa2e07787eac21ce0141712c86a57 100644 (file)
@@ -49,11 +49,7 @@ static void iceDeviceSetRSSHashFunction(uint64_t *rss_hf)
 void iceDeviceSetRSSConf(struct rte_eth_rss_conf *rss_conf)
 {
     iceDeviceSetRSSHashFunction(&rss_conf->rss_hf);
-#if RTE_VERSION < RTE_VERSION_NUM(23, 11, 0, 0)
-    rss_conf->rss_key_len = 40;
-#else
     rss_conf->rss_key_len = 52;
-#endif
 }
 
 #endif /* HAVE_DPDK */