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 6FFDE1B1B6 for ; Wed, 24 Jan 2018 16:42:04 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 273DF22722; Wed, 24 Jan 2018 10:42:04 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:42:04 -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=8T7RIowgxS372G9rP +/7To72OtogTUzSBWAmZifbTIk=; b=na9G6DE9GyUmT7ASKzhiSQ0pYUrpR3bea w3GKdLJMGTrie0K2qDyCbbjv8Bzo1mxnDsNa4YP+8SMyAyRIY/F+sGSpkS9srf8m inEthKRErJgfe3wNqk7phTRpBf3Og8c8THZJ9xy+owa9MF0XQvWhHIOJcwymEtUl C4xPUQYwQbsSUO3dWgVqY9nNbaV6INhhGnQ74j4YzqXH8OUlj6Wc6I1fAL87xiYu gRzNZrfBOH+ULkJOkjONvcNYOH83ItvIMTA/ADHLQ+viQdhtVPnj42brOs/O3Qup MByITCbG0XrF7qzVHedXqBlea5ob5A7k6tItFr1GzWH2sxZlEc6/w== 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=8T7RIowgxS372G9rP+/7To72OtogTUzSBWAmZifbTIk=; b=YntdaVYj gn4winOl8FtP/BwcXj7yKLxhefRAQhVDP8piMzaDpIvca0FO7dJQ5WxL4Hit0d/Y dukxTxhma5FFkQahXLipeZ1VfGAqG6FHr/jNREr2/04mI+ZpcAXVxmRvpAeIRpwB dMQe91iRc5k13kg0CM/kvcrk3+9OzmMGSDU1JeP6kBZuqqFhWFCaWi+MeFT8Rbq3 gPPSZyuffQK7AO8mO3UwSq4XFuS2SOtkAfbSE+HyKt0ZrDkFRi5DdnB+fumVsofU WXY1kAwu0wKoIxwKQR7byphW8bkUf4N2Fpr7G2EQ9fqT7vYH/EkHGRIK4DOEAFnX 7uCkDmtqwXWi4A== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 0C9F47E1BE; Wed, 24 Jan 2018 10:42:01 -0500 (EST) From: Yuanhan Liu To: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= Cc: Akhil Goyal , dpdk stable Date: Wed, 24 Jan 2018 23:33:26 +0800 Message-Id: <1516808026-25523-138-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 device operation type' 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:04 -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 a32d8608296efa5352467417a38c8f0433d9b9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= Date: Thu, 23 Nov 2017 11:02:37 +0100 Subject: [PATCH] security: fix device operation type [ upstream commit 9265ef805d461943be406bcfcc7684c8346ff995 ] Device operation pointers should be constant to avoid any modification while it is in use. Fixes: c261d1431bd8 ("security: introduce security API and framework") Signed-off-by: Nelio Laranjeiro Acked-by: Akhil Goyal --- lib/librte_security/rte_security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index 653929b..629f547 100644 --- a/lib/librte_security/rte_security.h +++ b/lib/librte_security/rte_security.h @@ -94,7 +94,7 @@ enum rte_security_ipsec_tunnel_type { struct rte_security_ctx { void *device; /**< Crypto/ethernet device attached */ - struct rte_security_ops *ops; + const struct rte_security_ops *ops; /**< Pointer to security ops for the device */ uint16_t sess_cnt; /**< Number of sessions attached to this context */ -- 2.7.4