aboutsummaryrefslogtreecommitdiffstats
path: root/extras/gomemif/README.rst
diff options
context:
space:
mode:
authorDaniel Béreš <dberes@cisco.com>2022-07-27 12:22:39 +0000
committerBeno�t Ganne <bganne@cisco.com>2022-10-06 12:22:07 +0000
commit82ec908acbab63af64b1b912babcab9a16d9f0e6 (patch)
tree496d633c09fbb1634ab23bbcc1e9d1efbb6970bb /extras/gomemif/README.rst
parenta58055d6b205426780e2737d3d66bbd872732d78 (diff)
gomemif: update to libmemif version 4.0
Type: improvement This patch provides: 1. interrupt mode support, 2. abstract socket support, 3. overriding responder example and divides it to two examples: -icmp_responder_cb -icmp_responder_poll Signed-off-by: Daniel Béreš <dberes@cisco.com> Change-Id: I99c86d053521760c457541fc596ed554f4077608
Diffstat (limited to 'extras/gomemif/README.rst')
-rw-r--r--extras/gomemif/README.rst50
1 files changed, 50 insertions, 0 deletions
diff --git a/extras/gomemif/README.rst b/extras/gomemif/README.rst
new file mode 100644
index 00000000000..18f382893c9
--- /dev/null
+++ b/extras/gomemif/README.rst
@@ -0,0 +1,50 @@
+.. _gomemif_doc:
+
+Gomemif library
+=======================
+
+Memif library implemented in Go. The package contains 3 examples: Bridge and ICMP responder in interrupt and polling mode.
+
+setup and run
+-------------
+To Build all examples
+
+::
+
+ bazel build //...
+
+To Run ICMP responder in interrupt mode:
+
+::
+
+ DBGvpp# create interface memif id 0 master no-zero-copy
+ DBGvpp# set int ip addr memif0/0 192.168.1.2/24
+ DBGvpp# set int state memif0/0 up
+
+ bazel-bin/examples/linux_amd64_stripped/icmp_responder_cb
+ gomemif# start
+
+ DBGvpp# ping 192.168.1.1
+
+To Run ICMP responder in polling mode:
+
+::
+
+ DBGvpp# create interface memif id 0 master no-zero-copy
+ DBGvpp# set int ip addr memif0/0 192.168.1.2/24
+ DBGvpp# set int state memif0/0 up
+
+ bazel-bin/examples/linux_amd64_stripped/icmp_responder_poll
+ gomemif# start
+
+ DBGvpp# ping 192.168.1.1
+
+To Run Bridge:
+
+::
+
+ bazel-bin/examples/linux_amd64_stripped/bridge
+ gomemif# start
+
+
+