summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2/l2_fwd.c
diff options
context:
space:
mode:
authorBilly McFall <bmcfall@redhat.com>2016-09-09 08:46:40 -0400
committerDave Wallace <dwallacelf@gmail.com>2016-09-13 02:06:48 +0000
commit22aa3e970da0f0c772c5a16103a5dcf1f2875285 (patch)
tree5945d6b0dba816d5572ba766e1ddc5246934e5e2 /vnet/vnet/l2/l2_fwd.c
parent1732fc1ab851c454a74efda47a383f48691d545a (diff)
VPP-288: Documentation changes via doxygen for vnet/vnet/l2.
Change-Id: I55b552fd054610c993d14078ce048c8c4b676104 Signed-off-by: Billy McFall <bmcfall@redhat.com>
Diffstat (limited to 'vnet/vnet/l2/l2_fwd.c')
-rw-r--r--vnet/vnet/l2/l2_fwd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/vnet/vnet/l2/l2_fwd.c b/vnet/vnet/l2/l2_fwd.c
index 8fa355e01a0..586aa3d4206 100644
--- a/vnet/vnet/l2/l2_fwd.c
+++ b/vnet/vnet/l2/l2_fwd.c
@@ -31,6 +31,15 @@
#include <vppinfra/sparse_vec.h>
+/**
+ * @file
+ * @brief Ethernet Forwarding.
+ *
+ * Code in this file handles forwarding Layer 2 packets. This file calls
+ * the FIB lookup, packet learning and the packet flooding as necessary.
+ * Packet is then sent to the next graph node.
+ */
+
typedef struct
{
@@ -454,6 +463,17 @@ done:
return error;
}
+/*?
+ * Layer 2 unicast forwarding can be enabled and disabled on each
+ * interface and on each bridge-domain. Use this command to
+ * manage interfaces. It is enabled by default.
+ *
+ * @cliexpar
+ * Example of how to enable fowarding:
+ * @cliexcmd{set interface l2 forward GigabitEthernet0/8/0}
+ * Example of how to disable fowarding:
+ * @cliexcmd{set interface l2 forward GigabitEthernet0/8/0 disable}
+?*/
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (int_fwd_cli, static) = {
.path = "set interface l2 forward",