From: Paul Vinciguerra Date: Mon, 2 Mar 2020 21:10:54 +0000 (-0500) Subject: docs ethernet: add docs for ethernet Section X-Git-Tag: v20.09-rc0~323 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=491741a40443a66edd497bb15007198404500352;hp=5ac392dc41c1d42d88f3790d2a6aa26427affc7a;p=vpp.git docs ethernet: add docs for ethernet Section Type: docs Change-Id: I6ad92b35df3e0fecb1334511625eacf3e3d8925f Signed-off-by: Paul Vinciguerra --- diff --git a/docs/gettingstarted/users/configuring/startup.rst b/docs/gettingstarted/users/configuring/startup.rst index afac8b26734..f80d55c03df 100644 --- a/docs/gettingstarted/users/configuring/startup.rst +++ b/docs/gettingstarted/users/configuring/startup.rst @@ -1044,6 +1044,20 @@ a random, non-static entry is deleted. Defaults to 65535 entries. max-cache-size 65535 + +ethernet Section +----------------- + +default-mtu +^^^^^^^^^^^^^^^ + +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 ----------------- diff --git a/src/vnet/ethernet/interface.c b/src/vnet/ethernet/interface.c index 3b9093c6031..629f190f9f8 100644 --- a/src/vnet/ethernet/interface.c +++ b/src/vnet/ethernet/interface.c @@ -1192,6 +1192,13 @@ VLIB_CLI_COMMAND (delete_sub_interface_command, static) = { }; /* *INDENT-ON* */ +/* ethernet { ... } configuration. */ +/*? + * + * @cfgcmd{default-mtu <n>} + * 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) {