From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 1/6] net/enic: flow API skeleton Date: Wed, 17 May 2017 12:12:33 +0100 Message-ID: <0d92cb13-a4bd-a851-4831-65da554f954d@intel.com> References: <20170331020622.25498-8-johndale@cisco.com> <20170517030348.2663-1-johndale@cisco.com> <20170517030348.2663-2-johndale@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: John Daley Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id DEDC42986 for ; Wed, 17 May 2017 13:12:35 +0200 (CEST) In-Reply-To: <20170517030348.2663-2-johndale@cisco.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/17/2017 4:03 AM, John Daley wrote: > Stub callbacks for the generic flow API and a new FLOW debug define. > > Signed-off-by: John Daley > Reviewed-by: Nelson Escobar <...> > diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c > index 8e16a71b7..4e8a0d9e0 100644 > --- a/drivers/net/enic/enic_ethdev.c > +++ b/drivers/net/enic/enic_ethdev.c > @@ -116,13 +116,28 @@ enicpmd_dev_filter_ctrl(struct rte_eth_dev *dev, > enum rte_filter_op filter_op, > void *arg) > { > - int ret = -EINVAL; > + int ret = 0; > + > + ENICPMD_FUNC_TRACE(); > > - if (RTE_ETH_FILTER_FDIR == filter_type) > + if (dev == NULL) > + return -EINVAL; dev can't be NULL here if it is only called via filter_ctrl eth_dev_ops <...> > diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c > new file mode 100644 > index 000000000..d25390f8a > --- /dev/null > +++ b/drivers/net/enic/enic_flow.c > @@ -0,0 +1,154 @@ > +/* > + * Copyright 2008-2017 Cisco Systems, Inc. All rights reserved. > + * Copyright 2007 Nuova Systems, Inc. All rights reserved. > + * > + * Copyright (c) 2017, Cisco Systems, Inc. > + * All rights reserved. Is this file header correct, dates and "Nuova Systems" and double Cisco copyright. As a side note, there is also another LICENSE file under net/enic folder <...>