dpdk: rte_eth_tx_prepare need to called before transmiting packets 52/42452/11
authorNicolas PLANEL <[email protected]>
Wed, 5 Mar 2025 15:37:47 +0000 (16:37 +0100)
committerMohammed HAWARI <[email protected]>
Mon, 17 Mar 2025 10:01:07 +0000 (10:01 +0000)
commit26bd3e939e42ad13fd5f569e23d904826254b0db
tree14132c8ed8ee917d0e63856003851cae9ee6da3f
parentee10298fe95d300b8e389e17e78e0735fec54797
dpdk: rte_eth_tx_prepare need to called before transmiting packets

By the DPDK documentation rte_eth_tx_prepare() call is required
to prepare the NIC and to validate the mbufs.

This would fix hardware bad UDP checksum generated by ena driver issue.

As performance will be impacted depending on the driver tx_prepare() callback
I defined a tx-prepare flag that would be enabled by default on ena driver but
could be enabled in the configuration if need for others drivers.

Note: This option would normally be exclusive with intel_phdr_cksum as driver's
tx_prepare would normally cover this usage.

Type: fix
Change-Id: Ic7c21682f7bd92b35bd9b1028129709baa2a64d4
Signed-off-by: Nicolas PLANEL <[email protected]>
Signed-off-by: Nicolas PLANEL <[email protected]>
src/plugins/dpdk/device/device.c
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/driver.c
src/plugins/dpdk/device/init.c