net/ixgbe: add vector stubs for LoongArch

Similar to RISC-V, the current version for LoongArch do not support
vector. Re-use vector processing stubs in ixgbe PMD defined for PPC
for LoongArch. This enables ixgbe PMD usage in scalar mode on
LoongArch.

The ixgbe PMD driver was validated with Intel X520-DA2 NIC and the
test-pmd application, l2fwd, l3fwd examples.

Signed-off-by: Min Zhou <zhoumin@loongson.cn>
This commit is contained in:
Min Zhou 2022-10-04 23:40:43 +08:00 committed by David Marchand
parent a8fc1e3943
commit 98f3fdbf72
3 changed files with 6 additions and 8 deletions

View File

@ -52,6 +52,7 @@ FreeBSD = Y
Linux = Y
Windows = Y
ARMv8 = Y
LoongArch64 = Y
rv64 = Y
x86-32 = Y
x86-64 = Y

View File

@ -5957,8 +5957,11 @@ ixgbe_config_rss_filter(struct rte_eth_dev *dev,
return 0;
}
/* Stubs needed for linkage when RTE_ARCH_PPC_64 or RTE_ARCH_RISCV is set */
#if defined(RTE_ARCH_PPC_64) || defined(RTE_ARCH_RISCV)
/* Stubs needed for linkage when RTE_ARCH_PPC_64, RTE_ARCH_RISCV or
* RTE_ARCH_LOONGARCH is set.
*/
#if defined(RTE_ARCH_PPC_64) || defined(RTE_ARCH_RISCV) || \
defined(RTE_ARCH_LOONGARCH)
int
ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev __rte_unused *dev)
{

View File

@ -1,12 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
if arch_subdir == 'loongarch'
build = false
reason = 'not supported on LoongArch'
subdir_done()
endif
cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS']
subdir('base')