From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id ED73323A for ; Wed, 22 Nov 2017 09:10:31 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id x63so8333560wmf.2 for ; Wed, 22 Nov 2017 00:10:31 -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; bh=Z+AClAStn2XIjcvkYfFSwyIH77lNr0ApVfaRWg49hKk=; b=agPyv5jPf33kSxlmTxbQgWnRxZytUv5ea3udEIHuoqCo3teuHJkOXQD2O1Tl7yBdqi 1iOcgjqWkkCeM7PcnKlBYoGkvTUHQFeS/HUv+kN9ieSt72DNil220DwHpplIrqR/vwHj TzTO0toTX5byYgN1s5LejCh9tKx4UNH7O4d3UEnNIuA7h8duvir0OUONaFILftW+/99E oia7xZJmiSDKmaLq9aJ5RABN3PE7Wiaxanavz2liORX4+SHMo638jKzwzStpTAnnGxvN Lf3XK5roIwWe3nN6PYvPCQc5H3WxG6pNf1RiARFOb0+qe/nHNnMisKX0+HGShlXuNT69 JFBw== 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; bh=Z+AClAStn2XIjcvkYfFSwyIH77lNr0ApVfaRWg49hKk=; b=iC+UBWIm9vSHxL7zESKSYdCbtcRPvpIMRS1LpF8ISRuuYvQt+DzRBV/dDQ9rCrsBI8 JLoH255lu67NkXmLu+LN9MPF4vqEQdQXSYG8Mq+TH9OZqQ6WqeAQf5U/K1QVzMTPQ9NA uaNP4Sczd1B+DQe5n1UbgnzfTuwjMplW8jJAC2NOEpfNlVUsN6SU9N9W5PuDsPrJ+UQ1 8jSpbM/YFwoRW0GcR04DZcr1cHeOa2p5eF09WNDLiw+s/aF4Zul6YiMAY7+Cs0yCcMn1 k5FDtl3tD8pXO5q3e1BiPNqGcs3cjmicl/Was4FLfYh5T8IyYhHUCILp3hI4rsITXM4d cvxQ== X-Gm-Message-State: AJaThX6S+dQhaS7lZx4ornmbVN2X+XAZgS73FjsLfBeqTyDHcFQYi7Tg MYLwhBYSItYGZeQ7SVEM+O7V X-Google-Smtp-Source: AGs4zMbufjrQTZeOHkIhHJfDXhZuQ60ARf/WyvQu4T6+pRH5QsZa5lZ1OIKeljJKzbay9M4rh9s+Vg== X-Received: by 10.80.181.49 with SMTP id y46mr27658145edd.29.1511338231636; Wed, 22 Nov 2017 00:10:31 -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 w14sm10555892edi.26.2017.11.22.00.10.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 00:10:31 -0800 (PST) From: Nelio Laranjeiro To: Akhil Goyal , Declan Doherty Cc: dev@dpdk.org, stable@dpdk.org Date: Wed, 22 Nov 2017 09:10:16 +0100 Message-Id: <2efb17c107b980d2aea8007d19bc6363e751be10.1511338151.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 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: Wed, 22 Nov 2017 08:10:32 -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