From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 5/8] testpmd: new commands to load/unload BPF filters Date: Wed, 9 May 2018 18:09:22 +0100 Message-ID: <0592a009-5fa8-a109-a1e2-9d2bbc6c4cc5@intel.com> References: <1523630598-24606-2-git-send-email-konstantin.ananyev@intel.com> <1525437945-8207-6-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Konstantin Ananyev , dev@dpdk.org Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id B073A1B764 for ; Wed, 9 May 2018 19:09:24 +0200 (CEST) In-Reply-To: <1525437945-8207-6-git-send-email-konstantin.ananyev@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/4/2018 1:45 PM, Konstantin Ananyev wrote: > Introduce new testpmd commands to load/unload RX/TX BPF-based filters. > > Signed-off-by: Konstantin Ananyev > --- > app/test-pmd/bpf_sup.h | 25 ++++++++ > app/test-pmd/cmdline.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++ > app/test-pmd/meson.build | 2 +- > 3 files changed, 175 insertions(+), 1 deletion(-) > create mode 100644 app/test-pmd/bpf_sup.h > > diff --git a/app/test-pmd/bpf_sup.h b/app/test-pmd/bpf_sup.h > new file mode 100644 > index 000000000..35f91a07f > --- /dev/null > +++ b/app/test-pmd/bpf_sup.h > @@ -0,0 +1,25 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2010-2017 Intel Corporation > + */ > + > +#ifndef _BPF_SUP_H_ > +#define _BPF_SUP_H_ > + > +#include > +#include > +#include This makes testpmd depends to librte_bpf unconditionally. What do you think using RTE_LIBRTE_BPF macro to make it possible to disable bpf library? <...> > @@ -16695,6 +16842,8 @@ cmdline_parse_ctx_t main_ctx[] = { > (cmdline_parse_inst_t *)&cmd_set_port_tm_node_parent, > (cmdline_parse_inst_t *)&cmd_port_tm_hierarchy_commit, > (cmdline_parse_inst_t *)&cmd_cfg_tunnel_udp_port, > + (cmdline_parse_inst_t *)&cmd_operate_bpf_ld_parse, > + (cmdline_parse_inst_t *)&cmd_operate_bpf_unld_parse, It can be better to move testpmd_funcs.rst updates in doc patch into this patch, it helps confirming the both doc and patch.