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 099241B1BD for ; Wed, 24 Jan 2018 16:42:13 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B1FF22221C; Wed, 24 Jan 2018 10:42:12 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:42:12 -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=nDCm10EQEFMAtwX41 xnhsFDrgxyZpZSO4SOIzwMY+OY=; b=NGmnQ2UWQiAfP/miI/rV/wP9voUZ7GUSO Xje533thrR8EJLnKPO1cMyngqjnQvFEKNtLO6kJkpj6QirHK/KxqOQyj8lTCz1r7 K0bvf1dNoBHUx8iwuzLRhJH5rY6fMyOa3o1OziOPP0wOkuzW3jC0wm8vcFUH2xl5 yR+8/4jkzAmuleFxvxfBdfzdigIWJmFizcycA7x6lL3u9sVPUk70ULT1ydv79H88 3ixbHrc1mTuNlWzO2tG7r6gaDgtFjZw5vtyq/1W8cjgbBLdvaAy63b0dMgLKhpgl 6GuqOpIy8DQgInistxc6qTfLUNejpWWGPWAXG5oQTKftcn3S8RYCQ== 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=nDCm10EQEFMAtwX41xnhsFDrgxyZpZSO4SOIzwMY+OY=; b=ZuV1VmSe HcxVn60SGlRfW7mHUInTB3/uOJGBdGJtRy7u0b3K0SDUGkVGBaY5b5sqGZQ+iPnN m8KfU7uvokN0MXwQsOCzEnKeHTnhJP+PH9Iy8d5RLup1jS8nTQqA++iM46pFsKtW dhuMBIUQupAFfsCkXn+Xe2tdebo+byWkmWUHd2e6aC4xm4heyG2o5TrLdmS/pdjS 7Amzy5l8x1qofcNWMxgWnNbjtmqiHXvkEEfGiseHy5aFkctc9xZcqUig+wjrzers JTqczd0ciTXs2XmhkAkyZe9fYUoOTd+ocinLYKIOEnhZBpE5ifhXCqMmokYylyY3 nBpoRYB7fbcdcQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id A84E47E3D6; Wed, 24 Jan 2018 10:42:10 -0500 (EST) From: Yuanhan Liu To: Akhil Goyal Cc: Radu Nicolau , dpdk stable Date: Wed, 24 Jan 2018 23:33:29 +0800 Message-Id: <1516808026-25523-141-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'security: fix enum start value' has been queued to LTS release 17.11.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: Wed, 24 Jan 2018 15:42:13 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 4adcb83f10458d54197bf47f8fd93026c41d01f4 Mon Sep 17 00:00:00 2001 From: Akhil Goyal Date: Wed, 13 Dec 2017 12:45:08 +0530 Subject: [PATCH] security: fix enum start value [ upstream commit 009ac7157c940194b862be6e8a08acae37383090 ] enum should be initialized with 1 so that unitialized(memset) memory may not be treated as a valid enum value. Fixes: c261d1431bd8 ("security: introduce security API and framework") Signed-off-by: Akhil Goyal Acked-by: Radu Nicolau --- lib/librte_security/rte_security.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index fc4cec2..2b609cb 100644 --- a/lib/librte_security/rte_security.h +++ b/lib/librte_security/rte_security.h @@ -60,7 +60,7 @@ extern "C" { /** IPSec protocol mode */ enum rte_security_ipsec_sa_mode { - RTE_SECURITY_IPSEC_SA_MODE_TRANSPORT, + RTE_SECURITY_IPSEC_SA_MODE_TRANSPORT = 1, /**< IPSec Transport mode */ RTE_SECURITY_IPSEC_SA_MODE_TUNNEL, /**< IPSec Tunnel mode */ @@ -68,7 +68,7 @@ enum rte_security_ipsec_sa_mode { /** IPSec Protocol */ enum rte_security_ipsec_sa_protocol { - RTE_SECURITY_IPSEC_SA_PROTO_AH, + RTE_SECURITY_IPSEC_SA_PROTO_AH = 1, /**< AH protocol */ RTE_SECURITY_IPSEC_SA_PROTO_ESP, /**< ESP protocol */ @@ -76,7 +76,7 @@ enum rte_security_ipsec_sa_protocol { /** IPSEC tunnel type */ enum rte_security_ipsec_tunnel_type { - RTE_SECURITY_IPSEC_TUNNEL_IPV4, + RTE_SECURITY_IPSEC_TUNNEL_IPV4 = 1, /**< Outer header is IPv4 */ RTE_SECURITY_IPSEC_TUNNEL_IPV6, /**< Outer header is IPv6 */ @@ -253,7 +253,7 @@ enum rte_security_session_action_type { /** Security session protocol definition */ enum rte_security_session_protocol { - RTE_SECURITY_PROTOCOL_IPSEC, + RTE_SECURITY_PROTOCOL_IPSEC = 1, /**< IPsec Protocol */ RTE_SECURITY_PROTOCOL_MACSEC, /**< MACSec Protocol */ -- 2.7.4