X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=vnet%2Fvnet%2Fl2%2Fl2_xcrw.c;h=70610a853d3ac8afe13769c95ff95238bf501558;hb=f530a5526a1f501462ff4247a5bb38e80c13678d;hp=95219e6e9f0225aa793d349528800f38e9969a91;hpb=97d8dc2317780740af5faa3dc205d95d838fbd04;p=vpp.git diff --git a/vnet/vnet/l2/l2_xcrw.c b/vnet/vnet/l2/l2_xcrw.c index 95219e6e9f0..70610a853d3 100644 --- a/vnet/vnet/l2/l2_xcrw.c +++ b/vnet/vnet/l2/l2_xcrw.c @@ -14,7 +14,8 @@ */ #include -/* +/** + * @file * General L2 / L3 cross-connect, used to set up * "L2 interface <--> your-favorite-tunnel-encap" tunnels. * @@ -474,11 +475,23 @@ set_l2_xcrw_command_fn (vlib_main_t * vm, return 0; } +/*? + * Add or delete a Layer 2 to Layer 3 rewrite cross-connect. This is + * used to hook Layer 2 interface(s) up to the Layer 3 stack in + * arbitrary ways. For example, cross-connect an L2 interface or + * (future) bridge to an mpls-o-gre tunnel. Set up the L2 rewrite + * string as shown in mpls_gre_rewrite, and use \"mpls-post-rewrite\" + * to fix the GRE IP header checksum and length fields. + * + * @cliexpar + * @todo This is incomplete. This needs a detailed description and a + * practical example. +?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (set_l2_xcrw_command, static) = { .path = "set interface l2 xcrw", .short_help = - "set int l2 xcrw next \n" + "set interface l2 xcrw next \n" " [del] [tx-fib-id ] [ipv6] rw ", .function = set_l2_xcrw_command_fn, }; @@ -554,10 +567,17 @@ show_l2xcrw_command_fn (vlib_main_t * vm, return 0; } +/*? + * Display a Layer 2 to Layer 3 rewrite cross-connect. This is used to + * hook Layer 2 interface(s) up to the Layer 3 stack in arbitrary ways. + * + * @todo This is incomplete. This needs a detailed description and a + * practical example. +?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_l2xcrw_command, static) = { .path = "show l2xcrw", - .short_help = "Display L2/L3 rewrite cross-connects", + .short_help = "show l2xcrw", .function = show_l2xcrw_command_fn, }; /* *INDENT-ON* */