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 3AD25A0093; Tue, 10 May 2022 17:08:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06BBB42851; Tue, 10 May 2022 17:08:25 +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 D93654285D for ; Tue, 10 May 2022 17:08:21 +0200 (CEST) Received: by mail-lf1-f48.google.com with SMTP id d19so8254444lfj.4 for ; Tue, 10 May 2022 08:08:21 -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=U29KhKa7/h9jE7122R7QXhZVvfZ6HSpwdO343W7Q+Qw=; b=faJLgoGKsAX2YsexP+Jya5uutdga3gdrij+YzYl1bKv9oPD33iGDrYnYpq04Gd3Ds+ l/2UqORCOf7pRXC4NE65FmR0noOUJVYdLt+Tw9zZHvHk6Akq8cDOuscesrErIRawohMc u9eP5z4183YWpC/Tln5IscIaIEjrZ6aF9RfZt1WXpyVcnqVhEuWQ0w66r6DQdaSF6nFj S4Fkw5qLUDbN8KnDsFpBpYILMWokiORC52pD1EqEuiXcyoy/bPKJFVY/FPlQZXhEkdoy oFWJkSCUnsjb/pnyIn0XfHc5+/JreCtF37zIJXtKcyP0RCKf/dsoCV0YxJUVEjPMQvHr vY8Q== 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=U29KhKa7/h9jE7122R7QXhZVvfZ6HSpwdO343W7Q+Qw=; b=k85Kv72g6lR9kCdsp5QUc3prW056aC0w1k1VHpNJOlV+5YZIFKUltvzTvshMb7VDLG oHBIQaBNeV2WD1USTu4E6QCEQrYd0zP80RRhxb5GrFyoTsTzz4ZzBn9WtQv+1GsZu+0c G+UZNnrAIcmzxvQclGQJohxzX4kcZ2DTH6HqJVvmhWrPjezPPfjcWv8LHId1qQIK9gLi xwS6DJpcb8y7GFXyzak2NKolsccDfUST38vUYAgUHqi7MNh5zGfIH+eXKHp/zjezPbgq WHZwIn3ZIn+mkcj1LcMUOPp6YIPgDzSFB2DbXu8jDKonoZNcnvPrSlap5l21OcJ5vt5o StEg== X-Gm-Message-State: AOAM533VbFPEZBEzDVZ0mYINAlzhGhZjslzwgijE57cLRUzU1I1T6pwB rl+A1M/p9XZPRRNpRNZQTaja989nXecgsA== X-Google-Smtp-Source: ABdhPJx+l/yj81wDfWRrqwvz7RAxVG32cAD7GBGKcHpDbzkr+bXv3IO1XbI9Lk4iull0OK+4hSgF1w== X-Received: by 2002:ac2:5989:0:b0:472:d3d:ba07 with SMTP id w9-20020ac25989000000b004720d3dba07mr16199676lfn.158.1652195301491; Tue, 10 May 2022 08:08:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:08:21 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH v2 4/8] net/tap: set BPF syscall ID for RISC-V Date: Tue, 10 May 2022 17:07:55 +0200 Message-Id: <20220510150759.525434-5-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_bpf syscall id to enable the tap PMD. Sponsored-by: Frank Zhao Sponsored-by: Sam Grove 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