c622735dd3
Normally, to use the HW offloads capability (e.g. checksum and TSO) in the Tx direction, the application needs to call rte_eth_tx_prepare() to do some adjustment with the packets before sending them. But the tx_prepare callback of the bonding driver is not implemented. Therefore, the sent packets may have errors (e.g. checksum errors). However, it is difficult to design the tx_prepare callback for bonding driver. Because when a bonded device sends packets, the bonded device allocates the packets to different slave devices based on the real-time link status and bonding mode. That is, it is very difficult for the bonded device to determine which slave device's prepare function should be invoked. So in this patch, the tx_prepare callback of bonding driver is not implemented. Instead, the rte_eth_tx_prepare() will be called before rte_eth_tx_burst(). In this way, all tx_offloads can be processed correctly for all NIC devices. Note: because it is rara that bond different PMDs together, so just call tx-prepare once in broadcast bonding mode. Also the following description was added to the rte_eth_tx_burst() function: "@note This function must not modify mbufs (including packets data) unless the refcnt is 1. The exception is the bonding PMD, which does not have tx-prepare function, in this case, mbufs maybe modified." Signed-off-by: Chengchang Tang <tangchengchang@huawei.com> Signed-off-by: Chengwen Feng <fengchengwen@huawei.com> Reviewed-by: Min Hu (Connor) <humin29@huawei.com> Acked-by: Chas Williams <3chas3@gmail.com> |
||
---|---|---|
.. | ||
ethdev_driver.c | ||
ethdev_driver.h | ||
ethdev_pci.h | ||
ethdev_private.c | ||
ethdev_private.h | ||
ethdev_profile.c | ||
ethdev_profile.h | ||
ethdev_trace_points.c | ||
ethdev_vdev.h | ||
meson.build | ||
rte_class_eth.c | ||
rte_cman.h | ||
rte_dev_info.h | ||
rte_eth_ctrl.h | ||
rte_ethdev_cman.c | ||
rte_ethdev_core.h | ||
rte_ethdev_trace_fp.h | ||
rte_ethdev_trace.h | ||
rte_ethdev.c | ||
rte_ethdev.h | ||
rte_flow_driver.h | ||
rte_flow.c | ||
rte_flow.h | ||
rte_mtr_driver.h | ||
rte_mtr.c | ||
rte_mtr.h | ||
rte_tm_driver.h | ||
rte_tm.c | ||
rte_tm.h | ||
sff_8079.c | ||
sff_8472.c | ||
sff_8636.c | ||
sff_8636.h | ||
sff_common.c | ||
sff_common.h | ||
sff_telemetry.c | ||
sff_telemetry.h | ||
version.map |