From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 59517237 for ; Tue, 21 Nov 2017 14:27:55 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0973720AF5; Tue, 21 Nov 2017 08:27:55 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:27:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=6+tQX8Y9UTKBeDw+j iZJS2bP+t4arKL2N9jNMqcoVaM=; b=fTMl0myMSj2kOgqt3VXStVap/1PEKKQ5k AtLtI8RwsnXPhQgCx18smGlYQUWFdLVKa33KxlMX/WsNwNczQ+0For01iY3/9B1T hgAl+325ruaLsYWVfJ7w+YGqoRCkl6+BCUVrZda+1Tog+1krPFbdAIFb/NCW4vbK Ds8EfGMGOwcWUldX4W12UncpkjmcjSauP36JzMCQZgwCTmv/PW0ZarGrrRM4LeaL +a1+vtT2cawP50pQtNC6/8QexZNpzCRtSbIiH+C1Rr+HAeikZst02yrEUoJM5WOc sSkWLmx3n8HnqBLMn04eynucutPN9KxhwFjOrrsmTkZWsLN6VcScw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=6+tQX8Y9UTKBeDw+jiZJS2bP+t4arKL2N9jNMqcoVaM=; b=YYjJBTvk 2s2xHcwDdNbU//amhVD7ToUQ3iX5XTxJGlghxDW9u7JCNs0cdMyxynUhl9CyaEuD pl5CZMFbJgIdg/pSJ29z+uyVMJ4KI7na/QtcODDKV4bgKGgu49Y+QriPoQmQ0lWV Ll8y8J47oIWM6LHWGDZjUbpUue5oL24K/JCZY4g893ydVw9nvrvZb0Hy3YmO4b6c X+RypDtrizQX9dGht4avry8hpXb7ILRdhNHxICURyH4/emQWyuQ0LsaTsBhYA9n2 QvFl2eO+BjmEYcnm1zBrHGUJ7+urlu21IM2GWGEq5MweTDTFJw4jMr0AaP1kcFsf kP45WeUO1lbciQ== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 939202486C; Tue, 21 Nov 2017 08:27:49 -0500 (EST) From: Yuanhan Liu To: Aviad Yehezkel Cc: Radu Nicolau , Pablo de Lara , dpdk stable Date: Tue, 21 Nov 2017 21:17:57 +0800 Message-Id: <1511270333-31002-135-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'examples/ipsec-secgw: fix session creation' has been queued to stable release 17.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 13:27:55 -0000 Hi, FYI, your patch has been queued to stable release 17.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 86117fed92c93cecdd4420165e8b448b0946054b Mon Sep 17 00:00:00 2001 From: Aviad Yehezkel Date: Tue, 24 Oct 2017 15:48:58 +0300 Subject: [PATCH] examples/ipsec-secgw: fix session creation [ upstream commit d00f38905cb45ebb4fecf509079d7486c1a244ae ] Search for session also with AEAD algorithms. Fixes: 501e9c226adf ("examples/ipsec-secgw: add AEAD parameters") Signed-off-by: Aviad Yehezkel Acked-by: Radu Nicolau Acked-by: Pablo de Lara --- 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..36fb8c8 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; } -- 2.7.4