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 3F8A8A0544; Tue, 7 Jun 2022 12:46:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A525D4282D; Tue, 7 Jun 2022 12:46:34 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id 79E5342685 for ; Tue, 7 Jun 2022 12:46:31 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id c2so8236787lfk.0 for ; Tue, 07 Jun 2022 03:46:31 -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=FiXMKf/U5BjDQNgw7wYu1GMkHgGlj5FsiWaLwh+itFc=; b=L1zTztpChcu/jAc2TNFj4mMjevDs8I2iAAXYJH86KU/N49jvteUdWF7XcB+Mu/kRC9 brQbOwUkJyJgElwO136HJF/LP/9G1iefyQyREhEcSs60+mPm7qXWVE6CsOIt1ltSqutU 4Of/cMiCXf5PSid/UzEmjrB6EEy8qbBMoq1onir2oZgiz3m26yybhw3HYM8ZMGdXWn0o AP982HSuQJYgtjPTn1yhh4sTNdQY0tkXQ1c0fV4jUGGCoa+NQGTY3Vl5xbqoevn/8pDK cEYe3NCjY5UvDaKgb6KLSXZnTzAQkaL0wZuLDy+fL1/E086/B1mhhN6r9YKlvu5IQTRQ Me/g== 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=FiXMKf/U5BjDQNgw7wYu1GMkHgGlj5FsiWaLwh+itFc=; b=Vfw8AdyiuEyXI1ivU9UDOJTyDOF0J6oytqM6xTy0RjevzahXxeR5ibIImDlveXQ8oQ UuOQ1PZQiGP+U1VRWaLKX8sBnR8bRN11njpgcbu6VfdZcIEUycnoEh/+QDd+VHb5pbI2 hjiW/Cts2n7Uv8Ibi2NJzKoO8PAe6LXTtL04xqT9P9EZUaCHj5YTIe9gsq3skSjv4fIk frcqELTJH3kqwUcyXQPGFc/lVK7wnhNoOqpZWJqHs9yL6n775IxIkd3DYH3n03mN7HNm byT+u3EtqQcWZVGXBqjI0d22hCrwJEr63MklZp5pVD6Byez2KTrTd9VPZ6eYxQPMAn+Z vXyg== X-Gm-Message-State: AOAM533LxrdoYhCp2Mkl6NRHxyPCPVUolo0PPiV+HEI3kG5Pv/wh/iSZ ypQ4i1GaMqk5/Bjopn/JhtvcKA== X-Google-Smtp-Source: ABdhPJwvQC5EXSAoM05X1BMgCQVP9nkNEal5vZ6HLmmKpZ3ArfxZrxOkTGIkDUZFvVO0sOVr23VhoQ== X-Received: by 2002:a19:644a:0:b0:479:1b29:815b with SMTP id b10-20020a19644a000000b004791b29815bmr13217799lfj.588.1654598790083; Tue, 07 Jun 2022 03:46:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:46:29 -0700 (PDT) From: Stanislaw Kardach To: Jakub Grajciar Cc: Stanislaw Kardach , dev@dpdk.org, Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH RESEND v4 3/8] net/memif: set memfd syscall ID on RISC-V Date: Tue, 7 Jun 2022 12:46:12 +0200 Message-Id: <20220607104617.153892-4-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 Define the missing __NR_memfd_create syscall id to enable the memif PMD. Sponsored-by: Frank Zhao Sponsored-by: Sam Grove Signed-off-by: Stanislaw Kardach --- drivers/net/memif/meson.build | 5 ----- drivers/net/memif/rte_eth_memif.h | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/memif/meson.build b/drivers/net/memif/meson.build index 9afb495953..680bc8631c 100644 --- a/drivers/net/memif/meson.build +++ b/drivers/net/memif/meson.build @@ -5,11 +5,6 @@ if not is_linux build = false reason = 'only supported on Linux' endif -if arch_subdir == 'riscv' - build = false - reason = 'riscv arch not supported' - subdir_done() -endif sources = files( 'memif_socket.c', diff --git a/drivers/net/memif/rte_eth_memif.h b/drivers/net/memif/rte_eth_memif.h index a5ee23d42e..81e7dceae0 100644 --- a/drivers/net/memif/rte_eth_memif.h +++ b/drivers/net/memif/rte_eth_memif.h @@ -180,6 +180,8 @@ const char *memif_version(void); #define __NR_memfd_create 360 #elif defined __i386__ #define __NR_memfd_create 356 +#elif defined __riscv +#define __NR_memfd_create 279 #else #error "__NR_memfd_create unknown for this architecture" #endif -- 2.30.2