aboutsummaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2021-07-07linux-dpdk: packet: fix odp_packet_trunc_head() seg_len outputMatias Elo
Output segment length was read from the old head segment. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-07-07Port 8da4ecb66 "linux-gen: timer: new timer set return codes"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>
2021-07-07Port 400292709 "linux-gen: timer: use default clock source enum"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>
2021-07-07Port 0cab1a61a "linux-gen: time: implement strict time stamp read functions"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>
2021-07-07Port b599d217f "linux-gen: test: remove ipsec_crypto_example.sh"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>
2021-07-07Port e44410dff "example: ipsec_crypto: enhance runtime scripts"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>
2021-07-07Port fe7b3ba63 "linux-gen: fix print formats"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>
2021-07-07Port ffb5ab472 "linux-gen: pktio: configure pktout in TM mode internally"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>
2021-07-07Port e94c28af5 "linux-gen: ipsec: add configurable ordering mode"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>
2021-07-07Port 62a3c67ba "example: ipsec_api: enhance runtime scripts"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>
2021-07-02Merge tag 'v1.30.0.0' of https://github.com/OpenDataPlane/odp into odp-dpdkMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2021-06-18linux-dpdk: pktio: use names other than index also as dpdk portsVijay Ram Inavolu
setup_pkt_dpdk() only allows netdev string to be a port number. This is to allow passing all other supported DPDK ports as well. Signed-off-by: Vijay Ram Inavolu <vinavolu@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-06-11linux-dpdk: pktio: don't enable input hashing automaticallyMatias Elo
Don't enable input hashing automatically. An application may reasonably expect that all packets will end up in the same input queue when input hashing is not enabled in odp_pktin_queue_param_t. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-06-11linux-dpdk: pktio: don't fail on unsupported input hash protocolMatias Elo
Since there is no capability for the supported input hash protocols it's better to just print a debug message instead of fail odp_pktin_queue_config() if an unsupported input hash protocol was selected. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-06-01linux-gen: hash: fix conversion warningMatias Elo
Fix conversion warning "uint32_t {aka unsigned int}' from 'long long unsigned int' may alter its value". Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-06-01linux-gen: timer: new timer set return codesPetri Savolainen
Replace timer set return codes with the new ones. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-05-31linux-gen: timer: use default clock source enumPetri Savolainen
Replace ODP_CLOCK_CPU with ODP_CLOCK_DEFAULT. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-05-31linux-gen: hash: fix conversion warningMatias Elo
Fix conversion warning "uint32_t {aka unsigned int}' from 'long long unsigned int' may alter its value". Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31linux-dpdk: pktio: implement in_packets/out_packets countersMatias Elo
Implement new odp_pktio_stats_t.in_packets/out_packets packet IO statistics counters. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31linux-dpdk: pktio: remove usage of deprecated in_unknown_protos counterMatias Elo
odp_pktio_stats_t.in_unknown_protos statistics counter has been deprecated. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31Port 5ea399262 "linux-gen: implement odp_thread_set_log_fn()"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>
2021-05-31Port 769982d95 "linux-gen: thread: in global termination, check number of ↵Matias Elo
active threads" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31Port e86f6215a "linux-gen: init: fix odp_term_local() return value"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>
2021-05-31Port 1b1439920 "linux-gen: thread: set _odp_this_thread to NULL in term_local"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>
2021-05-31Port 9ad17ef53 "linux-gen: reass: add minimal support for reassembly API"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>
2021-05-31Port 1c8d7a54b "linux-gen: sched: use odp_global_rw for storing scheduler ↵Matias Elo
config status" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31Port 50fdac45f "linux-gen: detect cpu cache line size during configure"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>
2021-05-31Port 5b72b4ea9 “linux-gen: sysinfo: enable detecting cpu cache line size ↵Matias Elo
on arm hosts" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31Port 19ec29b30 "linux-gen: pktio: update LSO 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>
2021-05-31Port fb6cd2a89 "linux-gen: init: remove unused RANDOM_INIT stage"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>
2021-05-31Port f4dffdf0b "linux-gen: hash: use x86 crc32 instructions"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>
2021-05-31linux-gen: time: implement strict time stamp read functionsPetri Savolainen
Implemented strict versions of local and global time stamp read functions. Moved time register read code into inline functions on ARMv8. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-31linux-gen: shm: avoid potential integer overflowJere Leppänen
In _odp_ishmbud_alloc(), avoid integer overflow when calculating the maximum allocation size. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-05-31linux-gen: fdserver: check unix socket path lengthJere Leppänen
Make sure that path length is within the sockaddr_un::sun_path limit when connecting unix sockets. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-05-31linux-gen: ipsec: enable success bytes in statsAakash Sasidharan
Enable success bytes reporting in IPsec stats. Signed-off-by: Aakash Sasidharan <asasidharan@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-05-31linux-gen: tm: add implementation of TM start/stopNithin Dabilpuram
Add implementation of TM start or stop API. Since linux generic platform does not have any setup and cleanup constraints, the TM start/stop are a no-op. Also report support for all dynamic updates. Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-05-31linux-gen: tm: use commit_rate and peak_rate in shaper paramNithin Dabilpuram
Use commit_rate and peak_rate fields in odp_tm_shaper_params_t instead of commit_bps and peak_bps as *_rate fields denote rate in BPS when byte mode is set and PPS when packet mode is set. Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-05-27Merge tag 'v1.29.0.0' of https://github.com/OpenDataPlane/odp into odp-dpdkMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2021-05-26linux-dpdk: comment empty functionsMatias Elo
Static code checker complains about empty functions. Add a line of code or a comment into each function. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26linux-dpdk: fix running make checkMatias Elo
Avoid 'make check' failures from trying to create test suite log from wrapper-script.sh. This is caused by dist_check_SCRIPTS being included in TESTS. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26linux-dpdk: eventdev: fix uninitialized usage warningMatias Elo
Fix uninitialized usage warning thrown by GCC with CFLAGS=-O1. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26Port 264cdcc2d "ci: add build job with modified scheduler config"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>
2021-05-26Port 92a96ca77 "linux-gen: add stub implementation for pktout tx completion"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>
2021-05-26Port 5488df661 "linux-gen: add stub implementation for packet aging API"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>
2021-05-26Port 07e9c1663 "linux-gen: crypto: set completion queue capability"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>
2021-05-26Port 274a8a765 "linux-gen: queue_lf: move aarch64 specific code to arch 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>
2021-05-26Port e222d5ec9 "linux-gen: atomics: implement 128-bit operations using gcc ↵Matias Elo
builtins" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26Port 38d14afdc "linux-gen: atomic: move odp_atomic_lock_free implementations ↵Matias Elo
under arch" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26Port f09a85f0f "linux-gen: atomic: reorganize architecture specific ↵Matias Elo
implementations" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-26Port 019cea916 "build: don't run tests in parallel"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>