1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(C) 2022 Marvell. 3 */ 4 5 #include "cn9k_ethdev.h" 6 #include "cn9k_tx.h" 7 8 #if defined(CNXK_DIS_TMPLT_FUNC) 9 10 uint16_t __rte_noinline __rte_hot 11 cn9k_nix_xmit_pkts_all_offload(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t pkts) 12 { 13 struct cn9k_eth_txq *txq = (struct cn9k_eth_txq *)tx_queue; 14 uint64_t cmd[8 + CNXK_NIX_TX_MSEG_SG_DWORDS - 2]; 15 16 return cn9k_nix_xmit_pkts_mseg(tx_queue, tx_pkts, pkts, cmd, txq->tx_offload_flags); 17 } 18 19 uint16_t __rte_noinline __rte_hot 20 cn9k_nix_xmit_pkts_vec_all_offload(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t pkts) 21 { 22 struct cn9k_eth_txq *txq = (struct cn9k_eth_txq *)tx_queue; 23 uint64_t cmd[8 + CNXK_NIX_TX_MSEG_SG_DWORDS - 2]; 24 25 return cn9k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd, txq->tx_offload_flags); 26 } 27 28 #endif 29