aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include/odp_packet_io_internal.h
AgeCommit message (Collapse)Author
2018-05-15Port 49c671e8, 11207ff1, 3abbe8b7, f49289a7v1.19.0.1_DPDK_17.1Petri Savolainen
Fix build issues from the latest merge. These commits needed porting: 49c671e8 odp: pktio: add pcapng capture capabilities 11207ff1 linux-gen: use inlined event type function 3abbe8b7 linux-gen: event: inline event_type function f49289a7 linux-gen: buffer: remove buffer_inlines header file Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>i Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-04-30linux-dpdk: clean header includesMatias Elo
Remove odp_packet_dpdk.h and include only the required dpdk headers. Also, make sure rte_config.h is included before other dpdk headers. Signed-off-by: Matias Elo <matias.elo@nokia.com>
2018-04-05linux-dpdk: fix various style problemsMatias Elo
Fix various checkpatch style warnings and errors. Signed-off-by: Matias Elo <matias.elo@nokia.com>
2018-04-04Port 534667d "linux-gen: add runtime configuration file"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2018-03-22Port 733ab61 "update Linaro Copyrights to 2018 year"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-03-22Port bfa24c0 "linux-gen: pktio: inline pktio index function"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-03-22Port 91b127d "linux-generic: pktio: add null pktio support"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-03-22Port 5e064cd "linux-generic: pktio: genuinely sleep in timeout receive"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19linux-dpdk: port ID is 2 bytes longMatias Elo
Starting from DPDK v17.05 port ID is 2 bytes long. Also, unify port ID variable naming. Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19linux-dpdk: pktio: implement MAC address set functionMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19Port b041ee9 "linux-gen: dpdk: checksum insert enabled flag"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19Port 1af98e5 "linux-gen: dpdk: fix maximum frame length value"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19Port a7b3fbd "linux-gen: loop: support multiple loop devices"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19Port 5329e52 "linux-gen: pktio: add pktio capability to pktio_entry_t"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-19Port 163f57d "linux-gen: dpdk: reorganize pkt_dpdk_t struct"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-01-30Port dca4f5b "linux-gen: pktio: drop/staticize leftovers from single queue shim"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2018-01-30Port 08863bb "linux-gen: pktio: convert queue handle only once"Matias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com>
2017-04-21linux-dpdk: fixing inlines and macros renamingBalakrishna Garapati
Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org> Reviewed-and-tested-by: Yi He <yi.he@linaro.org>
2017-04-21linux-dpdk: clean up macrosBalakrishna Garapati
porting "commit-ID: c15da68b8dc3187c1929ff7d7705a0958856cbad" from odp. Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org> Reviewed-and-tested-by: Yi He <yi.he@linaro.org>
2016-07-22Port 2fc98f7b "linux-gen: sched: add pktio_stop_finalize to scheduler interface"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-07-22Port 41ab23c8 "linux-gen: pktio: simplify state handling"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-13Port 11d993c4 "linux-gen: pktio: remove old single queue recv and send ↵Zoltan Kiss
functions" Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-13Port bd18047a "linux-gen: pktio: don't allocate new packets in classifier"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02linux-dpdk: loop: fix missing includeZoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02Port 637a4826 "linux-generic: schedule: clean interface towards pktio"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02Port 2d0b42ca "api: pktio: define input array as const"Zoltan Kiss
The const qualifier have to be removed because DPDK doesn't have that, but we can't afford a copy of the array on the fast path. Ideally DPDK should not modify it anyway. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02Port fad5fec3 "linux-generic: pktio: add pktio type specific print function"Zoltan Kiss
Plus remove a stale include Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02Port 31462eea "linux-generic: pktio: implement odp_pktio_config()"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02linux-dpdk: packet: implement classification and fix discard statsZoltan Kiss
This is largely based on these patches: 9f4672bd linux-generic: classification: release the packet as soon as an error happens 12558212 linux-generic: pktio: classification error handling fixes for loop And it records discarded packets when min > len. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02linux-dpdk: packet: implement timestamp supportZoltan Kiss
Port of these patches: 6f18981a linux-generic: packet: implement timestamp support f6226cb7 linux-generic: packet: add inline helper function for setting packet timestamp 5406686c linux-generic: pktio: implement odp_pktin_ts_res() 689c1238 linux-generic: pktio: implement odp_pktin_ts_from_ns() Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-06-02Port 8b87bcf3 "linux-generic: packet_io: fix state handling"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-05-26Port "api: pool: add pool capability" seriesZoltan Kiss
The following patches were ported: 9ca19730 api: config: replace pool config with pool capability 64f8fa21 api: queue: replaced config api with capability structure 7a56ae3e api: config: removed config.h Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "1db8328b linux-generic: pktio: simplify callback interface"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "60b570d6 api: queue: remove queue type pktin and pktout"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "4a47f53b api: pktio: changed odp_pktio_mtu() return value to uint32_t"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "2dae4b1b api: pktio: added pktio info structure"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "e4ac2e3a linux-generic: pktio: pktout event queues"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "608c2404 linux-generic: pktio: add separate functions for global and ↵Zoltan Kiss
local init" Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-03-30Port "98e20f0a api and linux-generic: make room for new api"Zoltan Kiss
The following command were run: git grep -l "#include <odp/[a-z_]*.h" platform/linux-dpdk | xargs sed -i s/"#include <odp\/\([a-z_]*\).h"/"#include <odp\/api\/\1.h"/g git grep -l "#include <odp\/plat\/[a-z_]*.h" platform/linux-dpdk | xargs sed -i s/"#include <odp\/plat\/\([a-z_]*\).h"/"#include <odp\/api\/plat\/\1.h"/g A few references to the new spec directory fixed, and a bunch of symlinks edited. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-25linux-dpdk: packet_io: call rte_eth_dev_close() only when safeZoltan Kiss
When the port has never been started, calling close might crash. To work around this bug this patch maintains the state. Reported-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-25linux-dpdk: packet_io: implement multiqueue supportZoltan Kiss
A lot of code comes from linux-generic's DPDK implementation. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-10Port "dd3b06b linux-generic: sockets: implement pktio statistics"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-10Port "009899e linux-generic: pktio: implement odp_pktio_link_status()"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-10Port "4eb6dea linux-generic: pktio: added scheduler multi-queue support"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-10Port "20c77dc linux-generic: pktio: enable using PKTIO_MAX_QUEUES in pktio ↵Zoltan Kiss
implementations" Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-02-10Port "5d290d2 linux-generic: pktio: dummy multi-queue pktio"Zoltan Kiss
And fold "04152dd api: pktio: renames for compact type and func names" into this. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2016-01-25linux-dpdk: packet_io: reuse linux-generic code and enable classificationZoltan Kiss
This patch reuses odp_packet_io.c and pktio/loop.c from linux-generic's codebase, and plugs the DPDK specific pieces from odp_packet_dpdk.c into that framework. In order to do that the following steps were taken: - sync up odp_packet_io_internal.h: this file is nearly the same, except we use only loop and our DPDK specific parts - move DPDK specific functionality to odp_packet_dpdk.c, and use those functions in dpdk_pktio_ops. The old pktio code will be deleted in a separate patch - enable classification in Makefiles and init: linux-generic code refers to that, that's why we can't do this in separate patches Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2015-12-10Port "7c7c3b8c api: packet_io: added odp_pktio_param_t"Zoltan Kiss
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2015-12-09linux-dpdk: pktio: check for pktio_start when started and pktio_stop when ↵Zoltan Kiss
stopped DPDK checks that too but it doesn't return an error, so we should maintain the status too. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
2015-07-27linux-dpdk: packet_io: use separate RX/TX locks and trylock for TX completionZoltan Kiss
Using separate locks can avoid a lot of contention. And TX completion should use trylock: if someone else does TX on that port, chances are buffers will be released soon. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> Reviewed-by: Ciprian Barbu <ciprian.barbu@linaro.org>