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 5BD8CA0093; Tue, 10 May 2022 17:08:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2F724285B; Tue, 10 May 2022 17:08:21 +0200 (CEST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mails.dpdk.org (Postfix) with ESMTP id 91B4842855 for ; Tue, 10 May 2022 17:08:20 +0200 (CEST) Received: by mail-lf1-f46.google.com with SMTP id bq30so29875476lfb.3 for ; Tue, 10 May 2022 08:08:20 -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=P7f3xr51Hin+Vhfc8v4kbH5xNaQ0dbxqnqOfilFMNMwDCy1HD23NRcQjqQLF6Y99/y F5vIMqw2ErFsiQpXcxGekZMy0ksx1/bLJZ8ZvkzAjuyFPf5pw0nVA617SkN0lJuvJgU4 jhTFFS88O3KakLtcrLWBQphNPzGjjfwovXRob1RzdqnSpODgVzrMr8C5x39M3EmBuxjc A4M8NXJBTDbdwHpH5tZJ7sZezeXz/Y94d1Tev0TqvzTJqmtHMeE0WQRyLMST9Vd+uOkF zqQwMH7rxiIIGW43cAFe9Ac789UHN4CWl7JtvZKAQV7THDSIUeMkNe2PJ1IkGaLUEnNd M3cw== 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=rNNs2+q7MghnPcHutnlO4AJdxVTsZrr0HFaVJC8Ert3LmJlrUivXiM2g8heshqoLhw 1E/aU04F4GO/CMu+oEo2Tm+FAgqfkjswcxKnwwicJ2ldDdFzvJ8ENQ0eclt+UtM1zRJm 6s3N+o4tHf6xBHvO22ou1x3rWEtH75I8e4uq/cFcJCTampuUTvIPdgRKgwLIdBKjvILH Lo0EJt1nj3EPBkei9+TabeR4ek2uQVejyF6vGoY1vMM8sIPjxm7F2fQkVJqu85Z+Zs7X H/pBevQCnpyI7wYG6xb5eMs+RoyKLRPGqrQVgpPCY2d97L1TXKemD0fN1+QuC0WZ3qoj ++lw== X-Gm-Message-State: AOAM533cjTpyOghbIka0gSEQquem9a5LME8i9mW2+Shzxful94RMIuRF 0Eh7S4ZTBc8sw0+FdanvBT0S/LzCv721Wg== X-Google-Smtp-Source: ABdhPJxlhts74hMtjxuZUMbZ9fcY7kZ64m2/PYAAZiMXAoPQErWiMGwP9dx2vHOkK3xxrqs7U1QRXg== X-Received: by 2002:a05:6512:a84:b0:473:e080:40ec with SMTP id m4-20020a0565120a8400b00473e08040ecmr16727573lfu.435.1652195300306; Tue, 10 May 2022 08:08:20 -0700 (PDT) Received: from toster.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id z4-20020a19e204000000b0047255d2117esm2311895lfg.173.2022.05.10.08.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:08:18 -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 v2 3/8] net/memif: set memfd syscall ID on RISC-V Date: Tue, 10 May 2022 17:07:54 +0200 Message-Id: <20220510150759.525434-4-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220510150759.525434-1-kda@semihalf.com> References: <20220505173003.3242618-1-kda@semihalf.com> <20220510150759.525434-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