memif: multi-queues support 38/6938/6
authorSteven <sluong@cisco.com>
Tue, 30 May 2017 17:35:51 +0000 (10:35 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 31 May 2017 02:27:45 +0000 (02:27 +0000)
commitc2ebcbb89bea719418fc3f896ae3de4302acaf6d
tree7b035f314305d100c1c1c482887581739d96f987
parent79ea7ec3b3c04d334a21107818c64d70c42b99ae
memif: multi-queues support

- Add rx-queues and tx-queues option to the create memif CLI
- Add vlib_worker_thread_barrier_sync () to memif_conn_fd_read_ready () as
the latter function may disconnect the ring and clean up the shared memory.
- On transmit, write the rid (queue number) to the socket.
- On receive, read the rid and trigger the interrupt for the corresponding
thread.

Change-Id: If1c7e26c7124174678f047909cbc33e931eaac8c
Signed-off-by: Steven <sluong@cisco.com>
src/plugins/memif/cli.c
src/plugins/memif/device.c
src/plugins/memif/memif.api
src/plugins/memif/memif.c
src/plugins/memif/memif.h
src/plugins/memif/memif_api.c
src/plugins/memif/node.c