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 AD511A0544; Tue, 7 Jun 2022 12:46:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B31C14281E; Tue, 7 Jun 2022 12:46:33 +0200 (CEST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by mails.dpdk.org (Postfix) with ESMTP id 486AC42685 for ; Tue, 7 Jun 2022 12:46:31 +0200 (CEST) Received: by mail-lf1-f47.google.com with SMTP id i29so10897077lfp.3 for ; Tue, 07 Jun 2022 03:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U29KhKa7/h9jE7122R7QXhZVvfZ6HSpwdO343W7Q+Qw=; b=DRXT+R2jtRu4xjfKuWAh05aBy/nCNBLFjE8LJK9bu4RvKt3NayM4/2QKhGfmN1MNOf MAdO8sJiEkhY3jrUMoQ/slEX+IddflHq6LjNIEQWfpdcL++rhjnxe6++y6Bzw4dSKfJL b1TC2/3xnHYoJHDS09XTZAg5tVyKlMpEC0XrVv8YO07EZadG2DjocpmUgHqg9sp/rKp1 t4BrNlU1r2vO3ehwHg5McuF/mgrvQV6jGu6Q4gjvCw+t8DkTned2M9zrCpLckkoQmXnr +jrePmwbR5KhCmS8GyKpbSK5dj4i/CHO97qs3giPOW3ddxzPOv2mjoYjn6uj9e5yhBL4 S1sA== 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=WjCSslmQ38CKCPfuPaYdPoph7stJjhLMqhAQN7QivfckYmUV3nC3BXRtFNVVYAoRDN QZ+pV2FAb1lVheh8X+rO61ecKVF9/oWj62dOEyondRiZJtnuPCn4i7EKzxqv7vSU/1Bi FexeFU8MQtzvxt/Kq9pCL2Zb6hdohjgMugC1EmFGTE4wbWsLQh8z2Qo1BWD+jM3WmEJV wdCo/rSRloWxf/+g0vtKfDq4tws0CXwnD6ITwUcfQdAZd568lQj4uV2U4BndS5dzU4ht U7x+NmlkfFnWeQHJ9Vgap37zcvpVij1UgSLuEUyfYHxmSeoll4NMX70BDsyRWLrBLlnC 0NGw== X-Gm-Message-State: AOAM532wgMPkyK6V+kppLjUgXNkLtj6k9b/LxmufSha5zohI4vy0hcD7 yaZ0j+qZC9QOjcLE2biKViF+6rw5EAumM52X X-Google-Smtp-Source: ABdhPJytOjMCfmW/dqvSPNoTidmDu7mLTuElYAVH3XY8G9PlS/Amon36C7kNE0miaIuH7KvFmUP4QA== X-Received: by 2002:a05:6512:c1d:b0:478:f321:a57b with SMTP id z29-20020a0565120c1d00b00478f321a57bmr18393958lfu.125.1654598790864; Tue, 07 Jun 2022 03:46: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 m16-20020a056512115000b00478f2f2f044sm3217272lfg.123.2022.06.07.03.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:46:30 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH RESEND v4 4/8] net/tap: set BPF syscall ID for RISC-V Date: Tue, 7 Jun 2022 12:46:13 +0200 Message-Id: <20220607104617.153892-5-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220607104617.153892-1-kda@semihalf.com> References: <20220607104617.153892-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