security: fix device operation type
Device operation pointers should be constant to avoid any modification
while it is in use.
Fixes: c261d1431b
("security: introduce security API and framework")
Cc: stable@dpdk.org
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
aca03fefbe
commit
9265ef805d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user