From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 66B90A32A4 for ; Fri, 25 Oct 2019 21:01:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 38CA81E55F; Fri, 25 Oct 2019 21:01:27 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 1E4351E559 for ; Fri, 25 Oct 2019 21:01:25 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id 23so2133811pgk.3 for ; Fri, 25 Oct 2019 12:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U8Z9g9nymnOQ8D+Ct5/96L8h3P4NfXIQI8sNQ+IylDY=; b=RG7xKvz2ZlBsKWV4eXxtPAOgs9x5pZOJLMyScjkrPGU8VOSEZKsLMqA4Fowu8yu7vy nLE1eLsGqoFxZ4If8GZXB0A0fbxcXCJNNtJHza/I5551lvxEvl426BzYZRrs39X5UX+M pWdIawT5kR9TxCqrd475Rov1PqN9Xw51ZfpHX/AiFG9WgAnWVXoq+FdkCtRBqvYuZGF/ uMUIOZyPe/riVgVfGMADAEUc+N8etEhBj2VdBsOG/FZaQ5o7tdrh+rfyF2WpLGnOhT2A OA/StuA/hFqQDIuyuRty72G4ciI5nCQ1Cs0cplcBke68MiUaCdE1M9Ih6zhPFEYhETf+ SauA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U8Z9g9nymnOQ8D+Ct5/96L8h3P4NfXIQI8sNQ+IylDY=; b=Id7BHi9lLvz9OtMVwAqlB4xDZOL8XlsWj8UHtdZfA36Fu2g91NUz+MjpLJAFEVeRD3 HHc+eAA7ZOCPHSfWNJCrfnj8M9MNL34jkK4pg9qYDgr3BdKiCeCQ8JCQfFVodNd+I9Wj Ic+1SkKTbou14+t3O1xtKdtQ5Dt3ZRtGYmXLyUNht0nDxg/ifsa9yxJ9/1XLmy/78OST V8WfEaSHOj1QRXOcew95VXlPe4uLsLLrxjA8k94C6FbHvrk3WUDzx7c0JjxIz/kcM5+8 za7ND7LEs1hRqD21o9KwiNimlx3n5/7f1/17cSr3j0QrAWK6I0zNKFd8w59Kp4RNG4Mi aejQ== X-Gm-Message-State: APjAAAXwfeS9+LAwbG+ned7AlK98LmqPrzPXdTz5zDW1AiMAdT9z9voK Q53aiz1ypu3lzdJt5xdrykrT0g== X-Google-Smtp-Source: APXvYqxcB+xMVipm3Cp1bYpBDDxtV4YBCX4OXEhJfcCAXA4O2iJ76CCeOdguLkvTt5g/B7CdjHlEWQ== X-Received: by 2002:a65:5541:: with SMTP id t1mr6164967pgr.39.1572030084073; Fri, 25 Oct 2019 12:01:24 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q33sm3095400pgm.50.2019.10.25.12.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 12:01:23 -0700 (PDT) Date: Fri, 25 Oct 2019 12:01:13 -0700 From: Stephen Hemminger To: Pavel Belous Cc: "dev@dpdk.org" , Ferruh Yigit , Akhil Goyal , John McNamara , Declan Doherty , Konstantin Ananyev , Thomas Monjalon , Igor Russkikh , Fenilkumar Patel , Hitesh K Maisheri Message-ID: <20191025120113.6a9fad60@hermes.lan> In-Reply-To: <357ff7d38cb313efe4278dc7cf175bb60bab398b.1571928488.git.Pavel.Belous@aquantia.com> References: <357ff7d38cb313efe4278dc7cf175bb60bab398b.1571928488.git.Pavel.Belous@aquantia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC v2 6/7] app/testpmd: macsec on/off commands using rte_security interface 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 25 Oct 2019 17:54:08 +0000 Pavel Belous wrote: > +static struct rte_mempool *get_security_pool(struct rte_security_ctx *ctx) > +{ > + struct rte_mempool *mp = rte_mempool_lookup(TESTPMD_MEMPOOL_NAME); > + > + if (!mp) { > + unsigned int ssize = rte_security_session_get_size(ctx); > + > + if (ssize) { > + mp = rte_mempool_create("testpmd_security_pool", > + 1, /* One sesion */ spelling "session"