From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3067EA0C41; Thu, 16 Sep 2021 08:08:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B359A4003F; Thu, 16 Sep 2021 08:08:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 56DDA4003C; Thu, 16 Sep 2021 08:08:48 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18FNsCMm008752; Wed, 15 Sep 2021 23:08:47 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=bZshqmzvWsuO6wt0nRT7psfueauiirhC+qQ3Rd1uF9k=; b=FBVuieDfRKCVJp+Ebh3pXtV1HFEUxRE9VxX/LjfzFWTua+L9GUylvYgvvaqw6n0qTJeE WDyj+5ov3xZsv5KZbsnf9lCizQlBF1/F79X+bYpHJ04gABLv/SzWXaON70Ju/JIC74cx C/oLLLkXdTNMvuHcwnK3AhusFqgCqZrg/YKGCDxWslCjT3Y6mJr50cVehl73HDhae0MM y1LZ+jItH/4R0peQ3fJOSfki7/w7ntvaMcuNv3qVVTYnIeiAR/gxonHDEhJG9Rtacbt9 QMsMR4Gv44MeCnvqjqtIrg3h5aB8Fsfm+vGrkkNRjDfi394AyyfHr3Cj0ouFtPt1pZtn mA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3b3twms3cm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 15 Sep 2021 23:08:47 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 15 Sep 2021 23:08:45 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 15 Sep 2021 23:08:45 -0700 Received: from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218]) by maili.marvell.com (Postfix) with ESMTP id B07793F704E; Wed, 15 Sep 2021 23:08:39 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Radu Nicolau CC: Anoob Joseph , Jerin Jacob , Konstantin Ananyev , Archana Muniganti , Tejasree Kondoj , "Hemant Agrawal" , Gagandeep Singh , , Date: Thu, 16 Sep 2021 11:37:51 +0530 Message-ID: <1631772471-690-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 6vMF79s7amPYfAsyH3iG4k8sBsqkn8WZ X-Proofpoint-ORIG-GUID: 6vMF79s7amPYfAsyH3iG4k8sBsqkn8WZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-16_01,2021-09-15_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix parsing of flow queue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Documentation specifies that flow port & queue is provided as, <...> port 0 queue 0 But code is expecting the same as, <...> port 0 0 Fix the above to match documentation. Fixes: 8e693616fcb2 ("examples/ipsec-secgw: enable flow based distribution") Signed-off-by: Anoob Joseph --- examples/ipsec-secgw/flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ipsec-secgw/flow.c b/examples/ipsec-secgw/flow.c index 69f8405..1a1ec78 100644 --- a/examples/ipsec-secgw/flow.c +++ b/examples/ipsec-secgw/flow.c @@ -188,7 +188,9 @@ parse_flow_tokens(char **tokens, uint32_t n_tokens, return; rule->port = atoi(tokens[ti]); + } + if (strcmp(tokens[ti], "queue") == 0) { INCREMENT_TOKEN_INDEX(ti, n_tokens, status); if (status->status < 0) return; -- 2.7.4