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 25388A00C2; Thu, 5 May 2022 19:31:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A68242842; Thu, 5 May 2022 19:30:34 +0200 (CEST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id 295724282B for ; Thu, 5 May 2022 19:30:31 +0200 (CEST) Received: by mail-lf1-f52.google.com with SMTP id bu29so8677287lfb.0 for ; Thu, 05 May 2022 10:30:31 -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=EBdI1LWmwlmztdZHTFS3GlDR4JFoY38ZJCnGBf0izmE=; b=l77uJ6vFFwbpu9ga/8ItiNohP08uxqqxHsUeZMYQI03S4xQ3pjCIIEUAm/z+axnJ4B nSO5tvas/WSegcLgEYTHMrgDfo4Rf9Wtk1YGA08jDkPyVpOEI+NAm2zi+CIk+YWRfUfe cpWXU2coNfuBWpAn5ELV7MkOD1nyhKbu1v8GNHUFoCC5fZ0RLK/vi+1jLliEvlnDlTdi bUS/XwB+7SpkhsEI2WHMHbPpRxN7V61HMT2czGs6Ki7t5zKNlvBkWHxt1KLaFl0gKWEW XlfmoJCdrwXnlsJpq26suAdVMzzbEGOk+Q70ZeNEiJTYgeSvJNVb9+tkvHFcC0eSeWrj 24pg== 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=EBdI1LWmwlmztdZHTFS3GlDR4JFoY38ZJCnGBf0izmE=; b=meMxdU8RG7S+kgxJb27qY6xH1pKZDhseJPpeHOXWxkogvFL7pXqTHNzuechYZd17KJ AlWrxbzxIu6shARYIgol0NvsnyNeDAr8SQJoVRVLy/rvmEiKVpuOfKMM4M4eI018CxM0 cdpWVbX4eFU3+4lu2dmCmOwqsnTKEbO8/IKoKW73+XKxbkLQm2wf9LdmkX3RvEV1dUOS mHRmT6ZjCw5dkgWeBsndrmmoAC4yv1bg1yc+A9Qvx9FNNegLSo99z/SoQL02gUWTehB9 YUQ35pL0gLGXXv4VuAJhq1j87ZJq+Nv/CVr+xXmrzcAoqvfNe/ABUtHbLd9sNI+hTTSw FaGA== X-Gm-Message-State: AOAM531urpmXj1rwkCdCRUFKrCrhnwjgoCo3rHawKfde1pMXHuoHZ1L8 MWAKP0Oh9H0B4ddVOa0DKBfjHA== X-Google-Smtp-Source: ABdhPJyGPIxZEEezu6KT7XKQicncKjeOSdJwHL36dRbdwOom7w2bd6V3rSmhIQbB+0S1zjm452YqIw== X-Received: by 2002:a05:6512:2203:b0:473:b472:98d4 with SMTP id h3-20020a056512220300b00473b47298d4mr8464713lfu.533.1651771830774; Thu, 05 May 2022 10:30: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 z26-20020ac25dfa000000b0047255d21203sm289640lfq.306.2022.05.05.10.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 10:30:30 -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 05/11] net/memif: set memfd syscall ID on RISC-V Date: Thu, 5 May 2022 19:29:57 +0200 Message-Id: <20220505173003.3242618-6-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220505173003.3242618-1-kda@semihalf.com> References: <20220505173003.3242618-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. 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