netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next] man: document tunnel options in ip-route.8.in
@ 2025-03-03 19:32 Xin Long
  2025-03-10  0:06 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Long @ 2025-03-03 19:32 UTC (permalink / raw)
  To: network dev, David Ahern, stephen
  Cc: Paolo Abeni, Marcelo Ricardo Leitner, Andrea Claudi, Jan Tluka,
	olichtne, wenxu

Add missing tunnel options [GENEVE_OPTS | VXLAN_OPTS | ERSPAN_OPTS] and
their descriptions to ip-route.8.in.

Additionally, document each parameter of the ip ENCAPHDR section, aligning
it with the style used for other ENCAPHDR descriptions. Most of the
content is adapted from tc-tunnel_key.8 for consistency.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
 man/man8/ip-route.8.in | 63 +++++++++++++++++++++++++++++++++++++-----
 1 file changed, 56 insertions(+), 7 deletions(-)

diff --git a/man/man8/ip-route.8.in b/man/man8/ip-route.8.in
index 69d445ef..ccad430b 100644
--- a/man/man8/ip-route.8.in
+++ b/man/man8/ip-route.8.in
@@ -216,7 +216,13 @@ throw " | " unreachable " | " prohibit " | " blackhole " | " nat " ]"
 .B tos
 .IR TOS " ] ["
 .B  ttl
-.IR TTL " ]"
+.IR TTL " ] ["
+.BR key " ] ["
+.BR csum " ] ["
+.BR seq " ] ["
+.IR GENEVE_OPTS " | "
+.IR VXLAN_OPTS " | "
+.IR ERSPAN_OPTS " ]"
 
 .ti -8
 .IR ENCAP_BPF " := "
@@ -783,15 +789,58 @@ is a set of encapsulation attributes specific to the
 .in +2
 .B id
 .I TUNNEL_ID
+- Tunnel ID (for example VNI in VXLAN tunnel)
+.sp
+
 .B  dst
-.IR REMOTE_IP " [ "
+.I REMOTE_IP
+- Outer header destination IP address (IPv4 or IPv6)
+.sp
+
 .B src
-.IR SRC " ] ["
+.I SRC
+- Outer header source IP address (IPv4 or IPv6)
+.sp
+
 .B tos
-.IR TOS " ] ["
-.B  ttl
-.IR TTL " ] [ "
-.BR key " ] [ " csum " ] [ " seq " ] "
+.I TOS
+- Outer header TOS
+.sp
+
+.B ttl
+.I TTL
+- Outer header TTL
+.sp
+
+.B key
+- Outer header flags with key in GRE tunnel
+.sp
+
+.B csum
+- Outer header flags with csum in GRE tunnel
+.sp
+
+.B seq
+- Outer header flags with seq in GRE tunnel
+.sp
+
+.I GENEVE_OPTS
+- Pecified in the form CLASS:TYPE:DATA, where CLASS is represented as a
+16bit hexadecimal value, TYPE as an 8bit hexadecimal value and DATA as a
+variable length hexadecimal value. Additionally multiple options may be
+listed using a comma delimiter.
+.sp
+
+.I VXLAN_OPTS
+- Pecified in the form GBP, as a 32bit number. Multiple options is not
+supported.
+.sp
+
+.I ERSPAN_OPTS
+- Pecified in the form VERSION:INDEX:DIR:HWID, where VERSION is represented
+as a 8bit number, INDEX as an 32bit number, DIR and HWID as a 8bit number.
+Multiple options is not supported. Note INDEX is used when VERSION is 1,
+and DIR and HWID are used when VERSION is 2.
 .in -2
 .sp
 
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2-next] man: document tunnel options in ip-route.8.in
  2025-03-03 19:32 [PATCH iproute2-next] man: document tunnel options in ip-route.8.in Xin Long
@ 2025-03-10  0:06 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2025-03-10  0:06 UTC (permalink / raw)
  To: Xin Long
  Cc: network dev, David Ahern, Paolo Abeni, Marcelo Ricardo Leitner,
	Andrea Claudi, Jan Tluka, olichtne, wenxu

On Mon,  3 Mar 2025 14:32:48 -0500
Xin Long <lucien.xin@gmail.com> wrote:

> +
> +.I GENEVE_OPTS
> +- Pecified in the form CLASS:TYPE:DATA, where CLASS is represented as a
> +16bit hexadecimal value, TYPE as an 8bit hexadecimal value and DATA as a
> +variable length hexadecimal value. Additionally multiple options may be
> +listed using a comma delimiter.
> +.sp
> +
> +.I VXLAN_OPTS
> +- Pecified in the form GBP, as a 32bit number. Multiple options is not
> +supported.
> +.sp
> +
> +.I ERSPAN_OPTS
> +- Pecified in the form VERSION:INDEX:DIR:HWID, where VERSION is represented
> +as a 8bit number, INDEX as an 32bit number, DIR and HWID as a 8bit number.
> +Multiple options is not supported. Note INDEX is used when VERSION is 1,
> +and DIR and HWID are used when VERSION is 2.
>  .in -2

Please run spell check on any documentation changes.
I think you meant "Specified" not Pecified

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-10  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 19:32 [PATCH iproute2-next] man: document tunnel options in ip-route.8.in Xin Long
2025-03-10  0:06 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).