From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id 07D231B160 for ; Fri, 8 Dec 2017 17:40:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0TZ4Otv2Kr4IPI/I4cHckKcpihGvVr4vxW+a4QzlbVs=; b=EVSf2vmaLE5x2SH3Db+ZJ2BmjrcYI4owoIY+QwfWLVQgipErJVx0uJ1Y6gU2CH/zEQUqmJ3m643HdKlLLpyvg2LIb1KR+LVNgKwIGRRK15H1n5GtBbm2KFeGYC8KX4jlEwKFoSKiXu/ljK5l4/f2YApRtUp6ERgPvJXQ2eCKeUk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [192.168.43.94] (157.48.15.204) by CY4PR0701MB3636.namprd07.prod.outlook.com (2603:10b6:910:93::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Fri, 8 Dec 2017 16:40:45 +0000 To: Nelio Laranjeiro Cc: Sergio Gonzalez Monroy , Radu Nicolau , dev@dpdk.org References: <6ac80a2be156911ee35c894924a02f04c43f49fc.1511449894.git.nelio.laranjeiro@6wind.com> <20171208144000.seega54cbv7prktb@laranjeiro-vm.dev.6wind.com> From: Anoob Joseph Message-ID: <11087367-b892-aae7-07bc-555232a0ce8d@caviumnetworks.com> Date: Fri, 8 Dec 2017 22:10:28 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171208144000.seega54cbv7prktb@laranjeiro-vm.dev.6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [157.48.15.204] X-ClientProxiedBy: HK2PR04CA0068.apcprd04.prod.outlook.com (2603:1096:202:15::12) To CY4PR0701MB3636.namprd07.prod.outlook.com (2603:10b6:910:93::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b2cf1248-ef1e-4a48-911c-08d53e5a6ecb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:CY4PR0701MB3636; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3636; 3:LJ2vh7LWlQzjsor8uFGC0nZruZ6wQb7pSoG3TiY3u1EnNMNqITfyOkaEJ1T+NCsPMukMPA5R+gC9+SBR4/0QiYB79clu6a3LpXtJbgVQdsIx8/wfmsMsSHRCzzs93uc9cEDTq27fu+Q/YOU3O/zs26fr1lxM5GDkjFjQ9K5yVstghBlUFipqpAYg5y7xsmeZowB9JaJA9GZ2qG07RRGmFBt3zAy5jbzbrjAjG+RA/7ynv4y55bG4DITxa3M1Tq3z; 25:EQz7nNASVSFtBsiMztZSoKdcJeJWBsRaEbxMEWKMBlbQydOp6xoWHWwfEpxUKDu5ybCTtijdJ57u/CpLsLvtL/FfoVAyGeIpse4sJMk/W0rCa8W0RCJSeeJzliNVeBwfofTzTmhXr+l8EaJLW6rikTrAnpf2S+LrpZ2VRLkauMUUJGk6LGSJLRsD3P7YrIEMvuSrDEClhEdTsTroS3WSojmyveJpMZpl0yl2mJ+rg7dY5YPBcSP+FvR80EqntjlcFOkJEzbNygXpsjggFCLBDiiKbuyooSx7tpP1WhphnfPqU790MMjiXimkwNum7MZF35Ap/zHXjyBRR/OEPd7Sew==; 31:DVXI6zkDadA3Ex6BaqHY/qm0Nm985H244pEZVvZdCOFbgVSUSHJeJm/lS62+1epuquAWR9sMfHOrbXH2EABwzaLOr3Ei2PGS8686a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pSadYYNmVQLVF4EYODXYIKm4dQtHlu7F1jwYrxE1q0X9Pv/GQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(10201501046)(3231022)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011); SRVR:CY4PR0701MB3636; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR0701MB3636; X-Forefront-PRVS: 0515208626 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(346002)(366004)(376002)(24454002)(52164004)(377424004)(199004)(189003)(81166006)(8676002)(64126003)(81156014)(2906002)(8936002)(50466002)(3846002)(47776003)(31686004)(6116002)(66066001)(65956001)(16526018)(230700001)(65806001)(72206003)(478600001)(117156002)(93886005)(36756003)(53936002)(305945005)(67846002)(58126008)(33646002)(83506002)(52116002)(25786009)(7736002)(106356001)(53546010)(3260700006)(16576012)(54906003)(229853002)(77096006)(5660300001)(6916009)(6486002)(97736004)(76176011)(316002)(42882006)(68736007)(52146003)(6246003)(31696002)(105586002)(65826007)(2950100002)(6666003)(4326008)(23676004)(2486003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3636; H:[192.168.43.94]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjA3MDFNQjM2MzY7MjM6bkhZVEUyZHNjbTE3YnJ1cE4zWW8xYmNz?= =?utf-8?B?TzhtWXloVmJzbW9WVHVnRFcyREtxYU9tWFdNZ1o0bHdGUE5Kb0FocllZT1ls?= =?utf-8?B?TGI3eGFjbnFRRmt1RjZRd1B3clBiR3dNOXlFdkV2cnVqS3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viumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2017 16:40:45.1793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2cf1248-ef1e-4a48-911c-08d53e5a6ecb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3636 Subject: Re: [dpdk-dev] [PATCH v2 2/2] examples/ipsec-secgw: add target queues in flow actions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 16:40:48 -0000 HI Nelio, On 08-12-2017 20:10, Nelio Laranjeiro wrote: > On Fri, Dec 08, 2017 at 07:30:03PM +0530, Anoob wrote: >> Hi Nelio, >> >> > [...] >>> + goto flow_create; >>> + /* Try Queue. */ >>> + for (i = 0; >>> + i < eth_dev->data->nb_rx_queues; ++i) >>> + if (eth_dev->data->rx_queues[i]) >>> + break; >> Is the following check correct? > [...] > > For an application, it seems not necessary. The application knows which > queues are configured in the drivers has it has made the configuration. > > Removing it in the v3. I think you misunderstood me here. I was talking about the following line. + if (i != eth_dev->data->nb_rx_queues) + return -1; Shouldn't it be? + if (i == eth_dev->data->nb_rx_queues) + return -1; Thanks, Anoob