From patchwork Tue May 31 14:13:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Kardach X-Patchwork-Id: 112150 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2567AA0548; Tue, 31 May 2022 16:13:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E7CB42B70; Tue, 31 May 2022 16:13:19 +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 27DC7427EC for ; Tue, 31 May 2022 16:13:16 +0200 (CEST) Received: by mail-lf1-f46.google.com with SMTP id i10so2282272lfj.0 for ; Tue, 31 May 2022 07:13:16 -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=zqptm9Q6dbsTEi6F6p6AvuRjzCAjRn3KUmW+tG1iowmV1Xw2sZxWaswi1E98boa+j8 Ts1zugdiAa9Q3U0Wa6S4cy3pgiBo0cABf2xV6VvR55jel6n8IDSv/wmGeEOwadTwfJ2+ ir1hg2dcJP9b6BcP/+cIPwarZPDJ511+Y9skW0nXSKhSt5D5cuOYjURTwTUoLIL0clx5 to4igFMooPCuk6HtyH87gXTg57mOfdpsK56gKDA271LqX5wsMciRKD7qc5/4bRhl6vs1 D+46imMcNO2YQ7ayg6YSAWRoOyyqnhd3nG38qXxqVTYzt4GJnCYSYPLw9MNVPpy4P/mf A04Q== 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=xsRaRu28vv29lvhFVKxVYBEbwnVtmYjpQBJPe2h1G5eNFVDTdTB9XBMs6FW7AMfrdq wqBI6Ne348niLx3CXqufGXBJBPUO5JptqiQ5CZUJzNAhzKlG89h6FJgwZHxbrRrL9tjH F8bKxDPuHIpk8e0/LtnzcV8Tv1GjvgYq16E8HDoN+xw124sBgT/2MbtPsdxdp+Dj0XS6 6ROZ8NgVFYY/mQvGqn5bT1m3VXtLTuimDXvh+1JdeqPVMZxfmBXepRr/E6nenpcISwHs oNQT4mv44sXCe4H6TOJ/ojRi6Bargf/OAhQLTSln0uIsDpVSmAoPr7UySlYeNyakEnzs sI4A== X-Gm-Message-State: AOAM5338H/56Aqj1shDvp5meyLQOStZEOLK8OE+scY1UAwye+2WiwD5v eOoood5XE0/SuiyYBYmo/4pdDG+0YQBHjM53 X-Google-Smtp-Source: ABdhPJxPdCerR5fgPWRbC49L6/5AfsgtnUd/u13GACKR3aREhwGGyOZWtnaN2eTOeJNMjdvYOHjRIQ== X-Received: by 2002:a05:6512:3084:b0:477:cc8e:e77c with SMTP id z4-20020a056512308400b00477cc8ee77cmr40794406lfd.119.1654006395736; Tue, 31 May 2022 07:13:15 -0700 (PDT) Received: from toster.semihalf.net (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id k20-20020a2e6f14000000b002554f044e1asm1258311ljc.116.2022.05.31.07.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 07:13:15 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com Subject: [PATCH v4 4/8] net/tap: set BPF syscall ID for RISC-V Date: Tue, 31 May 2022 16:13:03 +0200 Message-Id: <20220531141307.253385-5-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220531141307.253385-1-kda@semihalf.com> References: <20220531141307.253385-1-kda@semihalf.com> MIME-Version: 1.0 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