]> git.droids-corp.org - dpdk.git/commitdiff
net/ixgbe: add vector stubs for RISC-V
authorStanislaw Kardach <kda@semihalf.com>
Tue, 7 Jun 2022 10:46:11 +0000 (12:46 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 8 Jun 2022 09:26:34 +0000 (11:26 +0200)
Re-use vector processing stubs in ixgbe PMD defined for PPC for RISC-V.
This enables ixgbe PMD usage in scalar mode on this architecture.

The ixgbe PMD driver was validated with Intel X520-DA2 NIC and the
test-pmd application. Packet transfer checked using all UIO drivers
available for non-IOMMU platforms: uio_pci_generic, vfio-pci noiommu and
igb_uio.

Sponsored-by: Frank Zhao <frank.zhao@starfivetech.com>
Sponsored-by: Sam Grove <sam.grove@sifive.com>
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
doc/guides/nics/features/ixgbe.ini
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/ixgbe/meson.build

index c5333d11426acf9bcb6f931edf871109d9723008..ab759a6fb32bc7dbb5b65813ed24036472c50c49 100644 (file)
@@ -52,6 +52,7 @@ FreeBSD              = Y
 Linux                = Y
 Windows              = Y
 ARMv8                = Y
+rv64                 = Y
 x86-32               = Y
 x86-64               = Y
 
index 9e8ea366a506761303491d2de4240700e6d047f0..009d9b624af66c7415c9b9879f1b895a5b7eee00 100644 (file)
@@ -5957,8 +5957,8 @@ ixgbe_config_rss_filter(struct rte_eth_dev *dev,
        return 0;
 }
 
-/* Stubs needed for linkage when RTE_ARCH_PPC_64 is set */
-#if defined(RTE_ARCH_PPC_64)
+/* 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)
 int
 ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev __rte_unused *dev)
 {
index 1773a07c4e1b5cf0c2c30e8f7621f86a94b66fc2..162f8d5f466d8d620d71a6be3b61a7037b1358a9 100644 (file)
@@ -1,12 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if arch_subdir == 'riscv'
-    build = false
-    reason = 'not supported on RISC-V'
-    subdir_done()
-endif
-
 cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS']
 
 subdir('base')