From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 52BAC2B91 for ; Wed, 27 Jul 2016 18:37:00 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 27 Jul 2016 09:36:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,430,1464678000"; d="scan'208";a="1030224182" Received: from unknown (HELO localhost.ch.intel.com) ([10.2.63.143]) by fmsmga002.fm.intel.com with ESMTP; 27 Jul 2016 09:36:59 -0700 From: Sankar Chokkalingam To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com Date: Wed, 27 Jul 2016 02:35:30 -0700 Message-Id: <1469612130-19855-1-git-send-email-sankarx.chokkalingam@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] examples/ip_pipeline: fix wrong values in flow.cfg X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 16:37:00 -0000 This configuration is example configuration for flow classification. This fix changes the offset and mask value to compute the hash correctly. This fix does not involve code change and do not impact compilation, build and performance. Fixes: 93771a569daa ("examples/ip_pipeline: rework flow classification CLI") Signed-off-by: Sankar Chokkalingam Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/flow.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_pipeline/config/flow.cfg b/examples/ip_pipeline/config/flow.cfg index 6895d39..cec990a 100644 --- a/examples/ip_pipeline/config/flow.cfg +++ b/examples/ip_pipeline/config/flow.cfg @@ -64,8 +64,8 @@ pktq_in = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0 pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0 SINK0 n_flows = 65536 ;key_size = 8 ; QinQ key size -;key_offset = 270 ; QinQ key offset -;key_mask = 0000FFF00000FFF0 ; QinQ key mask +;key_offset = 268 ; QinQ key offset +;key_mask = 00000FFF00000FFF ; QinQ key mask key_size = 16 ; IPv4 5-tuple key size key_offset = 278 ; IPv4 5-tuple key offset key_mask = 00FF0000FFFFFFFFFFFFFFFFFFFFFFFF ; IPv4 5-tuple key mask -- 2.5.5