netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] iproute2 vxlan documentation update for bridge command
@ 2013-07-05  7:08 Thomas Richter
  2013-07-05  7:08 ` [PATCH 2/2] iproute2 vxlan documentation update for ip command Thomas Richter
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Richter @ 2013-07-05  7:08 UTC (permalink / raw)
  To: netdev; +Cc: Thomas Richter

The bridge fdb command line help and the bridge.8
man page are outdated in regards to the vxlan support.
The patch updates both the command line help for the
bridge command and its man page.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
---
 bridge/fdb.c      |  4 ++--
 man/man8/bridge.8 | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 62 insertions(+), 6 deletions(-)

diff --git a/bridge/fdb.c b/bridge/fdb.c
index 6aa5d0a..591fbbe 100644
--- a/bridge/fdb.c
+++ b/bridge/fdb.c
@@ -30,8 +30,8 @@ int filter_index;
 
 static void usage(void)
 {
-	fprintf(stderr, "Usage: bridge fdb { add | del } ADDR dev DEV {self|master} [ temp ] [router]\n"
-		        "              [ dst IPADDR] [ vlan VID ]\n"
+	fprintf(stderr, "Usage: bridge fdb { add | append | del } ADDR dev DEV {self|master} [ temp ]\n"
+		        "              [router] [ dst IPADDR] [ vlan VID ]\n"
 		        "              [ port PORT] [ vni VNI ] [via DEV]\n");
 	fprintf(stderr, "       bridge fdb {show} [ dev DEV ]\n");
 	exit(-1);
diff --git a/man/man8/bridge.8 b/man/man8/bridge.8
index 9be0c20..66678b5 100644
--- a/man/man8/bridge.8
+++ b/man/man8/bridge.8
@@ -44,12 +44,20 @@ bridge \- show / manipulate bridge addresses and devices
 .IR DEV " ]"
 
 .ti -8
-.BR "bridge fdb" " { " add " | " del " } "
+.BR "bridge fdb" " { " add " | " append " | " del " } "
 .I LLADDR
 .B  dev
 .IR DEV " { "
 .BR local " | " temp " } { "
-.BR self " } { " embedded " } "
+.BR self " } { " embedded " } { " router " } [ "
+.B  dst
+.IR IPADDR " ] [ "
+.B vni
+.IR VNI " ] ["
+.B port
+.IR PORT " ] ["
+.B via
+.IR DEVICE " ]"
 
 .ti -8
 .BR "bridge fdb" " [ " show " ] [ "
@@ -229,6 +237,7 @@ objects contain known Ethernet addresses on a  link.
 
 .P
 The corresponding commands display fdb entries, add new entries,
+append entries,
 and delete old ones.
 
 .SS bridge fdb add - add a new fdb entry
@@ -236,11 +245,11 @@ and delete old ones.
 This command creates a new fdb entry.
 
 .TP
-.BI "ADDRESS"
+.BI "LLADDR"
 the Ethernet MAC address.
 
 .TP
-.BI dev " NAME"
+.BI dev " DEV"
 the interface to which this address is associated.
 
 .B self
@@ -251,7 +260,54 @@ the interface to which this address is associated.
 - the address is associated with an offloaded fdb
 .sp
 
+.B router
+- the destination address is associated with a router.
+Valid if the referenced device is a VXLAN type device and has
+route shortcircuit enabled.
+.sp
+
 .in -8
+The next command line parameters apply only
+when the specified device
+.I DEV
+is of type VXLAN.
+.TP
+.BI dst " IPADDR"
+the IP address of the destination
+VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides.
+
+.TP
+.BI vni " VNI"
+the VXLAN VNI Network Identifier (or VXLAN Segment ID)
+to use to connect to the remote VXLAN tunnel endpoint.
+If omitted the value specified at vxlan device creation
+will be used.
+
+.TP
+.BI port " PORT"
+the UDP destination PORT number to use to connect to the
+remote VXLAN tunnel endpoint.
+If omitted the default value is used.
+
+.TP
+.BI via " DEVICE"
+device name of the outgoing interface for the
+VXLAN device driver to reach the
+remote VXLAN tunnel endpoint. 
+
+.SS bridge fdb append - append a forwarding database entry
+This command adds a new fdb entry with an already known
+.IR LLADDR .
+Valid only for multicast link layer addresses.
+The command adds support for broadcast and multicast
+Ethernet MAC addresses.
+The Ethernet MAC address is added multiple times into
+the forwarding database and the vxlan device driver
+sends a copy of the data packet to each entry found.
+
+.PP
+The arguments are the same as with
+.BR "bridge fdb add" ,
 
 .SS bridge fdb delete - delete a forwarding database entry
 This command removes an existing fdb entry.
-- 
1.8.1.4

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

* [PATCH 2/2] iproute2 vxlan documentation update for ip command
  2013-07-05  7:08 [PATCH 1/2] iproute2 vxlan documentation update for bridge command Thomas Richter
@ 2013-07-05  7:08 ` Thomas Richter
  2013-07-05  8:22   ` Bjørn Mork
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Richter @ 2013-07-05  7:08 UTC (permalink / raw)
  To: netdev; +Cc: Thomas Richter

The ip link command line help and the ip-link.8.in
man page are outdated in regards to the vxlan support.
The patch updates both the command line help for the
ip command and its man page.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
---
 ip/iplink.c           |  2 +-
 man/man8/ip-link.8.in | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/ip/iplink.c b/ip/iplink.c
index dc98019..f677329 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -83,7 +83,7 @@ void iplink_usage(void)
 
 	if (iplink_have_newlink()) {
 		fprintf(stderr, "\n");
-		fprintf(stderr, "TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can |\n");
+		fprintf(stderr, "TYPE := { vlan | vxlan | veth | vcan | dummy | ifb | macvlan | can |\n");
 		fprintf(stderr, "          bridge | ipoib | ip6tnl | ipip | sit | vxlan }\n");
 	}
 	exit(-1);
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 2e89efe..86e0bc9 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -196,6 +196,91 @@ specifies the number of transmit queues for new device.
 .BI numrxqueues " QUEUE_COUNT "
 specifies the number of receive queues for new device.
 
+.TP
+VXLAN Type Support
+For a link of type 
+.I VXLAN
+the following additional arguments are supported:
+
+.BI "ip link add " DEVICE
+.BI type " vxlan " id " ID
+.R " [ "
+.BI dev " PHYS_DEV "
+.R " ] [ "
+.BI group " IPADDR "
+.R " ] [ "
+.BI local " IPADDR "
+.R " ] [ "
+.BI ttl " TTL "
+.R " ] [ "
+.BI tos " TOS "
+.R " ] [ "
+.BI port " MIN MAX "
+.R " ] [ "
+.I "[no]learning "
+.R " ] [ "
+.I "[no]proxy "
+.R " ] [ "
+.I "[no]rsc "
+.R " ] [ "
+.I "[no]l2miss "
+.R " ] [ "
+.I "[no]l3miss "
+.R " ]"
+
+.in +8
+.sp
+.BI  id " VNI "
+- specifies the VXLAN Network Identifer (or VXLAN Segment
+Identifier) to use.
+
+.BI dev " PHYS_DEV"
+- specifies the physical device to use for tunnel endpoint communication.
+
+.sp
+.BI group " IPADDR"
+- specifies the multicast IP address to join.
+
+.sp
+.BI local " IPADDR"
+- specifies the source IP address to use in outgoing packets.
+
+.sp
+.BI ttl " TTL"
+- specifies the TTL value to use in outgoing packets.
+
+.sp
+.BI tos " TOS"
+- specifies the TOS value to use in outgoing packets.
+
+.sp
+.BI port " MIN MAX"
+- specifies the range of port numbers to use as UDP
+source ports to communicate to the remote VXLAN tunnel endpoint.
+
+.sp
+.I [no]learning
+- specifies if unknown source link layer addresses and IP addresses
+are entered into the VXLAN device forwarding database.
+
+.sp
+.I [no]rsc
+- specifies if route short circuit is turned on.
+
+.sp
+.I [no]proxy
+- specifies ARP proxy is turned on.
+
+.sp
+.I [no]l2miss
+- specifies if netlink LLADDR miss notifications are generated.
+
+.sp
+.I [no]l3miss
+- specifies if netlink IP ADDR miss notifications are generated.
+
+.in -8
+
 .SS ip link delete - delete virtual link
 .I DEVICE
 specifies the virtual  device to act operate on.
-- 
1.8.1.4

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

* Re: [PATCH 2/2] iproute2 vxlan documentation update for ip command
  2013-07-05  7:08 ` [PATCH 2/2] iproute2 vxlan documentation update for ip command Thomas Richter
