[RFC PATCH v1 2/4] ethdev: add API for direct re-arm mode
Stephen Hemminger
stephen at networkplumber.org
Fri Dec 24 20:38:01 CET 2021
On Sat, 25 Dec 2021 00:46:10 +0800
Feifei Wang <feifei.wang2 at arm.com> wrote:
> +rte_eth_direct_rxrearm_map(uint16_t rx_port_id, uint16_t rx_queue_id,
> + uint16_t tx_port_id, uint16_t tx_queue_id)
> +{
> + struct rte_eth_dev *dev;
> +
> + dev = &rte_eth_devices[rx_port_id];
> + (*dev->dev_ops->rx_queue_direct_rearm_enable)(dev, rx_queue_id);
> + (*dev->dev_ops->rx_queue_direct_rearm_map)(dev, rx_queue_id,
> + tx_port_id, tx_queue_id);
> +
Indirect calls are expensive, maybe better to combine these?
More information about the dev
mailing list