From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ABB7AA0542; Mon, 6 Jun 2022 15:19:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 906E642B86; Mon, 6 Jun 2022 15:18:21 +0200 (CEST) Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id 0CD3F4161A for ; Mon, 6 Jun 2022 15:18:12 +0200 (CEST) Received: from localhost.localdomain (unknown [10.2.5.185]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9BxieTe_J1imxwXAA--.64917S22; Mon, 06 Jun 2022 21:11:03 +0800 (CST) From: Min Zhou To: thomas@monjalon.net, david.marchand@redhat.com, bruce.richardson@intel.com, anatoly.burakov@intel.com, qiming.yang@intel.com, Yuying.Zhang@intel.com, jgrajcia@cisco.com, konstantin.v.ananyev@yandex.ru Cc: dev@dpdk.org, maobibo@loongson.cn Subject: [v3 20/24] ixgbe: add dummy vector implementation for LoongArch Date: Mon, 6 Jun 2022 21:10:50 +0800 Message-Id: <20220606131054.2097526-21-zhoumin@loongson.cn> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220606131054.2097526-1-zhoumin@loongson.cn> References: <20220606131054.2097526-1-zhoumin@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9BxieTe_J1imxwXAA--.64917S22 X-Coremail-Antispam: 1UD129KBjvJXoW7CFyftF13Gr43Cr1xtw4kCrg_yoW5Jr4kpF s7Gr4Svr1UXF47uwn3Xw13XrySga1vgFy7WF97C3s8ArZ3GrW8Cr9IqF1qvr95JrW8uF4x ur4DGrWUGa13G37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_UUUUUUUUU== X-CM-SenderInfo: 52kr3ztlq6z05rqj20fqof0/ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The purpose of this patch is used to fix building issues for LoongArch architecture. The hardware instructions based vector implementation will come in a future patch. Signed-off-by: Min Zhou --- drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c | 60 ++++++++++++++++++++++++++ drivers/net/ixgbe/meson.build | 2 + 2 files changed, 62 insertions(+) create mode 100644 drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c b/drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c new file mode 100644 index 0000000000..412c8f937a --- /dev/null +++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c @@ -0,0 +1,60 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2022 Loongson Technology Corporation Limited + */ + +#include "base/ixgbe_common.h" +#include "ixgbe_ethdev.h" +#include "ixgbe_rxtx.h" + +/* The vector support will come later */ +#ifdef RTE_ARCH_NO_VECTOR +int +ixgbe_rx_vec_dev_conf_condition_check(__rte_unused struct rte_eth_dev *dev) +{ + return -1; +} + +uint16_t +ixgbe_recv_pkts_vec(__rte_unused void *rx_queue, + __rte_unused struct rte_mbuf **rx_pkts, + __rte_unused uint16_t nb_pkts) +{ + return 0; +} + +uint16_t +ixgbe_recv_scattered_pkts_vec(__rte_unused void *rx_queue, + __rte_unused struct rte_mbuf **rx_pkts, + __rte_unused uint16_t nb_pkts) +{ + return 0; +} + +int +ixgbe_rxq_vec_setup(__rte_unused struct ixgbe_rx_queue *rxq) +{ + return -1; +} + +uint16_t +ixgbe_xmit_fixed_burst_vec(__rte_unused void *tx_queue, + __rte_unused struct rte_mbuf **tx_pkts, + __rte_unused uint16_t nb_pkts) +{ + return 0; +} + +int +ixgbe_txq_vec_setup(__rte_unused struct ixgbe_tx_queue *txq) +{ + return -1; +} + +void +ixgbe_rx_queue_release_mbufs_vec(__rte_unused struct ixgbe_rx_queue *rxq) +{ +} +#else +#error "The current version of LoongArch does not support vector!" +#endif diff --git a/drivers/net/ixgbe/meson.build b/drivers/net/ixgbe/meson.build index 162f8d5f46..33c9a58ac8 100644 --- a/drivers/net/ixgbe/meson.build +++ b/drivers/net/ixgbe/meson.build @@ -29,6 +29,8 @@ if arch_subdir == 'x86' endif elif arch_subdir == 'arm' sources += files('ixgbe_rxtx_vec_neon.c') +elif arch_subdir == 'loongarch' + sources += files('ixgbe_rxtx_vec_lsx.c') endif includes += include_directories('base') -- 2.31.1