From patchwork Fri Jan 5 22:28:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135766 X-Patchwork-Delegate: ferruh.yigit@amd.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 CB83C432AF; Fri, 5 Jan 2024 23:29:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FF8A40649; Fri, 5 Jan 2024 23:29:22 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id BE793402DC for ; Fri, 5 Jan 2024 23:29:20 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6d9c2db82b0so72151b3a.1 for ; Fri, 05 Jan 2024 14:29:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1704493760; x=1705098560; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5aTBSFgrPOMO/R+MqX00UU/ZOVeyHrEUd3EFwe2r7FI=; b=BMElINwOCKvo7gCjkWlX2ic7ASYCe4bnWZ/tQ53cvBU7LdrX0KD1ligcm5yJK2+q3V U7cfkM00gL2eAfGFHVlJoVda00B4Xn/Nd74hJKn9CBrTkZN/bzNVFTzYdQ+s1EvLx+MJ 9CKd88vPjElhv6B2A6kWo84gGSYKJungjEL+1W7RvpQZZwTjFUnau/WJgi1UjpN+tDeU 9r7lj8e3nYB43RvL8p7LRx+9/YJY1TezpWx6i/HzbxuODBLBdjjvP2satOVloX6A1T7s D2nELmDQOSSprj8lsfacYCJqNlf3m+h6KWIqcP3B8VikYOXWfO5z6gFDZtRoXvJNb98P 3PmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704493760; x=1705098560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5aTBSFgrPOMO/R+MqX00UU/ZOVeyHrEUd3EFwe2r7FI=; b=lsan6yz8grdXDCwleHzZPcaIXnMUzabJzuH2xNZtOKT3Dvv5jrL3p+e+MUG+04/m8j h4ttDXtrLWkZsApyawKxZvpdzY2kE8lVHJNI3mjgTVIPD2kL6pfTeZMM/0avdmD9Z0Nd Z4Z5I1VWKfaaxRMT9MKrxLzyrcmo8JCD2uNbmsXw7B9fRpt3Su56KL5cofDhSE2yNnDL pI7J5SZo6yNrCUZwNLTInAnMelCuFIdLaDlD3WdcVIf0fYdifU9NAljx6/qFArDMdnkG HlON74b++f6SQnhs4gJh56uXYbJ0jK7eA5MWGYBWC+ZG3rcpwNVHCfHJsVVP9/tUA6kX BR5w== X-Gm-Message-State: AOJu0YybgsAhvkpMIBApti0cTto8mVcFt84f5E6r6uoGT+9C7N3Xh63z BO/qePijKB9Iz1uR28T+p5gpddIGaj8Sc98RXykJ+akMaRk= X-Google-Smtp-Source: AGHT+IHMHFcnxfyno5ZKTKxxCMVRg3Y5SCF8CzPhQk5yRs7rS6akNbz7rqsmkyCiyhCYgo5JgOCYMg== X-Received: by 2002:a05:6a21:6d96:b0:196:b157:a0a3 with SMTP id wl22-20020a056a216d9600b00196b157a0a3mr47245pzb.62.1704493759944; Fri, 05 Jan 2024 14:29:19 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id b11-20020a170902d50b00b001d3e2578e66sm1871132plg.243.2024.01.05.14.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 14:29:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFC 1/5] tap: move forward declaration of bpf_load Date: Fri, 5 Jan 2024 14:28:07 -0800 Message-ID: <20240105222909.139674-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240105222909.139674-1-stephen@networkplumber.org> References: <20240105222909.139674-1-stephen@networkplumber.org> 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 The local function bpf_load forward declaration should be in the one file using it. Signed-off-by: Stephen Hemminger --- drivers/net/tap/tap_bpf.h | 3 --- drivers/net/tap/tap_bpf_api.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 0d38bc111fe0..aa5a733525e1 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -115,7 +115,4 @@ enum { BPF_MAP_ID_SIMPLE, }; -static int bpf_load(enum bpf_prog_type type, const struct bpf_insn *insns, - size_t insns_cnt, const char *license); - #endif /* __TAP_BPF_H__ */ diff --git a/drivers/net/tap/tap_bpf_api.c b/drivers/net/tap/tap_bpf_api.c index 15283f8917ed..a6adec855dda 100644 --- a/drivers/net/tap/tap_bpf_api.c +++ b/drivers/net/tap/tap_bpf_api.c @@ -15,6 +15,9 @@ #include #include +static int bpf_load(enum bpf_prog_type type, const struct bpf_insn *insns, + size_t insns_cnt, const char *license); + /** * Load BPF program (section cls_q) into the kernel and return a bpf fd *