From: NĂ©lio Laranjeiro Date: Thu, 23 Nov 2017 10:02:37 +0000 (+0100) Subject: security: fix device operation type X-Git-Tag: spdx-start~122 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9265ef805d461943be406bcfcc7684c8346ff995;p=dpdk.git security: fix device operation type Device operation pointers should be constant to avoid any modification while it is in use. Fixes: c261d1431bd8 ("security: introduce security API and framework") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Akhil Goyal --- diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index 653929b990..629f5473d8 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 */