diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-06-06 13:39:26 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-20 16:13:53 +0300 |
commit | 51fef12d7f7b436816bd8eb97b481a4138fa0023 (patch) | |
tree | 483a02d70eb83c51ffe6bee993ab8a642471cd8e /platform | |
parent | e01c03045f0dfb87d719e86a1e1014b730bb591b (diff) |
Port 12d3afa2d "linux_gen: remove crypto error from packet error flags"
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/api/plat/packet_inline_types.h | 7 | ||||
-rw-r--r-- | platform/linux-dpdk/odp_crypto.c | 5 |
2 files changed, 3 insertions, 9 deletions
diff --git a/platform/linux-dpdk/include/odp/api/plat/packet_inline_types.h b/platform/linux-dpdk/include/odp/api/plat/packet_inline_types.h index 06e322066..e0169579a 100644 --- a/platform/linux-dpdk/include/odp/api/plat/packet_inline_types.h +++ b/platform/linux-dpdk/include/odp/api/plat/packet_inline_types.h @@ -113,7 +113,7 @@ typedef union { uint32_t all_flags; struct { - uint32_t reserved1: 6; + uint32_t reserved1: 7; /* * Init flags @@ -144,14 +144,13 @@ typedef union { uint32_t udp_err: 1; /* UDP error */ uint32_t sctp_err: 1; /* SCTP error */ uint32_t l4_chksum_err: 1; /* L4 checksum error */ - uint32_t crypto_err: 1; /* Crypto packet operation error */ }; /* Flag groups */ struct { - uint32_t reserved2: 6; + uint32_t reserved2: 7; uint32_t other: 18; /* All other flags */ - uint32_t error: 8; /* All error flags */ + uint32_t error: 7; /* All error flags */ } all; } _odp_packet_flags_t; diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_crypto.c index 21c9f00ee..ff6dcf0b6 100644 --- a/platform/linux-dpdk/odp_crypto.c +++ b/platform/linux-dpdk/odp_crypto.c @@ -1816,7 +1816,6 @@ int odp_crypto_int(odp_packet_t pkt_in, odp_bool_t allocated = false; odp_packet_t out_pkt = *pkt_out; odp_crypto_packet_result_t *op_result; - odp_packet_hdr_t *pkt_hdr; odp_bool_t result_ok = true; session = (crypto_session_entry_t *)(intptr_t)param->session; @@ -1984,9 +1983,6 @@ out: op_result->auth_status.hw_err = ODP_CRYPTO_HW_ERR_NONE; op_result->ok = result_ok; - pkt_hdr = packet_hdr(out_pkt); - pkt_hdr->p.flags.crypto_err = !op_result->ok; - /* Synchronous, simply return results */ *pkt_out = out_pkt; @@ -2032,7 +2028,6 @@ int odp_crypto_operation(odp_crypto_op_param_t *param, * We cannot fail since odp_crypto_op() has already processed * the packet. Let's indicate error in the result instead. */ - packet_hdr(out_pkt)->p.flags.crypto_err = 1; packet_result.ok = false; } |