* Set tx burst function according to offload flag * * @param dev * Pointer to Ethernet device structure. */
| 409 | * Pointer to Ethernet device structure. |
| 410 | */ |
| 411 | static void |
| 412 | mrvl_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. |
no outgoing calls
no test coverage detected