aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-24Merge ODP v1.40.0.0v1.40.0.0_DPDK_19.11Matias Elo
Merge ODP linux-generic v1.40.0.0 into linux-dpdk.
2023-02-24linux-dpdk: crypto: remove deprecated per-session IVsMatias Elo
Stop supporting deprecated per-session IVs. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2023-02-24Port 2280e91a1 "linux-gen: crypto: implement basic crypto operation type"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2023-02-24Port 5054ec2ca "linux-gen: crypto: implement out-of-place crypto operation type"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2023-02-24Port a057dd7db "linux-gen: packet: update packet vlan flag set function ↵Matias Elo
implementations" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 721e08c6f "api: shm: remove deprecated ODP_SHM_SW_ONLY define"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 213684797 "github_ci: add test case for custom stash config"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 151f650e8 "linux-gen: stash: add mpmc ring based implementation"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 9079409fc "linux-gen: ring: add 64-bit variant of mpmc ring"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port d74fabe09 "api: timer: use deprecate macro for odp_timer_set_rel()"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 8aee6094e "linux-gen: stash: reserve all memory from a single shm block"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port a735a7131 "linux-gen: event: add event validation support"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 8782c99a6 "linux-gen: queue: header include clean-up"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 579d81057 "api: buffer: split header files"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 77d2986ac "linux-gen: loop: add multi-queue support"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 76e996322 "linux-gen: crypto: inline odp_crypto_result() implementation"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port e2eb952cc "linux-gen: crypto: inline event conversion functions"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 648c27bfc "api: crypto: split header files"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-24Port 7f42e20b0 "linux-gen: sched: add config option for adjusting ordered ↵Matias Elo
queue stash size" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2023-02-16Merge tag 'v1.40.0.0' of https://github.com/OpenDataPlane/odp into odp-dpdkMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2023-02-13api: increment ODP API version to 1.40.0Matias Elo
Increment API version number to reflect the following changes: Backward incompatible: - packet: specify which packet metadata flags cannot be set simultaneously using odp_packet_has_XX_set() functions - timer: use ODP_DEPRECATE() macro for odp_timer_set_abs() and odp_timer_set_rel() functions - timer: deprecate old timer pool clock sources ODP_CLOCK_CPU and ODP_CLOCK_EXT - timer: deprecate old timer set return values ODP_TIMER_TOOEARLY, ODP_TIMER_TOOLATE, and ODP_TIMER_NOEVENT Backward compatible: - crypto: add new operation type session parameter odp_crypto_session_param_t.op_type - crypto: add ODP_CRYPTO_OP_TYPE_BASIC operation type - crypto: add ODP_CRYPTO_OP_TYPE_OOP operation type - crypto: clarify odp_crypto_op() documentation regarding packet data and metadata copy - crypto: require that odp_crypto_result() is called before accessing packet data of asynchronously processed packets in non-legacy modes - crypto: fix EIA2 IV length in API documentation - packet: clarify odp_packet_has_vlan() and odp_packet_has_vlan_qinq() specifications Removed deprecated APIs: - crypto: per-session IV configuration - pktio: in_unknown_protos field from odp_pktio_stats_t - pktio: odp_pktin_ts_res() function - pktio: odp_pktin_ts_from_ns() function - shm: ODP_SHM_SW_ONLY define - tm: odp_tm_capabilities() function - tm: commit_bps field from odp_tm_shaper_params_t - tm: peak_bps field from odp_tm_shaper_params_t Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-13validation: crypto: check output packet better after failed authJanne Peltonen
Always check the parts of packets that are not supposed to be affected by crypto operations. Do the checking now also after failed authentication. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13validation: crypto: add ODP_CRYPTO_OP_TYPE_OOP testingJanne Peltonen
Add testing of the out-of-place crypto operation type. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13validation: crypto: change packet data checking approachJanne Peltonen
Change the method of verifying the data content of crypto result packets to such that expected packet data is constructed and then compared with the actual packet data. This is to keep the verification more readable and better maintainable when more complex tests are added later. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13validation: crypto: refactor alg_test_execute()Janne Peltonen
Move the iteration across normal, repeat and wrong digest tests away from alg_test_execute() so that alg_test_execute() can concentrate on invoking and verifying single crypto operation. Move most of test packet building and result verification from alg_test_execute() to separate functions to make the code cleaner. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13validation: crypto: add ODP_CRYPTO_OP_TYPE_BASIC testingJanne Peltonen
Add support for the operation type parameter and add testing of ODP_CRYPTO_OP_TYPE_BASIC. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13linux-gen: crypto: implement out-of-place crypto operation typeJanne Peltonen
Add support for ODP_CRYPTO_OP_TYPE_OOP operation type. In openssl crypto, implement out-of-place operations as combinations of packet data copies and in-place operations. This is done for simplicity and to ensure correct semantics for API validation test development. In other crypto modules, do not support out-of-place operations yet, but fail gracefully by returning ODP_CRYPTO_SES_ERR_PARAMS error in session creation if creation of an out-of-place session is attempted. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13linux-gen: crypto: implement basic crypto operation typeJanne Peltonen
Add support for ODP_CRYPTO_OP_TYPE_BASIC operation type. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13linux-gen: crypto: null: use new session creation error namesJanne Peltonen
Stop using the old session creation error names slated for deprecation. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-13api: crypto: allow post-processing in odp_crypto_result()Janne Peltonen
Require that odp_crypto_result() is called before packet data of async processed packets can be assumed to be valid. This makes it possible for an ODP implementation to postpone part of crypto processing to odp_crypto_result() after completion event delivery. For backward compatibility, do not change the semantics of the legacy operation mode. I.e. this change applies only to the newly introduced operation modes. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-13api: crypto: add an out-of-place type operation typeJanne Peltonen
Add ODP_CRYPTO_OP_TYPE_OP that writes the output of the crypto operation into a caller provided output packet and does not consume the input packet. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-13api: crypto: introduce a session parameter to control output packet handlingJanne Peltonen
Introduce new "operation type" session parameter that controls how the crypto operations interpret their parameters and handle the output packet. - Legacy type is the default and provides backward compatibility. - Basic type provides a slightly simplified interface Other types can be introduced later. In the basic operation type the pool session parameter must be set to ODP_POOL_INVALID. This is to enable backward compatibility for a possible future API change that would allow caller to optionally specify the pool of the output packet instead of having ODP use the pool of the input packet. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-13api: crypto: clarify that input packet is fully copied to output packetJanne Peltonen
The semantics of the crypto op functions are somewhat ambiguous regarding how an explicitly given output packet is handled. In particular, the API does not state how the provided output packet affects the final output (e.g. whether some data is preserved). Clarify the API based on how the linux gen reference implementation works and on how the older odp_crypto_operation() function behaves: - All packet data and metadata are copied from the input packet to the output packet, even when an output packet is given explicitly (i.e. the old packet data and metadata of an explicitly given output packet are lost. - Memory layout (e.g. data pointers, segmentation) of the output packet may change during crypto operations. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-08api: crypto: fix EIA2 IV length in API textJanne Peltonen
EIA2 uses 64-bit IV, not 128-bit as mentioned in the current API text. Fix the remark about IV length and fix also a couple of small typos. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
2023-02-07validation: packet: add test for vlan flag functionsMatias Elo
Add new tests for VLAN/VLAN QinQ input flags. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07validation: packet: remove conflicting packet metadata flagsMatias Elo
Stop setting conflicting packet metadata flags. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07validation: cls: set packet has vlan flag correctlyMatias Elo
Follow the new packet API specification and set either odp_packet_has_vlan() or odp_packet_has_vlan_qinq() flag, not both. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07linux-gen: packet: update packet vlan flag set function implementationsMatias Elo
Update packet VLAN/VLAN QinQ flag set functions to match the updated packet API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: packet: clarify packer has vlan and vlan q-in-q specificationsMatias Elo
Clarify odp_packet_has_vlan() and odp_packet_has_vlan_qinq() specifications. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: packet: specify which packet flags cannot be set simultaneouslyMatias Elo
Specify which packet metadata flags cannot be set simultaneously using odp_packet_has_XX_set() functions. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: timer: deprecate old timer set return valuesMatias Elo
Deprecate old timer set return values ODP_TIMER_TOOEARLY, ODP_TIMER_TOOLATE, and ODP_TIMER_NOEVENT, which have been replaced by ODP_TIMER_TOO_NEAR, ODP_TIMER_TOO_FAR, and ODP_TIMER_FAIL. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: timer: deprecate old timer pool clock sourcesMatias Elo
Deprecate old timer pool clock sources ODP_CLOCK_CPU and ODP_CLOCK_EXT, which have been replaced by ODP_CLOCK_DEFAULT and ODP_CLOCK_SRC_1. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: timer: use deprecate macro for odp_timer_set_rel()Matias Elo
Use ODP_DEPRECATE() macro for odp_timer_set_rel() function. Previously, the deprecation was only mentioned in the function documentation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: tm: remove deprecated peak_bps shaper parameterMatias Elo
Remove deprecated 'peak_bps' field from odp_tm_shaper_params_t. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: tm: remove deprecated commit_bps shaper parameterMatias Elo
Remove deprecated 'commit_bps' field from odp_tm_shaper_params_t. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: tm: remove deprecated odp_tm_capabilities() functionMatias Elo
Remove deprecated odp_tm_capabilities() function. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: shm: remove deprecated ODP_SHM_SW_ONLY defineMatias Elo
Remove deprecated ODP_SHM_SW_ONLY define. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: pktio: remove deprecated odp_pktin_ts_from_ns() functionMatias Elo
Remove deprecated odp_pktin_ts_from_ns() function. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: pktio: remove deprecated odp_pktin_ts_res() functionMatias Elo
Remove deprecated odp_pktin_ts_res() function. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-02-07api: pktio: remove deprecated in_unknown_protos statistics counterMatias Elo
Remove deprecated 'in_unknown_protos' field from odp_pktio_stats_t. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>