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 88D65A0093; Tue, 10 May 2022 17:49:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2100A42842; Tue, 10 May 2022 17:49:07 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id DE1894283D for ; Tue, 10 May 2022 17:49:04 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id i10so30054374lfg.13 for ; Tue, 10 May 2022 08:49:04 -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=f+nXLpLobdXymh4KUmcCtunFIuG0UiBPooUREqSanVAOfDsmYwAr52XFfAg6MZMpKw R96SRX8wTJLxRhayu0ODf8zR8d1YbLMHryFe7446NysDWq7Yq4zTZvuIx/7CdIiLC3HW CiAMYGDkSSIE+egGoPO6ngHxMzIugf3kw1YM76+rPHTNgXmEUa/wYYVDl7UOsZV/HvZV PWCQCJbz+dED8N4PdheJi1szNqubzV0/BaMSkVTSqVOOPiKoBQ9SKZ8sNy6Jre6He5w+ QXpR6wBpNZgLnuFH+HLwYn4RaUZsup/BFWuvjgwjidHPiHvC/A6Yd98+U0AOCdieIOew BUWQ== 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=pRJSh7Wjlt870FVoFrP5C6b+BoHRLkTLS+6XVVxjZCxtSjMBjwVAGUP7IHxrjNn34b sqD2E+Wiquq6fMLjD8grXwoIkVxpvZ69F/IptNayveUrBxAozwD2/YiMVvrAaqcBtMkD 5RUnrPVC7FJooQaNC2CZPTfgI6ELwRhyYpLE0gCqSnBISfMLqfvbkNEO72ekqEhvLqmU AtfAoIGEUB8Yty39v0oJoqslwO34Flrft+TpPNGTiGI+kCWNSpAlkxN3JKwpFpow6lcv w/gfd20ZhhEIlqK/2Nr1Zy/f/+E9fjUxqgy4h+ZoNbdPNzRVnWl9lsq/qRSpvJXlSfbG 93qw== X-Gm-Message-State: AOAM532mQvpu3CY5MFotomi2vrUIQ2i0nzYZ4hOl3gLtdRReRqkynTpK 0v7R0WyNDBiUXIj+xkv6cfK9qt7+IaTvXQ== X-Google-Smtp-Source: ABdhPJwlDriYm/je+rV+3k2DcJVOK9JwiyLAFYVFN5LuukF6jW6AgtTT9n36omSGAhLaJDAOFLEOPg== X-Received: by 2002:a05:6512:12c9:b0:473:c4c1:5558 with SMTP id p9-20020a05651212c900b00473c4c15558mr17457464lfg.75.1652197744512; Tue, 10 May 2022 08:49:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:49:04 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH v3 4/8] net/tap: set BPF syscall ID for RISC-V Date: Tue, 10 May 2022 17:48:45 +0200 Message-Id: <20220510154849.530872-5-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_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