76dff63874
Base PTP timesync support is added for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
27 lines
964 B
C
27 lines
964 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2021 Marvell.
|
|
*/
|
|
|
|
#include "cn9k_ethdev.h"
|
|
#include "cn9k_tx.h"
|
|
|
|
#define T(name, f5, f4, f3, f2, f1, f0, sz, flags) \
|
|
uint16_t __rte_noinline __rte_hot \
|
|
cn9k_nix_xmit_pkts_vec_##name(void *tx_queue, \
|
|
struct rte_mbuf **tx_pkts, \
|
|
uint16_t pkts) \
|
|
{ \
|
|
uint64_t cmd[sz]; \
|
|
\
|
|
/* VLAN, TSTMP, TSO is not supported by vec */ \
|
|
if ((flags) & NIX_TX_OFFLOAD_VLAN_QINQ_F || \
|
|
(flags) & NIX_TX_OFFLOAD_TSTAMP_F || \
|
|
(flags) & NIX_TX_OFFLOAD_TSO_F) \
|
|
return 0; \
|
|
return cn9k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd, \
|
|
(flags)); \
|
|
}
|
|
|
|
NIX_TX_FASTPATH_MODES
|
|
#undef T
|