From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60046.outbound.protection.outlook.com [40.107.6.46]) by dpdk.org (Postfix) with ESMTP id 332A11BE1D for ; Wed, 4 Jul 2018 14:30:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=czWZ8vSXWs9HrUSv6LLwRGvSxyZ+9LM+EWMr0lEgbSU=; b=dHGaRtyVwRCP0Qvme5I5GTziOSwXFbf4hbhbciAYTWegTjulwn3CePPleWpkDyQsxMXHKLdpHuKPngZ1uOelFfUgY+AiTH4sPdo6qzQS2rd9IHpSb9rBarfGomGL68CwOiqQFDSLzuZ4Js60bLMJn9ZnaJ5UOKq33i5lY1juzcU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.144] (14.142.187.166) by HE1PR04MB1386.eurprd04.prod.outlook.com (2a01:111:e400:535b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.25; Wed, 4 Jul 2018 12:30:28 +0000 To: Pablo de Lara , declan.doherty@intel.com, shally.verma@caviumnetworks.com, ravi1.kumar@amd.com, jerin.jacob@caviumnetworks.com, roy.fan.zhang@intel.com, fiona.trahe@intel.com, tdu@semihalf.com, jianjay.zhou@huawei.com Cc: dev@dpdk.org References: <20180608220234.10170-1-pablo.de.lara.guarch@intel.com> <20180628005304.26544-1-pablo.de.lara.guarch@intel.com> <20180628005304.26544-7-pablo.de.lara.guarch@intel.com> From: Akhil Goyal Message-ID: Date: Wed, 4 Jul 2018 18:00:05 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180628005304.26544-7-pablo.de.lara.guarch@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::13) To HE1PR04MB1386.eurprd04.prod.outlook.com (2a01:111:e400:535b::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ea02368-9e19-427b-ef2b-08d5e1a9ef02 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1386; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1386; 3:+pJF/PnC/4CpBiepP3Ym2+aIrdi2yOUtvhfsjU/4HklTqx8fD9bPIgZLt47CgDIO89uDoc9Zk8NsBgIyTSHkUyDMLcSUXdG2sWCmi4qcZkpqkWp9ZIIz352gM348HWtrnToAqsB1QHZLg7aVoV8/9kHr4V6liFIkiKACoirRZCoten5zYHyHBuDal54BYkA6t5wxL7pIjt+JU5HD9B+PkDQI3aN+7SkdzhZfbMAVprGzMNVRz2JwlXa+4st1YLC3; 25:YF+s/At5GPEK9+RhV9QepOynS7JUkhsFg0ELDH1ixcOn1uJCfwAH0ien/Ebc3HY5uJ3jtuq76KNs5DMK9K9EZxjfOPWmUfM0zf4z20tvq98mJ07sD5Zk5LK6k+5E5dbwrlqmSeoHMZmrlOR7kpvrWQrOtQGaSKBE+vaqSWEgE8F8eToGSHC4jV5RaPenTf6HwU0SMng96w2aFWRcSm4a2LN1KMmkMTQW2T+yN1AeoaZWoxWNJenlUzX/YESUwd/iwk6iLfmQX84Ow+rNurLo4dy3XrMMjyPzaRkWoPnYWCYmdEPysaaIAvNaYKir7Fjsbxg1lrIo0L6bf+a+tdrcJA==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Xw9zVbev3Ja4tkUHIus+4JeSwsTRDtSqEPraxTDhzEv+9kR4SHLpfgFSxAv7/mdgI/4OGEq420ym3Gc50UGxJN52Suyhuy3Wd52tMwJz85YbVP6AGmcD6fqhoSOw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR04MB1386; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1386; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(346002)(376002)(39860400002)(396003)(366004)(136003)(189003)(199004)(25786009)(7736002)(47776003)(8936002)(14444005)(65826007)(305945005)(7416002)(53936002)(6666003)(486006)(476003)(6246003)(64126003)(68736007)(478600001)(3260700006)(44832011)(2906002)(97736004)(956004)(446003)(11346002)(50466002)(65956001)(86362001)(2616005)(65806001)(229853002)(31696002)(5660300001)(66066001)(6116002)(386003)(26005)(55236004)(5009440100003)(106356001)(186003)(81156014)(316002)(6486002)(3846002)(67846002)(16526019)(76176011)(4326008)(81166006)(105586002)(58126008)(16576012)(8676002)(52146003)(23676004)(53546011)(2486003)(77096007)(36756003)(230700001)(31686004)(52116002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1386; H:[10.232.134.144]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA0TUIxMzg2OzIzOnc1b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roa10dPRTaCuZdHf2cnaXXRDI6B3Iboqrrx3a8ICogWPzccin8dTqNAj9nV7/FXH+m3ThFz/Oe2r6mYKgj2U54acuy1PYRPRurB5fvpbVJvaHToU0p6crychUhUtrKzM1pP2rsZrtOHoPcsIKj3/i3JBKXO9iihDZcR50/XreWsPq56hKRmbBiYqg9ifdbJC6f57n6Kyf7AphZVqSRnLZ0zbjUQ==; 5:50a0epqT/Wdmmb/3LYUoh77I7Oa82XCYdFCBz8mBf95LO1t4pexUcfGnE5hMRO9Suxd3W55HdwRUgUO5iUYlVK2v68PbWBaUJkbkLjBeSbOEzWr7Syoy52AHcIom4tVMKxENESPP4mgJmJ+uSlBpvlN0tRVLU8mJ0pooD8Nsg0o=; 24:ZXgYzm2Su6qFZ1HzJJRTBmLSu0tcHFMDjPd0L+vyxio9uaiox9fGAzgD7BG3j1/7dIrGdgIDDzazWs542boSL2bKRXdBAOiEAFJgWOfUAK4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1386; 7:/QBUCbb8gK9T4CCWD4lrHcjSEH2wgeVaFMRt+2mFcCWpYla5dmeY4HHPr6BRPoAo0M2goKIYVaIe6FZ+EMUz1Qg0v84EMWq5UWkYx5RdsNqfQ8mqPpj+TE7negxR9dRZWx/v+cYq8AtcWFk6fb9tNeQrXA6WbyFSCDOZD/PrVK9x5Agiq5xkTN3ST6KATqMB/ZGRO5iz1MjwnjHjDWNqDqLwQZKxF1dz1XGbWCzxnHKvtKNpfhR49Bj5GmkPIegF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 12:30:28.1152 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ea02368-9e19-427b-ef2b-08d5e1a9ef02 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1386 Subject: Re: [dpdk-dev] [PATCH v3 06/16] examples/ipsec-secgw: check for max supported sessions 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: Wed, 04 Jul 2018 12:30:34 -0000 On 6/28/2018 6:22 AM, Pablo de Lara wrote: > Signed-off-by: Pablo de Lara > --- > examples/ipsec-secgw/ipsec-secgw.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c > index a5da8b280..2582dcb6e 100644 > --- a/examples/ipsec-secgw/ipsec-secgw.c > +++ b/examples/ipsec-secgw/ipsec-secgw.c > @@ -1440,6 +1440,12 @@ cryptodevs_init(void) > dev_conf.socket_id = rte_cryptodev_socket_id(cdev_id); > dev_conf.nb_queue_pairs = qp; > > + uint32_t dev_max_sess = cdev_info.sym.max_nb_sessions; > + if (dev_max_sess < (CDEV_MP_NB_OBJS / 2)) > + rte_exit(EXIT_FAILURE, > + "Device does not support at least %u " > + "sessions", CDEV_MP_NB_OBJS / 2); > + > if (!socket_ctx[dev_conf.socket_id].session_pool) { > char mp_name[RTE_MEMPOOL_NAMESIZE]; > struct rte_mempool *sess_mp; > Acked-by: Akhil Goyal