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 C9093A0544; Tue, 7 Jun 2022 12:46:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5DAA4021D; Tue, 7 Jun 2022 12:46:32 +0200 (CEST) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by mails.dpdk.org (Postfix) with ESMTP id C0F5140156 for ; Tue, 7 Jun 2022 12:46:29 +0200 (CEST) Received: by mail-lj1-f181.google.com with SMTP id c30so2135878ljr.9 for ; Tue, 07 Jun 2022 03:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SiJJicmSCFrFlrS6bKskGVGKimGsuO7DGMjRiELgor4=; b=PZdUicwnDSfS346p/gWsbrBK7w2Ott09kxHFSPy/s8iHBvUxyU+LQ6c0nSwronOj2/ X2kn7l7F0I1Uxb3BdW0HqZPzzbwvEN7Zj6I/YcbR0ZaW0TtPmYdT4hy96lSzLWiTrrsK D4lMlCTwopURA4234DPplDOZQh96TslFOXF3JzdOvPmP355GoNKjMbeFq3dyG3j3ARN6 NnNhJc78f/K2bq+GnGmz1OkGkZZ7/koltUZV25qByHJqiCo5wlIASdWmPj3TS5gCFvO5 0uKlG1/6urSub0hacgFMVMPdwV9nf8r52+nO8lBTEoKpd89sLp/3GUlx2DHqfjxbbpLC wt6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SiJJicmSCFrFlrS6bKskGVGKimGsuO7DGMjRiELgor4=; b=kjwVRHTzKY6K9RbMfUfGmB1poBoJ3JWEk4Ns7IGpCmVCeM483SCF5N9CQZ+wVsRucb n6D6Tt1ApTmmp0XbcSet7iFmmM9LJFn8b9CrTU2WXFCkfAQrewc59tISYkJ2XKOunTjn 7+c+iSVkBTswyiGUU7AGBkpvQSPFYNTcf1RCtSqTvodqy9zIiO1igY/DHB3yrgkEyXKt NbDt5eVhLJSJx3JHsZ33+4QJG7XxN3JPzHS5QxbvB0fb6eCSiqwEe/sD3WkG7/XITC6e cJq90i0H3gq3Sccdbsfio9QpoalJbG/au1w2l6GiRws+cxJcfwG7xc4vnkn8GXHo4PAw VAWA== X-Gm-Message-State: AOAM532qonRwX7cwh+RxTA/flMT9MKMfWgEnaDSQDOqnlpCwDf7MFTEH Ed5i5mfnZlz4cpR8TsajqoL+Tg== X-Google-Smtp-Source: ABdhPJwGLwWn33eePMjzC86fAiew5F+X2BZ/GfkGzarpvwRqVyb6qoiwSFXe0LSQSKbsLjLcEmJcOA== X-Received: by 2002:a05:651c:248:b0:253:d7cb:136 with SMTP id x8-20020a05651c024800b00253d7cb0136mr52368962ljn.65.1654598789282; Tue, 07 Jun 2022 03:46:29 -0700 (PDT) Received: from localhost.localdomain (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id m16-20020a056512115000b00478f2f2f044sm3217272lfg.123.2022.06.07.03.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:46:28 -0700 (PDT) From: Stanislaw Kardach To: Haiyue Wang Cc: Stanislaw Kardach , dev@dpdk.org, Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH RESEND v4 2/8] net/ixgbe: enable vector stubs for RISC-V Date: Tue, 7 Jun 2022 12:46:11 +0200 Message-Id: <20220607104617.153892-3-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220607104617.153892-1-kda@semihalf.com> References: <20220607104617.153892-1-kda@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Sponsored-by: Sam Grove Signed-off-by: Stanislaw Kardach --- doc/guides/nics/features/ixgbe.ini | 1 + drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++-- drivers/net/ixgbe/meson.build | 6 ------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/doc/guides/nics/features/ixgbe.ini b/doc/guides/nics/features/ixgbe.ini index c5333d1142..b776ca1cf1 100644 --- a/doc/guides/nics/features/ixgbe.ini +++ b/doc/guides/nics/features/ixgbe.ini @@ -54,6 +54,7 @@ Windows = Y ARMv8 = Y x86-32 = Y x86-64 = Y +rv64 = Y [rte_flow items] eth = Y diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 9e8ea366a5..009d9b624a 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -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) { diff --git a/drivers/net/ixgbe/meson.build b/drivers/net/ixgbe/meson.build index 88539e97d5..162f8d5f46 100644 --- a/drivers/net/ixgbe/meson.build +++ b/drivers/net/ixgbe/meson.build @@ -1,12 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -if arch_subdir == 'riscv' - build = false - reason = 'riscv arch not supported' - subdir_done() -endif - cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS'] subdir('base') -- 2.30.2