aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorCarl Wallen <carl.wallen@linaro.org>2013-12-22 13:21:30 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2013-12-23 16:06:29 +0400
commit7feca9ed4c211f3a5c685d0cd229f652eee2c41b (patch)
tree6cc96f0249d0c621100285373ad8fc4cb4727300 /.gitignore
parent341a88c5b69851bc9a91ae2dc0a9349ab1008f91 (diff)
Connected packet IO and ODP queues
ODP queues can now be used to directly send and receive packets in the application. Currently only support using one default queue for receive and one default queue for transmit for each packet IO resource. The application needs to create the input queue and associate the queue with the packet IO resource (handle) by calling: input_queue = odp_queue_create(name, ODP_QUEUE_TYPE_PKTIN, param); odp_pktio_inq_setdef(pktio_handle, input_queue); Receive packets by calling: /* Use schedule to get buf from any input queue */ buf = odp_schedule_poll(); OR /* Dequeue from a specific input queue */ buf = odp_queue_deq(input_queue); Each packet IO resource is by default associated with one default output queue so the application only needs to query which queue to use to send packets: output_queue = odp_pktio_outq_getdef(pktio_handle); Transmit packets by calling: odp_queue_enq(output_queue, buf); An example is included in odp/test/packet/odp_example_packet.c: $> sudo ./packet/odp_packet -ieth2,eth5,eth6,eth7 -m 1 ... ... print number of packets received by each application thread ... Help: Usage: odp_packet OPTIONS E.g. odp_packet -i eth1,eth2,eth3 -m 0 OpenDataPlane example application. Mandatory OPTIONS: -i, --interface Eth interfaces (comma-separated, no spaces) -m, --mode 0: Burst send&receive packets (no queues) 1: Send&receive packets through ODP queues. Optional OPTIONS -h, --help Display help and exit. Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 24a9392b7..334234395 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,8 @@
*.d
*~
lib/
-test/odp_app
-
+obj/
+test/example/odp_example
+test/packet/odp_packet
+test/api_test/odp_atomic
+test/api_test/odp_shm