Age | Commit message (Collapse) | Author |
|
Merge ODP linux-generic v1.40.0.0 into linux-dpdk.
|
|
Stop supporting deprecated per-session IVs.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
|
|
implementations"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
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>
|
|
Signed-off-by: Matias Elo <matias.elo@nokia.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|