ethdev: promote sibling iterators to stable
[dpdk.git] / drivers / net / cnxk / cn9k_tx_vec.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #include "cn9k_ethdev.h"
6 #include "cn9k_tx.h"
7
8 #define T(name, f5, f4, f3, f2, f1, f0, sz, flags)                             \
9         uint16_t __rte_noinline __rte_hot                                      \
10                 cn9k_nix_xmit_pkts_vec_##name(void *tx_queue,                  \
11                                               struct rte_mbuf **tx_pkts,       \
12                                               uint16_t pkts)                   \
13         {                                                                      \
14                 uint64_t cmd[sz];                                              \
15                                                                                \
16                 /* For TSO inner checksum is a must */                         \
17                 if (((flags) & NIX_TX_OFFLOAD_TSO_F) &&                        \
18                     !((flags) & NIX_TX_OFFLOAD_L3_L4_CSUM_F))                  \
19                         return 0;                                              \
20                 return cn9k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd, \
21                                                  (flags));                     \
22         }
23
24 NIX_TX_FASTPATH_MODES
25 #undef T