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

Function mrvl_set_tx_function

dpdk/drivers/net/mvpp2/mrvl_ethdev.c:411–424  ·  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

409 * Pointer to Ethernet device structure.
410 */
411static void
412mrvl_set_tx_function(struct rte_eth_dev *dev)
413{
414 struct mrvl_priv *priv = dev->data->dev_private;
415
416 /* Use a simple Tx queue (no offloads, no multi segs) if possible */
417 if (priv->multiseg) {
418 RTE_LOG(INFO, PMD, "Using multi-segment tx callback\n");
419 dev->tx_pkt_burst = mrvl_tx_sg_pkt_burst;
420 } else {
421 RTE_LOG(INFO, PMD, "Using single-segment tx callback\n");
422 dev->tx_pkt_burst = mrvl_tx_pkt_burst;
423 }
424}
425
426/**
427 * Configure rss based on dpdk rss configuration.

Callers 2

mrvl_dev_startFunction · 0.85
mrvl_eth_dev_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected