Skip to contentSkip to conversation

erspan: add erspan usage description

PATCH Applied William Tu 2 participants 2 messages Dec 26, 2017 – Dec 27, 2017

Subsystems (2)
lore
Share & tools
lore

William Tu

author
#0 lore raw

PATCH 1/1 erspan: add erspan usage description

The patch adds erspan usage description, so 'ip link help erspan' and 'ip link help ip6erspan' shows the options.

---
 ip/link_gre.c  | 4 ++++
 ip/link_gre6.c | 4 ++++
 2 files changed, 8 insertions(+)
ip/link_gre.c +4 -0
index 0b9c71baebaf..65ad8bad4b82 100644
@@ -44,7 +44,11 @@ static void print_usage(FILE *f)
 		"                            [ [no]encap-csum6 ]\n"
 		"                            [ [no]encap-remcsum ]\n"
 		"                            [ fwmark MARK ]\n"
+		"                            [ erspan_ver version ]\n"
 		"                            [ erspan IDX ]\n"
+		"                            [ erspan_dir { ingress | egress } ]\n"
+		"                            [ erspan_hwid hwid ]\n"
+		"                            [ external ]\n"
 		"\n"
 		"Where: ADDR := { IP_ADDRESS | any }\n"
 		"       TOS  := { NUMBER | inherit }\n"
ip/link_gre6.c +4 -0
index e4a8e1f5ee41..cb621806261c 100644
@@ -52,7 +52,11 @@ static void print_usage(FILE *f)
 		"                                  [ [no]encap-csum ]\n"
 		"                                  [ [no]encap-csum6 ]\n"
 		"                                  [ [no]encap-remcsum ]\n"
+		"                                  [ erspan_ver version ]\n"
 		"                                  [ erspan IDX ]\n"
+		"                                  [ erspan_dir { ingress | egress } ]\n"
+		"                                  [ erspan_hwid hwid ]\n"
+		"                                  [ external ]\n"
 		"\n"
 		"Where: ADDR      := IPV6_ADDRESS\n"
 		"       TTL       := { 0..255 } (default=%d)\n"
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 8 lines · William Tu

The patch adds erspan usage description, so 'ip link help erspan' and 'ip link help ip6erspan' shows the options.

---
 ip/link_gre.c  | 4 ++++
 ip/link_gre6.c | 4 ++++
 2 files changed, 8 insertions(+)

Applied to net-next. Thanks, William.