MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mvneta_set_tx_function

Function mvneta_set_tx_function

dpdk/drivers/net/mvneta/mvneta_rxtx.c:586–599  ·  view source on GitHub ↗

* Set tx burst function according to offload flag * * @param dev * Pointer to Ethernet device structure. */

Source from the content-addressed store, hash-verified

584 * Pointer to Ethernet device structure.
585 */
586void
587mvneta_set_tx_function(struct rte_eth_dev *dev)
588{
589 struct mvneta_priv *priv = dev->data->dev_private;
590
591 /* Use a simple Tx queue (no offloads, no multi segs) if possible */
592 if (priv->multiseg) {
593 MVNETA_LOG(INFO, "Using multi-segment tx callback");
594 dev->tx_pkt_burst = mvneta_tx_sg_pkt_burst;
595 } else {
596 MVNETA_LOG(INFO, "Using single-segment tx callback");
597 dev->tx_pkt_burst = mvneta_tx_pkt_burst;
598 }
599}
600
601/**
602 * DPDK callback for receive.

Callers 2

mvneta_dev_startFunction · 0.85
mvneta_eth_dev_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected