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 41937A00C2; Thu, 5 May 2022 19:31:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1976342848; Thu, 5 May 2022 19:30:35 +0200 (CEST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by mails.dpdk.org (Postfix) with ESMTP id 1378542828 for ; Thu, 5 May 2022 19:30:32 +0200 (CEST) Received: by mail-lf1-f44.google.com with SMTP id h29so8639066lfj.2 for ; Thu, 05 May 2022 10:30:32 -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=b03o/0bd6DDrP2rPbOVsvu56wRO7aTzNJUFwnYqOJ9k=; b=7rgTKzVM796OmbpQEa18SgqgIuXIyqsFeqXMUmgWueE0BbV8bGz0UZUIa93KsK6pUm yvVF0rJytl92QiCBNLDScnEHr8IVrbErNGPDmVEk7O64plBILMO4B7tUMEh/WiOT/kIt GhrRHnSkfYQBDJt/Uwzrf2pIxUgp88oSuL3FnACwxI03wnQOhyBc3CyALC+rfyJ5DSvP Wt78RwYDb5jFHwX6kNzOdMoROnKbZXw237w4Doav2RDOhbochaITHFI6R6ma41cFu3eb YPijOTJPH99OQF5Vc9QvkUwrkpUNDyo4ODdahPuVFzmljzzf4FOb6bqeG3A3DBuqDMiZ 1iGQ== 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=b03o/0bd6DDrP2rPbOVsvu56wRO7aTzNJUFwnYqOJ9k=; b=sXANuhCFoTCgNBQYUpsActWVcKpjQ6MxtdZrrwhkF1Mr50ztHsorugV3iey2N1yr8m g7uzVE219LM86Wgc5TXcdSuZKcFCSJo/p5mRwC0+yK9ILIa/0xvq1ZlQ3C5AGfN2ZgbP yrlmRvaIIDvNv31ojaGZsT7JLSJEMrxkYbFUQYQKGrtEh0G2RedIYNBTC/RWZUWFyD9c dKH9/BIA5w8lJPTMhmxWQuCYVL7zgy98ixOKJ/1hovo8RMH4HpRpLc7+fJvOscYcJQR9 HsOli07Ub01/oWug36MyjN92jQoS1TvLv93CpsNiO8IDZtpJnRHHrss2/6DdQ9t28lCi djOg== X-Gm-Message-State: AOAM531b+rICktKQAaKHEQYnaDCro1Fb7ak9Um6SBTSY4Q6aqBdR2IJo jdGF0I3T9jLLaGZQulDinf807hUsdpYeaw== X-Google-Smtp-Source: ABdhPJxIeRNYrSWKOKBR6bIBQKADGtcoRLF4IPrEdLMOLgc+3PVcL9pa1sC0Dd0WOf1g0C9mJxZopg== X-Received: by 2002:a19:3852:0:b0:473:dc7b:cd1 with SMTP id d18-20020a193852000000b00473dc7b0cd1mr1828647lfj.549.1651771831829; Thu, 05 May 2022 10:30:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 10:30:31 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH 06/11] net/tap: set BPF syscall ID for RISC-V Date: Thu, 5 May 2022 19:29:58 +0200 Message-Id: <20220505173003.3242618-7-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_bpf syscall id to enable the tap PMD. Signed-off-by: Stanislaw Kardach --- drivers/net/tap/meson.build | 5 ----- drivers/net/tap/tap_bpf.h | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build index 3efac9ac07..c09713a67b 100644 --- a/drivers/net/tap/meson.build +++ b/drivers/net/tap/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( 'rte_eth_tap.c', 'tap_bpf_api.c', diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index f0b9fc7a2c..639bdf3a79 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -101,6 +101,8 @@ union bpf_attr { # define __NR_bpf 351 # elif defined(__powerpc__) # define __NR_bpf 361 +# elif defined(__riscv) +# define __NR_bpf 280 # else # error __NR_bpf not defined # endif -- 2.30.2