examples/ntb: add example for NTB
authorXiaoyun Li <xiaoyun.li@intel.com>
Tue, 2 Jul 2019 06:25:21 +0000 (14:25 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Jul 2019 10:50:19 +0000 (12:50 +0200)
commitc5eebf85badc34b1fda702f087200ce934f31ec1
treea6bbea4a86cb64e4f3d0416263568d3b6251e3a7
parent62012a76811ec1344231fee57a056bd1f5ab9dde
examples/ntb: add example for NTB

Enable an example for rawdev ntb. Support interactive mode to send
file on one host and receive file from another host. The command line
would be 'send [filepath]' and 'receive [filepath]'.

But since the FIFO is not enabled right now, use rte_memcpy as the enqueue
and dequeue functions and only support transmitting file no more than 4M.

Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
MAINTAINERS
doc/guides/sample_app_ug/index.rst
doc/guides/sample_app_ug/ntb.rst [new file with mode: 0644]
drivers/raw/ntb/ntb.c
examples/Makefile
examples/meson.build
examples/ntb/Makefile [new file with mode: 0644]
examples/ntb/meson.build [new file with mode: 0644]
examples/ntb/ntb_fwd.c [new file with mode: 0644]