From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C6FFA2B95 for ; Fri, 6 Jan 2017 17:40:16 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 06 Jan 2017 08:40:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,325,1477983600"; d="scan'208";a="46342383" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.38]) ([10.237.220.38]) by orsmga004.jf.intel.com with ESMTP; 06 Jan 2017 08:40:14 -0800 To: Wei Zhao , dev@dpdk.org References: <1483084390-53159-1-git-send-email-wei.zhao1@intel.com> <1483084390-53159-11-git-send-email-wei.zhao1@intel.com> Cc: Wenzhuo Lu From: Ferruh Yigit Message-ID: <5c8bebb9-e44d-6a27-0e08-73d291721e21@intel.com> Date: Fri, 6 Jan 2017 16:40:14 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1483084390-53159-11-git-send-email-wei.zhao1@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 10/18] net/ixgbe: flush all the filters X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 16:40:17 -0000 On 12/30/2016 7:53 AM, Wei Zhao wrote: > Add support for flush all the filters in SW. > > Signed-off-by: Wenzhuo Lu > Signed-off-by: Wei Zhao > > --- > > v2: > --change flush filter function call relationship > --- > drivers/net/ixgbe/ixgbe_ethdev.c | 118 ++++++++++++++++++++++++++++++++++++++- > drivers/net/ixgbe/ixgbe_ethdev.h | 9 +++ > drivers/net/ixgbe/ixgbe_fdir.c | 24 ++++++++ > drivers/net/ixgbe/ixgbe_pf.c | 1 + > 4 files changed, 150 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c > index d68de65..0de1318 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -61,6 +61,8 @@ > #include > #include > #include > +#include > +#include > > #include "ixgbe_logs.h" > #include "base/ixgbe_api.h" > @@ -386,7 +388,8 @@ static int ixgbe_dev_udp_tunnel_port_del(struct rte_eth_dev *dev, > struct rte_eth_udp_tunnel *udp_tunnel); > static int ixgbe_filter_restore(struct rte_eth_dev *dev); > static void ixgbe_l2_tunnel_conf(struct rte_eth_dev *dev); > - > +static int ixgbe_flow_flush(struct rte_eth_dev *dev, > + struct rte_flow_error *error); I think it is good idea to move all rte_flow related code into a new file, as done in i40e (i40e_flow.c)? What do you think, can it be done? <...>