From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id EE0621B340 for ; Sun, 15 Oct 2017 14:54:38 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id l68so29132872wmd.5 for ; Sun, 15 Oct 2017 05:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=gJb4cDOnCj3iElC/RCuWtLxXAqxZCETpdaB6c87YxNM=; b=xnqyuyZoMTX9XhLUGcdcKqLyTicCp9dR6hodA9H2kegG8rQw+CsG8WgfG9tHcGIvkK bJpt/gcnqilk4592lXOHbea1DVVetxXOPseFmD7B/A71Ck6bHY5l/QXre+dMirzT5CgG beRm5Uo8jKC1WXDZ3wet8qgP3ksFiO5PfICS9LCIpYdH0+EKduaXJ29i0n7sxdqCeejO 0IK0NqpZT3AY7BamJu1q3YJza99MC3MLnmft3qs3rtgaND+1Io844XwnJBHcLqKYsAN9 sI5wEXGGiibTvYkNwuxFDx8krKxAtI+aEF8TWbUl2Kxs8tfaw7mzBy8qvu6Lhc3gNB4W B5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gJb4cDOnCj3iElC/RCuWtLxXAqxZCETpdaB6c87YxNM=; b=SYq/YP0iWW401Y0m3MBqzkbc/ysGNfrRF8cB48J6rRTQdpD0y9FP/i8/pCEU01+tBM th0AyPtK+qcedOglRNJlYDj/yA4WQXCC1sP66SmQbWTOSm6dYiAIFBTy6PYtfOSOUcKm Y2kRFUcHVCKskf15F/trLEkeYEH3bpPzlr8emM5TmtAU6RxZ7YZO0EHqyEcTwzGa8kvz Xq1eOwMdjw7QT4pUYDP/0rZLuy/FPQ/rRNe2tx3NFJuTFmDSYQmSDVzcnN2brekC26ii I6eAx7RmT0iVODL6YWQJrShhWfDGW5asE9/VkJznJHkkoQh9AhgYtT2dp77gp176UDyh m66w== X-Gm-Message-State: AMCzsaWl4Oid3UXSyVSoVsnjiNLzhTss2qGrs57KEF+fekYpXvlxGGnf 9KOmbZ1cZ3JEuuaZe9r3cNmQ9A== X-Google-Smtp-Source: AOwi7QBYdqiu9IB0vjAYJC3xq7drnDr5LC88ALC0VUyUXtZPr/fgf06m/x0ZXoYkM2owYX5E3h9ECQ== X-Received: by 10.80.159.4 with SMTP id b4mr9021851edf.163.1508072078746; Sun, 15 Oct 2017 05:54:38 -0700 (PDT) Received: from [10.0.38.219] ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id d12sm3561960edh.40.2017.10.15.05.54.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2017 05:54:37 -0700 (PDT) To: dev@dpdk.org, sergio.gonzalez.monroy@intel.com, pablo.de.lara.guarch@intel.com, aviadye@mellanox.com Cc: borisp@mellanox.com, akhil.goyal@nxp.com, hemant.agrawal@nxp.com, radu.nicolau@intel.com, declan.doherty@intel.com, liranl@mellanox.com, nelio.laranjeiro@6wind.com, thomas@monjalon.net References: <1507987683-12315-1-git-send-email-aviadye@dev.mellanox.co.il> <1507987683-12315-3-git-send-email-aviadye@dev.mellanox.co.il> From: Aviad Yehezkel Message-ID: Date: Sun, 15 Oct 2017 15:54:36 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1507987683-12315-3-git-send-email-aviadye@dev.mellanox.co.il> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 03/11] examples/ipsec-secgw: Fixed create session also for aead 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: Sun, 15 Oct 2017 12:54:39 -0000 On 10/14/2017 4:27 PM, aviadye@dev.mellanox.co.il wrote: > From: Aviad Yehezkel > > Search for session also with aead key > > Signed-off-by: Aviad Yehezkel > --- > examples/ipsec-secgw/ipsec.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c > index 0afb9d6..daa1d7b 100644 > --- a/examples/ipsec-secgw/ipsec.c > +++ b/examples/ipsec-secgw/ipsec.c > @@ -56,13 +56,17 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) > > key.cipher_algo = (uint8_t)sa->cipher_algo; > key.auth_algo = (uint8_t)sa->auth_algo; > + key.aead_algo = (uint8_t)sa->aead_algo; > > ret = rte_hash_lookup_data(ipsec_ctx->cdev_map, &key, > (void **)&cdev_id_qp); > if (ret < 0) { > RTE_LOG(ERR, IPSEC, "No cryptodev: core %u, cipher_algo %u, " > - "auth_algo %u\n", key.lcore_id, key.cipher_algo, > - key.auth_algo); > + "auth_algo %u aead_algo %u\n", > + key.lcore_id, > + key.cipher_algo, > + key.auth_algo, > + key.aead_algo); > return -1; > } > Tested-by: Aviad Yehezkel