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 31493A0093; Tue, 10 May 2022 17:49:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2715342836; Tue, 10 May 2022 17:49:06 +0200 (CEST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mails.dpdk.org (Postfix) with ESMTP id CA3E042833 for ; Tue, 10 May 2022 17:49:03 +0200 (CEST) Received: by mail-lf1-f48.google.com with SMTP id p26so16807819lfh.10 for ; Tue, 10 May 2022 08:49:03 -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=FiXMKf/U5BjDQNgw7wYu1GMkHgGlj5FsiWaLwh+itFc=; b=iraoNBk6/8GwADomGIg8ZBm11fK/nSdS37OK2vB2Gjq0CFHtZ5Lruw3QnFoXrGknVl gnId4IGUslTeqeWeJOuaVzptnfXZalFV54a+SQOm7aqCScHy/c/Q2VoNeaouKPcQIiMP M7Py+tnR832sDkY70AkKi7Mjzy39R29Lh7dmimtueVp0RuLMaGUDbp0LoFKYiheakWkl fz388Dk2iOPiPugFmSNnhozB6DBstMOk9xnjgs0mruRmoGpj50LdDXf0JRJccI2v2mJ/ 383Tr0zqwEPewIp3MnWTdMWrM4dNW/zV3Tvq/9CY9g4yiHnjn3y8l+n8q6EM6DyyXY/V 1nww== 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=vf0qIBgDez2mIwfD1lxRvmmwLXfVdxxcKKJ/rF5PiYKOOC925wPehjFHNwKTBTQt48 l/mben3Z/Diy2QAMu4YkIVR4pgMwhVfPjaGSG5HA0UmwSDzk5mlJ07Ux56EY9fp4ony6 ZqBrX91xsqYF9QE85p8vd1rKew/M+7lVW2RKF73a7gZIhsQ8D/fcYloPgKtGbVYYOQwP aGm3HwPuvfYROaGLugnMLyWjNeWmT3KGBIApN4vGeOX4UJq+tqlnRSM1xPsUgeMHSPOm hAgDxb8zTSNSwlZ2U5hzKf0hVHDGQtQ+NDS6jBz/EwG8ZOGhdXZRu0gyYjGSnfkx/WWR 3ymg== X-Gm-Message-State: AOAM532niIK/WCp0mbh9GdtMb/mpXN5W6KgNkAy1wG03cCrDZlpxV73k 6HUxDCwYw7XMGmv1F09nPR6EFU305DPNZQ== X-Google-Smtp-Source: ABdhPJx8tRBs4+aNgcFxnkYcIdZSqIJlsZJjgOU9IqMmRff9Z3Y7QaBhJa9qh/jdYUdFB+nXyF7bpQ== X-Received: by 2002:a05:6512:2a99:b0:472:5a90:ff78 with SMTP id dt25-20020a0565122a9900b004725a90ff78mr16565346lfb.432.1652197743446; Tue, 10 May 2022 08:49:03 -0700 (PDT) Received: from toster.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id i13-20020a2e540d000000b0024f3d1daeedsm2175051ljb.117.2022.05.10.08.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:49:03 -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 v3 3/8] net/memif: set memfd syscall ID on RISC-V Date: Tue, 10 May 2022 17:48:44 +0200 Message-Id: <20220510154849.530872-4-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220510154849.530872-1-kda@semihalf.com> References: <20220510150759.525434-1-kda@semihalf.com> <20220510154849.530872-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