From patchwork Tue May 31 14:13:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Kardach X-Patchwork-Id: 112148 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BDF42A0548; Tue, 31 May 2022 16:13:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5715427FF; Tue, 31 May 2022 16:13:17 +0200 (CEST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mails.dpdk.org (Postfix) with ESMTP id 1C66440143 for ; Tue, 31 May 2022 16:13:14 +0200 (CEST) Received: by mail-lj1-f182.google.com with SMTP id 5so6198332lju.10 for ; Tue, 31 May 2022 07:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SiJJicmSCFrFlrS6bKskGVGKimGsuO7DGMjRiELgor4=; b=SrlbJ6Jg1ATzI3IujyBC2Vamv17amWKXvEuQ56in/xh8y64ZnLpLRv1rk/FdatFxne oMMqIEwlsTsQ1SfGpCf7k05cYnOCE/1P7+R5ag2P0I9QPUzLhv+pR+O59RqjXGCTov3X Qv1cJdFa98PWBLZSawXZb8RA7zGGIWxiVjnBN2pw6abFInhkKQXzc2HMnm1eTcE1U0V6 2azA+yH7UHYF5YwPPVFSpIF0M8PVIp93oCb+J4fx9gd4jo6JNNPLqb3jEzBCKY0coOyD Gf1UG2aGMMKaIAPxb0QCsSPDnLwGjvb0twyymfFUW6I0B1N2abF2YR3aVWU10CN/T+qo kSjw== 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=vdjXHCSuZiaOcUsDj015gPHTfJBWqUQzsNwUq3UbdMLeZFsp2EBsjkZYuD7tWU0/7S OXarFXoOk3bqpycBC0i4+0OfJc9aRnJW0YBuCo9N6QpVPEdSV4ARD896bcBZezCcKjDo GZVhRsjOWQ6k7Tf2Ckp1Ke796tuW+BRPdgYwUu5CmmGAVo72/LUA/cvRhg3MyLqCeiCE ctdOM0iOCFxpailkNpImknU0haQrzC23/Ip3OvFXM9MBIl4uB8aeVeA3MNinLHTQLJnk n2AyG2OCg+SSxbV6lw8IQocG+Locc+kzuKlPr6NQQCgVNLoGz0UMyS8kMASzUldIYQY4 c9uw== X-Gm-Message-State: AOAM531Ey/5qa8fjG9cBTguNYxeqcnXL2VZb2lIkM169gAUN3zQ40OQE Ts7P/P3rYk1znfdSgVh0FKmWJA== X-Google-Smtp-Source: ABdhPJxMxPNhBoGQIXwmpcB9uMR6uwFmeYZBe+AqmpTtZfnpGVHrRHj5dPUC4Zqs56Qgv0z7gOlz/w== X-Received: by 2002:a2e:a88b:0:b0:255:3c9d:2777 with SMTP id m11-20020a2ea88b000000b002553c9d2777mr12210043ljq.473.1654006393679; Tue, 31 May 2022 07:13:13 -0700 (PDT) Received: from toster.semihalf.net (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id k20-20020a2e6f14000000b002554f044e1asm1258311ljc.116.2022.05.31.07.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 07:13:13 -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 v4 2/8] net/ixgbe: enable vector stubs for RISC-V Date: Tue, 31 May 2022 16:13:01 +0200 Message-Id: <20220531141307.253385-3-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220531141307.253385-1-kda@semihalf.com> References: <20220531141307.253385-1-kda@semihalf.com> MIME-Version: 1.0 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')