aboutsummaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2022-04-27linux-dpdk: remove deprecated dpdk codeMatias Elo
The supported DPDK versions are currently v19.11 and v20.11. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2022-04-26linux-dpdk: packet: fix potential division by zeroMatias Elo
Avoid division by zero if 'dev_info.tx_desc_lim.nb_align == 0'. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2022-04-26linux-dpdk: pool: improve odp_pool_create() parameter checkingMatias Elo
Check that the number of objects in the pool is not zero in odp_pool_param_t. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2022-04-25linux-dpdk: shm: support ODP_SHM_SINGLE_VAv1.35.0.0_DPDK_19.11Jere Leppänen
Add ODP_SHM_SINGLE_VA to supported flags. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-04-25linux-dpdk: init: in process mode, use --legacy-mem EAL optionJere Leppänen
In process mode, use the --legacy-mem EAL option, in order to ensure that all memory is allocated at process start time. The memory mappings are inherited by forked processes. This allows us to support the ODP_SHM_SINGLE_VA flag. Increase dpdk.process_mode_memory_mb in the configuration file from 512 to 768, so that all tests have enough memory in process mode. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-04-25Merge ODP v1.35.0.0Matias Elo
Merge ODP linux-generic v1.35.0.0 into linux-dpdk
2022-04-25Port d7e5e69be "linux-gen: timer: implement periodic timer"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-04-25Port c437c1570 "linux-gen: timer: implement timer start and restart"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 8ff65a01e "api: crypto: remove deprecated authentication algorithm fields"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 400c930c3 "api: crypto: remove deprecated cipher algorithm fields"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port fc9420e52 "api: crypto: remove deprecated crypto authentication algorithms"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 2aa61a7aa "api: crypto: remove deprecated crypto cipher algorithms"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 36a509de4 "api: queue: remove deprecated scheduled queue capabilities"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port de94be19d "linux-gen: timer: new expiration mode parameter"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 53c71abf6 "linux-gen: dpdk: implement new packet output queue size ↵Matias Elo
parameter" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 302ebc58f "linux-gen: pktio: follow new ODP_PKTOUT_MAX_QUEUES define"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 8391b3548 "linux-gen: packet: add common packet metadata copy function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 4074942b2 "linux-gen: packet: remove unnecessary fields from ↵Matias Elo
_odp_packet_copy_cls_md()" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 321f334eb "linux-gen: packet: rename internal classifier metadata copy ↵Matias Elo
function" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port aba723f78 "linux-gen: packet: remove internal parser metadata copy ↵Matias Elo
function" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22linux-dpdk: queue: header include clean-upMatias Elo
Add missing and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22linux-dpdk: byteorder: add missing includeMatias Elo
Add missing odp/api/abi/byteorder.h include. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 5c68df252 "linux-gen: pktio: implement tx completion event"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port fb4766cf9 "linux-gen: packet: implement tx completion event APIs"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port ee1c9bc30 "linux-gen: pktio: clean up pktio open and init"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 5ffd8cce1 "linux-gen: pktio: split LSO send function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 723aa87e4 "api: pktio: remove deprecated parser layer defines"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22linux-dpdk: crypto: header include clean-upMatias Elo
Add missing odp/api/buffer.h include and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22linux-dpdk: pool: header include clean-upMatias Elo
Remove unnecessary, group existing, and add missing header includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 8d6365a7d "api: random: split random types into a separate header"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 20774c8d4 "api: pktio: split packet io types into a separate header"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 6acdad54c "api: pool: split pool types into a separate header"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 83e637a95 "linux-gen: pktio: header include clean-up"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port cf0e1c28d "linux-gen: packet: header include clean-up"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port db63b1a9e "linux-gen: pktio: rename packet io source files"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-04-22Port 9181b609a "example: reduce example application run times in make check"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-03-29linux-gen: crypto: fix configure portability issueMatias Elo
AM_CONDITIONALs are expected to be global by autoconf. OpenSSL and ARMv8 crypto conditionals are platform specific, which causes configure failures on other platforms: configure: error: conditional "WITH_OPENSSL_CRYPTO" was never defined. Work around this issue by postponing the platform specific conditionals to AC_CONFIG_COMMANDS_PRE phase, which effectively disables the failing global checks. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com> Suggested-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
2022-03-23linux-gen: pktio: add missing includeMatias Elo
Add missing odp/api/buffer.h include. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-03-23linux-gen: ipsec: add missing includeMatias Elo
Add missing odp/api/atomic.h, odp/api/event.h, and stdint.h includes. Group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-03-23linux-gen: comp: add missing includeMatias Elo
Add missing odp/api/queue.h include and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-03-23Merge tag 'v1.35.0.0' of https://github.com/OpenDataPlane/odp into odp-dpdkMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2022-03-11linux-dpdk: crypto: remove unneeded xform data from sessionsJanne Peltonen
There is no need to have the rte_crypto_sym_xform type data in the session structure, so remove it from there. The xform data is really needed only for rte_cryptodev_sym_session_init() which does not require its parameters to be preserved after the call. Other uses of the xform can be replaced by ODP crypto session creation parameters that are also part of the crypto session. Remove the xform data from the session structure as it is not needed. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-03-11linux-dpdk: crypto: fix a memory leak in session creationJanne Peltonen
Currently a memory buffer is allocated dynamically for the key(s) when a session is created, but the buffer is not freed when the session is destroyed. Fix the leak by not allocating the buffer in the first place. Since rte_cryptodev_sym_session_init() does not take ownership of the key and does not require the passed key parameter to live beyond the init call, we can simply pass it the key pointer we got as a session parameter. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-03-03api: random: split random types into a separate headerMatias Elo
Split random types into a separate header file to enable easier function inlining. No API changes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03api: pktio: split packet io types into a separate headerMatias Elo
Split packet IO types into a separate header file to enable easier function inlining. No API changes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03api: pool: split pool types into a separate headerMatias Elo
Split pool types into a separate header file to enable easier function inlining. No API changes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03linux-gen: pktio: header include clean-upMatias Elo
Remove unnecessary, group existing, and add missing header includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03linux-gen: packet: header include clean-upMatias Elo
Remove unnecessary, group existing, and add missing header includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03linux-gen: pktio: rename packet io source filesMatias Elo
Rename packet IO source files to be consistent with project naming convention. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-03linux-gen: timer: implement periodic timerPetri Savolainen
Implemented the new period timer API. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>