Skip to content

Commit

Permalink
dpdk - call rte_eth_dev_set_mtu to set MTU on interface
Browse files Browse the repository at this point in the history
The MTU setting in rte_eth_dev_configure turned out to be insufficient.
  • Loading branch information
TheSableCZ committed Jun 20, 2024
1 parent b04ad8a commit 5f83fe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions input/dpdk/dpdkDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ void DpdkDevice::configurePort()
if (rte_eth_dev_configure(m_portID, m_rxQueueCount, m_txQueueCount, &portConfig)) {
throw PluginError("DpdkDevice::configurePort() has failed. Unable to configure interface");
}
if (rte_eth_dev_set_mtu(m_portID, m_mtuSize)) {
throw PluginError("DpdkDevice::configurePort() has failed. Unable to set MTU (rte_eth_dev_set_mtu)");
}
}

rte_eth_conf DpdkDevice::createPortConfig()
Expand Down

0 comments on commit 5f83fe4

Please sign in to comment.