summaryrefslogtreecommitdiffstats
path: root/sbin/etherswitchcfg/etherswitchcfg.8
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-22 05:52:18 +0000
committeradrian <adrian@FreeBSD.org>2013-04-22 05:52:18 +0000
commit38a1025029f2645291d940ab9f0b7c9c808e2c92 (patch)
tree83f1784af5180358d4b9b50d73dc425cb58b4848 /sbin/etherswitchcfg/etherswitchcfg.8
parent8f385d0e89111ca1716767f7dc0bdffe3225b3d0 (diff)
downloadFreeBSD-src-38a1025029f2645291d940ab9f0b7c9c808e2c92.zip
FreeBSD-src-38a1025029f2645291d940ab9f0b7c9c808e2c92.tar.gz
Convert over the etherswitch framework to use VLAN IDs per port, rather
than VLAN groups. Some chips (eg this rtl8366rb) has a VLAN group per port - you first define a set of VLANs in a vlan group, then you assign a VLAN group to a port. Other chips (eg the AR8xxx switch chips) have a VLAN ID array per port - there's no group per se, just a list of vlans that can be configured. So for now, the switch API will use the latter and rely on drivers doing the heavy lifting if one wishes to use the VLAN group method. Maybe later on both can be supported. PR: kern/177878 PR: kern/177873 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
Diffstat (limited to 'sbin/etherswitchcfg/etherswitchcfg.8')
-rw-r--r--sbin/etherswitchcfg/etherswitchcfg.88
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/etherswitchcfg/etherswitchcfg.8 b/sbin/etherswitchcfg/etherswitchcfg.8
index 4f3bc92..88e06f7 100644
--- a/sbin/etherswitchcfg/etherswitchcfg.8
+++ b/sbin/etherswitchcfg/etherswitchcfg.8
@@ -62,9 +62,9 @@ To set the register value, use the form instance.register=value.
.Ss port
The port command selects one of the ports of the switch.
It supports the following commands:
-.Bl -tag -width ".Ar vlangroup number" -compact
-.It Ar vlangroup number
-Sets the VLAN group number that is used to process incoming frames that are not tagged.
+.Bl -tag -width ".Ar pvid number" -compact
+.It Ar pvid number
+Sets the default port VID that is used to process incoming frames that are not tagged.
.It Ar media mediaspec
Specifies the physical media configuration to be configured for a port.
.It Ar mediaopt mediaoption
@@ -104,7 +104,7 @@ Configure VLAN group 1 with a VID of 2 and makes ports 0 and 5 members,
while excluding all other ports.
Port 5 will send and receive tagged frames, while port 0 will be untagged.
Incoming untagged frames on port 0 are assigned to vlangroup1.
-.Dl # etherswitchcfg vlangroup1 vlan 2 members 0,5t port0 vlangroup 1
+.Dl # etherswitchcfg vlangroup1 vlan 2 members 0,5t port0 pvid 2
.Sh SEE ALSO
.Xr etherswitch 4
.Sh HISTORY
OpenPOWER on IntegriCloud