@ 2013-07-05  8:22   ` Bjørn Mork
  2013-07-05 12:49     ` Thomas-Mich Richter
  0 siblings, 1 reply; 4+ messages in thread
From: Bjørn Mork @ 2013-07-05  8:22 UTC (permalink / raw)
  To: Thomas Richter; +Cc: netdev

Thomas Richter <tmricht@linux.vnet.ibm.com> writes:

> The ip link command line help and the ip-link.8.in
> man page are outdated in regards to the vxlan support.
> The patch updates both the command line help for the
> ip command and its man page.
>
> Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
> ---
>  ip/iplink.c           |  2 +-
>  man/man8/ip-link.8.in | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 86 insertions(+), 1 deletion(-)
>
> diff --git a/ip/iplink.c b/ip/iplink.c
> index dc98019..f677329 100644
> --- a/ip/iplink.c
> +++ b/ip/iplink.c
> @@ -83,7 +83,7 @@ void iplink_usage(void)
>  
>  	if (iplink_have_newlink()) {
>  		fprintf(stderr, "\n");
> -		fprintf(stderr, "TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can |\n");
> +		fprintf(stderr, "TYPE := { vlan | vxlan | veth | vcan | dummy | ifb | macvlan | can |\n");
>  		fprintf(stderr, "          bridge | ipoib | ip6tnl | ipip | sit | vxlan }\n");

There was already a vxlan entry there.  Now there's two.


Bjørn

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

* Re: [PATCH 2/2] iproute2 vxlan documentation update for ip command
  2013-07-05  8:22   ` Bjørn Mork
@ 2013-07-05 12:49     ` Thomas-Mich Richter
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas-Mich Richter @ 2013-07-05 12:49 UTC (permalink / raw)
  To: Bjørn Mork; +Cc: netdev

On 07/05/2013 10:22 AM, Bjørn Mork wrote:
> Thomas Richter <tmricht@linux.vnet.ibm.com> writes:
> 
>> The ip link command line help and the ip-link.8.in
>> man page are outdated in regards to the vxlan support.
>> The patch updates both the command line help for the
>> ip command and its man page.
>>
>> Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
>> ---
>>  ip/iplink.c           |  2 +-
>>  man/man8/ip-link.8.in | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 86 insertions(+), 1 deletion(-)
>>
>> diff --git a/ip/iplink.c b/ip/iplink.c
>> index dc98019..f677329 100644
>> --- a/ip/iplink.c
>> +++ b/ip/iplink.c
>> @@ -83,7 +83,7 @@ void iplink_usage(void)
>>  
>>  	if (iplink_have_newlink()) {
>>  		fprintf(stderr, "\n");
>> -		fprintf(stderr, "TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can |\n");
>> +		fprintf(stderr, "TYPE := { vlan | vxlan | veth | vcan | dummy | ifb | macvlan | can |\n");
>>  		fprintf(stderr, "          bridge | ipoib | ip6tnl | ipip | sit | vxlan }\n");
> 
> There was already a vxlan entry there.  Now there's two.
> 
> 
> Bjørn
> 

Thanks oversight on my side.

-- 
Thomas Richter, Dept 3250, IBM LTC Boeblingen, Data Center Networking
--
Vorsitzende des Aufsichtsrats: Martina Koederitz 
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

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

end of thread, other threads:[~2013-07-05 12:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-05  7:08 [PATCH 1/2] iproute2 vxlan documentation update for bridge command Thomas Richter
2013-07-05  7:08 ` [PATCH 2/2] iproute2 vxlan documentation update for ip command Thomas Richter
2013-07-05  8:22   ` Bjørn Mork
2013-07-05 12:49     ` Thomas-Mich Richter

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).