docs ethernet: add docs for ethernet Section 83/25583/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 2 Mar 2020 21:10:54 +0000 (16:10 -0500)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 27 Mar 2020 16:12:45 +0000 (16:12 +0000)
Type: docs

Change-Id: I6ad92b35df3e0fecb1334511625eacf3e3d8925f
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
docs/gettingstarted/users/configuring/startup.rst
src/vnet/ethernet/interface.c

index afac8b2..f80d55c 100644 (file)
@@ -1044,6 +1044,20 @@ a random, non-static entry is deleted. Defaults to 65535 entries.
 
    max-cache-size 65535
 
+
+ethernet Section
+-----------------
+
+default-mtu <n>
+^^^^^^^^^^^^^^^
+
+Specifies the default MTU size for Ethernet interfaces.  Must be in
+the range of 64-9000.  The default is 9000.
+
+.. code-block:: console
+
+   default-mtu 1500
+
 heapsize Section
 -----------------
 
index 3b9093c..629f190 100644 (file)
@@ -1192,6 +1192,13 @@ VLIB_CLI_COMMAND (delete_sub_interface_command, static) = {
 };
 /* *INDENT-ON* */
 
+/* ethernet { ... } configuration. */
+/*?
+ *
+ * @cfgcmd{default-mtu &lt;n&gt;}
+ * Specify the default mtu in the range of 64-9000. The default is 9000 bytes.
+ *
+ */
 static clib_error_t *
 ethernet_config (vlib_main_t * vm, unformat_input_t * input)
 {