diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-06-06 13:32:10 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-20 16:13:53 +0300 |
commit | e01c03045f0dfb87d719e86a1e1014b730bb591b (patch) | |
tree | 64f6e25464b2659fd03729c5aba9174b9fd02522 /platform | |
parent | e0bfe4cfd94533913e2e6aa3142cbee0d6abbebd (diff) |
Port 11f963aed "linux-gen: packet: put crypto and ipsec results in a union in packet hdr"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-dpdk/include/odp_packet_internal.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/platform/linux-dpdk/include/odp_packet_internal.h b/platform/linux-dpdk/include/odp_packet_internal.h index a381386fc..546b2bf29 100644 --- a/platform/linux-dpdk/include/odp_packet_internal.h +++ b/platform/linux-dpdk/include/odp_packet_internal.h @@ -158,13 +158,11 @@ typedef struct odp_packet_hdr_t { int8_t subtype; union { - struct { - /* Result for crypto packet op */ - odp_crypto_packet_result_t crypto_op_result; + /* Result for crypto packet op */ + odp_crypto_packet_result_t crypto_op_result; - /* Context for IPsec */ - odp_ipsec_packet_result_t ipsec_ctx; - }; + /* Context for IPsec */ + odp_ipsec_packet_result_t ipsec_ctx; /* Result for comp packet op */ odp_comp_packet_result_t comp_op_result; |