From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 05/11] net/sfc: add flow API filters support Date: Tue, 7 Mar 2017 13:21:18 +0000 Message-ID: <070b835f-918d-da6a-8aef-a658606e066a@intel.com> References: <1488470591-5853-1-git-send-email-arybchenko@solarflare.com> <1488470591-5853-6-git-send-email-arybchenko@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Roman Zhukov To: Andrew Rybchenko , dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AEBFF108A for ; Tue, 7 Mar 2017 14:21:21 +0100 (CET) In-Reply-To: <1488470591-5853-6-git-send-email-arybchenko@solarflare.com> 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 3/2/2017 4:03 PM, Andrew Rybchenko wrote: > From: Roman Zhukov > > Only pattern items VOID, ETH and actions VOID, QUEUE is now > supported. > > Signed-off-by: Roman Zhukov > Signed-off-by: Andrew Rybchenko <...> > diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c > new file mode 100644 > index 0000000..0590756 > --- /dev/null > +++ b/drivers/net/sfc/sfc_flow.c > @@ -0,0 +1,693 @@ > +/*- > + * Copyright (c) 2017 Solarflare Communications Inc. > + * All rights reserved. Missing "BSD LICENSE" line. This is same for all new files. I think this discussed before, I don't know if that line is mandatory, but can be good to have at least to be consistent to rest of the codes. <...> > +/* > + * At now flow API is implemented in such a manner that each > + * flow rule is converted to a hardware filter. > + * All elements of flow rule (attributes, pattern items, actions) > + * correspond to one or more fields in the efx_filter_spec_s structure > + * that is responsible for the hardware filter. > + */ > + > +enum sfc_flow_item_layers { > + SFC_FLOW_ITEM_ANY_LAYER = 0, > + SFC_FLOW_ITEM_START_LAYER = 1, > + SFC_FLOW_ITEM_L2 = 2, > + SFC_FLOW_ITEM_L3 = 3, > + SFC_FLOW_ITEM_L4 = 4, > +}; No need to explicitly assign default values. <...>