We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfe32e4 + 9aa4d31 commit d87fca1Copy full SHA for d87fca1
input/dpdk.cpp
@@ -142,7 +142,11 @@ namespace ipxp
142
143
void DpdkReader::global_init(uint16_t port_id, uint16_t nb_rx_queue)
144
{
145
+#if RTE_VERSION >= RTE_VERSION_NUM(21,11,0,0)
146
rte_eth_conf port_conf{.rxmode = {.mq_mode = ETH_MQ_RX_RSS, .mtu = RTE_ETHER_MAX_LEN}};
147
+#else
148
+ rte_eth_conf port_conf{.rxmode = {.mq_mode = ETH_MQ_RX_RSS, .max_rx_pkt_len = RTE_ETHER_MAX_LEN}};
149
+#endif
150
151
if (!rte_eth_dev_is_valid_port(port_id)) {
152
throw PluginError("Invalid DPDK port specified");
0 commit comments