aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk
AgeCommit message (Collapse)Author
2022-06-20linux-dpdk: pool: header include clean-upMatias Elo
Add missing, remove unnecessary, and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2022-06-20Port be306d8c0 "linux-gen: schedule: implement odp_schedule_order_wait()"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-06-20Port 75260118d "linux-gen: packet: add missing subtype metadata to ↵Matias Elo
_odp_packet_copy_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-06-20Port 82d0da39f "linux-gen: macros: prefix implementation internal macro names"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-06-20Port 12d3afa2d "linux_gen: remove crypto error from packet error flags"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-06-20Port 11f963aed "linux-gen: packet: put crypto and ipsec results in a union ↵Matias Elo
in packet hdr" 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-06-01linux-dpdk: fix distcleanTuomas Taipale
When making `distclean`, the operation fails while handling `dumpconfig` as build files (which are currently referenced via a symlink) are removed in a previous step. Fix this by creating own `dumpconfig` folder for `linux-dpdk` tree. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-05-30linux-dpdk: pktio: increase default rx and tx descriptor countsMatias Elo
Increase default number of RX and TX descriptors to 1024 for improved packet forwarding performance. Use rte_eth_dev_adjust_nb_rx_tx_desc() to adjust descriptor counts automatically to values supported by the used poll mode driver. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-30linux-dpdk: pktio: refactor statistic countersMatias Elo
Remove old unused RX counters (DPDK counters are used instead) and utilize correct atomic counter for packets discarded by ODP software. Add missing capability for outbound discarded packets. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-30linux-dpdk: pktio: refactor pkt_dpdk_t structMatias Elo
Refactor pkt_dpdk_t struct by collecting fast path data to the beginning of the struct. Unused 'ifname' member has been removed. As a result, the maximum size of pkt_dpdk_t has been reduced from 1536 bytes (with 128 byte cache lines) to 1408 bytes. With more common 64 byte cache line size only 1216 bytes are required. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-30linux-dpdk: pktio: remove unnecessary errno read/write from sendMatias Elo
DPDK API does not specify that rte_errno is set after rte_eth_tx_burst() failures, so remove the unnecessary code. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25README.DPDK: list dpdk v21.11 as supportedMatias Elo
List DPDK v21.11 as supported version. All HTTP links have been converted to HTTPS. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25linux-dpdk: packet: fix maybe-uninitialized warningMatias Elo
Avoid GCC 10/11 maybe-uninitialized warning on arm64. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25linux-dpdk: pktio: header include clean-upMatias Elo
Add missing, remove unnecessary, and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25linux-dpdk: pktio: fix packet parse failure handlingMatias Elo
Add missing handling for packets which were dropped due to packet parsing failures. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25Port 76c8b7a1a "linux-gen: parse: remove unused *_packet_parse_layer() ↵Matias Elo
functions" Port original commit from linux-generic. ODP-DPDK specific DPDK pktio header is no longer required. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25Port ae347d563 "linux-gen: pktio: always call *_packet_parse_common()"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>
2022-05-25Port d7b705a71 "linux-gen: dpdk: add support for DPDK 21.11"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>
2022-05-25Port 223e2d2e8 "linux-gen: dpdk: check rte_eth_dev_info_get() return value"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>
2022-05-25Port 9e464f4ce "linux-gen: time: inline odp_time_diff_ns() function"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>
2022-05-25Port 346e832be "linux-gen: packet_flags: inline has error 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>
2022-05-25Port 65b9e351d "linux-gen: packet: inline packet getter 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>
2022-05-25Port bf79d7ede "linux-gen: packet_flags: inline input flags getter 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>
2022-05-25Port 4675d95b2 "linux-gen: pktio: use uint32_t for number of queues"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>
2022-05-25Port 561e5457c "linux-gen: define a 128-bit integer type"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>
2022-05-25Port c328a705a "linux-gen: pktio: implement packet aging"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>
2022-05-25Port 9c4f7863c "linux-gen: packet: implement packet aging API"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>
2022-05-25Port 43e4ead4c "linux-gen: drop error packets according to pktin configuration"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>
2022-05-25Port 0316d4fab "linux-gen: parse: prefix non-static 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>
2022-05-25Port 3924507d7 "linux-gen: packet: move parse functions to new source 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>
2022-05-25Port 37072db5a "linux-gen: cls: move parse call out of ↵Matias Elo
_odp_cls_classify_packet()" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-05-25Port d494be4f7 "linux-gen: pktio: fix classification result handling"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>
2022-05-25Port b81e13439 "linux-gen: timer: inline small timer 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>
2022-05-25Port beffb1277 "abi: timer: add necessary files for function inlining"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>
2022-05-25Port 9ccb85381 "api: crypto: deprecate odp_crypto_operation()"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>
2022-05-25Port 4eee6de84 "api: event: split header file"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>
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>