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 2E1EF200 for ; Thu, 23 Nov 2017 11:02:58 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id u83so15682592wmb.5 for ; Thu, 23 Nov 2017 02:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z+AClAStn2XIjcvkYfFSwyIH77lNr0ApVfaRWg49hKk=; b=tmNr8Wn0Pqu2qD1lZE28eFQjI67XegfhBjYh+wQyB2PRIL9TWwYmksJ3q0+TVbVMOL vXwOO0wNVm8vROys5VrYQCXamCxhFKvYQWBrgNSJMaqpJtOBpWMewfTMV8KOgrRtOqvn ocnBtCbMrPZhOqPdpbTS2eMbmqhiivu2JV+NqWywDR20C/nEEliLhYbl5PlYhdJnKpKq +BPk2/BiVvLV0qwvizGWxStIqHZiipZl0LVFnrNfoROl30plaMsALWi+wtbwuTBcC+lR 9ZKq6eQnhl4L3hnICzM2BKB01y26yCb+HUx0ss0fDaONwX1uOzDHNuwYPem4btN4Iy5n 9tTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z+AClAStn2XIjcvkYfFSwyIH77lNr0ApVfaRWg49hKk=; b=hMpzSdymDL0fHm6kaYqEvY7nhvoq7/BvUFkaACXAa3oN0OahKx7zLMRjIJm/PDjLET yePyVWIB1DY+QYm2LXs98YlJxYLK9njFcfklqH3PiuBCUeHla1Gpenfaw358wVs4ZcXh blpl5CABp+dTSy1ubBuKGAAGQOMrh14QTuAktUXSQ4M0XfcQQkfJIkhVPdsBHT89aVmc qLPdf1b1fE+bL1XzyMzUNrqyhHDhie2/HJbfGGu40JGELkHk50Dds89GgzKaTWqZFMyo qkf3y8/ygZuWPrnk720OItM4mP/+pygY+8lDyH0Ut534sSO6FxhJ8aRBO/40kseOEyqC x1MA== X-Gm-Message-State: AJaThX5fGFXkrM9vOhRG11BiW594lYxi2ctMLc8jWmDipyDHOat2MaIb NJp8qJAiO8+96nLxTkT43XhO X-Google-Smtp-Source: AGs4zMZq3J1LQDA4JsAcmrhteEoULdrFDB3Cb7KI9BvJUNc5NLFnO85ohXheyQKxxNqvTdwhysJnTw== X-Received: by 10.80.185.68 with SMTP id m62mr34239470ede.239.1511431377875; Thu, 23 Nov 2017 02:02:57 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id q12sm13246499edj.29.2017.11.23.02.02.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 02:02:57 -0800 (PST) From: Nelio Laranjeiro To: Akhil Goyal , Declan Doherty Cc: dev@dpdk.org, Gaetan Rivet , stable@dpdk.org Date: Thu, 23 Nov 2017 11:02:37 +0100 Message-Id: <5ed1354d41a6370faa8887a6f3acd1e20ef09668.1511431327.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <1c3b73f0912ad4b3da8423590dc76fc83df16b80.1511338151.git.nelio.laranjeiro@6wind.com> References: <1c3b73f0912ad4b3da8423590dc76fc83df16b80.1511338151.git.nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH v2 1/3] security: fix device operation type 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: Thu, 23 Nov 2017 10:02:58 -0000 Device operation pointers should be constant to avoid any modification while it is in use. Fixes: c261d1431bd8 ("security: introduce security API and framework") Cc: akhil.goyal@nxp.com Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro --- 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 aa3a471a3..679c0a696 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.11.0