From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lu, Wenzhuo" Subject: Re: [PATCH 3/3] net/ixgbe: enable IPv6 for consistent API Date: Thu, 1 Jun 2017 06:15:51 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B5C9A96@shsmsx102.ccr.corp.intel.com> References: <1495828350-10259-1-git-send-email-qi.z.zhang@intel.com> <1495828350-10259-4-git-send-email-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: "Zhang, Qi Z" , "Zhang, Helin" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C00765688 for ; Thu, 1 Jun 2017 08:15:57 +0200 (CEST) In-Reply-To: <1495828350-10259-4-git-send-email-qi.z.zhang@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" Hi Qi, > -----Original Message----- > From: Zhang, Qi Z > Sent: Saturday, May 27, 2017 3:53 AM > To: Zhang, Helin; Lu, Wenzhuo > Cc: dev@dpdk.org; Zhang, Qi Z > Subject: [PATCH 3/3] net/ixgbe: enable IPv6 for consistent API >=20 > Enable IPv6 support with rte_flow API. > Only support Sigature Match. >=20 > Signed-off-by: Qi Zhang > --- > drivers/net/ixgbe/ixgbe_flow.c | 112 > ++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 104 insertions(+), 8 deletions(-) > /* Get the TCP info. */ > if (item->type =3D=3D RTE_FLOW_ITEM_TYPE_TCP) { > /** > * Set the flow type even if there's no content > * as we must have a flow type. > */ > - rule->ixgbe_fdir.formatted.flow_type =3D > + rule->ixgbe_fdir.formatted.flow_type |=3D > IXGBE_ATR_FLOW_TYPE_TCPV4; This macro is misleading, better change it to IXGBE_ATR_L4TYPE_TCP. > /*Not supported last point for range*/ > if (item->last) { > @@ -1715,7 +1811,7 @@ ixgbe_parse_fdir_filter_normal(const struct > rte_flow_attr *attr, > * Set the flow type even if there's no content > * as we must have a flow type. > */ > - rule->ixgbe_fdir.formatted.flow_type =3D > + rule->ixgbe_fdir.formatted.flow_type |=3D > IXGBE_ATR_FLOW_TYPE_UDPV4; IXGBE_ATR_L4TYPE_UDP is better. > /*Not supported last point for range*/ > if (item->last) { > @@ -1775,7 +1871,7 @@ ixgbe_parse_fdir_filter_normal(const struct > rte_flow_attr *attr, > * Set the flow type even if there's no content > * as we must have a flow type. > */ > - rule->ixgbe_fdir.formatted.flow_type =3D > + rule->ixgbe_fdir.formatted.flow_type |=3D > IXGBE_ATR_FLOW_TYPE_SCTPV4; IXGBE_ATR_L4TYPE_SCTP is better. > /*Not supported last point for range*/ > if (item->last) { > -- > 2.7.4