Commit c2172b7c authored by Adam Wujek's avatar Adam Wujek 💬

Kconfig: remove VLANS_PORTXX_VID_PTP

Use VLANS_PORTXX_VID instead of VLANS_PORTXX_VID and VLANS_PORTXX_VID_PTP
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 60b14e88
......@@ -64,6 +64,8 @@ choice VLANS_PORT01_MODE
configured in PORT_VID. If PRIO_VAL is not -1,
the value of priority provided to RTU is
overridden with the configured PRIO_VAL
NOTE: providing a VID for this mode is not
supported in the dot-config
* VLAN tag : are admitted; if PRIO_VAL is not -1, the value of
priority provided to RTU is overridden with
the configured PRIO_VAL
......@@ -120,22 +122,20 @@ config VLANS_PORT01_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT01_VID
int "Port 1 VID"
default 0
range 0 4094
depends on VLANS_PORT01_MODE_ACCESS || VLANS_PORT01_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT01_VID_PTP
string "Port 1 VIDs for PTP"
default "0" if VLANS_PORT01_MODE_ACCESS || VLANS_PORT01_MODE_TRUNK
default "" if VLANS_PORT01_MODE_UNQUALIFIED
depends on VLANS_PORT01_MODE_ACCESS || VLANS_PORT01_MODE_TRUNK \
|| VLANS_PORT01_MODE_UNQUALIFIED
string "Port 1 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 2"
......@@ -196,22 +196,20 @@ config VLANS_PORT02_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT02_VID
int "Port 2 VID"
default 0
range 0 4094
depends on VLANS_PORT02_MODE_ACCESS || VLANS_PORT02_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT02_VID_PTP
string "Port 2 VIDs for PTP"
default "0" if VLANS_PORT02_MODE_ACCESS || VLANS_PORT02_MODE_TRUNK
default "" if VLANS_PORT02_MODE_UNQUALIFIED
depends on VLANS_PORT02_MODE_ACCESS || VLANS_PORT02_MODE_TRUNK \
|| VLANS_PORT02_MODE_UNQUALIFIED
string "Port 2 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 3"
......@@ -272,22 +270,20 @@ config VLANS_PORT03_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT03_VID
int "Port 3 VID"
default 0
range 0 4094
depends on VLANS_PORT03_MODE_ACCESS || VLANS_PORT03_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT03_VID_PTP
string "Port 3 VIDs for PTP"
default "0" if VLANS_PORT03_MODE_ACCESS || VLANS_PORT03_MODE_TRUNK
default "" if VLANS_PORT03_MODE_UNQUALIFIED
depends on VLANS_PORT03_MODE_ACCESS || VLANS_PORT03_MODE_TRUNK \
|| VLANS_PORT03_MODE_UNQUALIFIED
string "Port 3 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 4"
......@@ -348,22 +344,20 @@ config VLANS_PORT04_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT04_VID
int "Port 4 VID"
default 0
range 0 4094
depends on VLANS_PORT04_MODE_ACCESS || VLANS_PORT04_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT04_VID_PTP
string "Port 4 VIDs for PTP"
default "0" if VLANS_PORT04_MODE_ACCESS || VLANS_PORT04_MODE_TRUNK
default "" if VLANS_PORT04_MODE_UNQUALIFIED
depends on VLANS_PORT04_MODE_ACCESS || VLANS_PORT04_MODE_TRUNK \
|| VLANS_PORT04_MODE_UNQUALIFIED
string "Port 4 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 5"
......@@ -424,22 +418,20 @@ config VLANS_PORT05_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT05_VID
int "Port 5 VID"
default 0
range 0 4094
depends on VLANS_PORT05_MODE_ACCESS || VLANS_PORT05_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT05_VID_PTP
string "Port 5 VIDs for PTP"
default "0" if VLANS_PORT05_MODE_ACCESS || VLANS_PORT05_MODE_TRUNK
default "" if VLANS_PORT05_MODE_UNQUALIFIED
depends on VLANS_PORT05_MODE_ACCESS || VLANS_PORT05_MODE_TRUNK \
|| VLANS_PORT05_MODE_UNQUALIFIED
string "Port 5 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 6"
......@@ -500,22 +492,20 @@ config VLANS_PORT06_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT06_VID
int "Port 6 VID"
default 0
range 0 4094
depends on VLANS_PORT06_MODE_ACCESS || VLANS_PORT06_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT06_VID_PTP
string "Port 6 VIDs for PTP"
default "0" if VLANS_PORT06_MODE_ACCESS || VLANS_PORT06_MODE_TRUNK
default "" if VLANS_PORT06_MODE_UNQUALIFIED
depends on VLANS_PORT06_MODE_ACCESS || VLANS_PORT06_MODE_TRUNK \
|| VLANS_PORT06_MODE_UNQUALIFIED
string "Port 6 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 7"
......@@ -576,22 +566,20 @@ config VLANS_PORT07_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT07_VID
int "Port 7 VID"
default 0
range 0 4094
depends on VLANS_PORT07_MODE_ACCESS || VLANS_PORT07_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT07_VID_PTP
string "Port 7 VIDs for PTP"
default "0" if VLANS_PORT07_MODE_ACCESS || VLANS_PORT07_MODE_TRUNK
default "" if VLANS_PORT07_MODE_UNQUALIFIED
depends on VLANS_PORT07_MODE_ACCESS || VLANS_PORT07_MODE_TRUNK \
|| VLANS_PORT07_MODE_UNQUALIFIED
string "Port 7 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 8"
......@@ -652,22 +640,20 @@ config VLANS_PORT08_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT08_VID
int "Port 8 VID"
default 0
range 0 4094
depends on VLANS_PORT08_MODE_ACCESS || VLANS_PORT08_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT08_VID_PTP
string "Port 8 VIDs for PTP"
default "0" if VLANS_PORT08_MODE_ACCESS || VLANS_PORT08_MODE_TRUNK
default "" if VLANS_PORT08_MODE_UNQUALIFIED
depends on VLANS_PORT08_MODE_ACCESS || VLANS_PORT08_MODE_TRUNK \
|| VLANS_PORT08_MODE_UNQUALIFIED
string "Port 8 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 9"
......@@ -728,22 +714,20 @@ config VLANS_PORT09_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT09_VID
int "Port 9 VID"
default 0
range 0 4094
depends on VLANS_PORT09_MODE_ACCESS || VLANS_PORT09_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT09_VID_PTP
string "Port 9 VIDs for PTP"
default "0" if VLANS_PORT09_MODE_ACCESS || VLANS_PORT09_MODE_TRUNK
default "" if VLANS_PORT09_MODE_UNQUALIFIED
depends on VLANS_PORT09_MODE_ACCESS || VLANS_PORT09_MODE_TRUNK \
|| VLANS_PORT09_MODE_UNQUALIFIED
string "Port 9 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 10"
......@@ -804,22 +788,20 @@ config VLANS_PORT10_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT10_VID
int "Port 10 VID"
default 0
range 0 4094
depends on VLANS_PORT10_MODE_ACCESS || VLANS_PORT10_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT10_VID_PTP
string "Port 10 VIDs for PTP"
default "0" if VLANS_PORT10_MODE_ACCESS || VLANS_PORT10_MODE_TRUNK
default "" if VLANS_PORT10_MODE_UNQUALIFIED
depends on VLANS_PORT10_MODE_ACCESS || VLANS_PORT10_MODE_TRUNK \
|| VLANS_PORT10_MODE_UNQUALIFIED
string "Port 10 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 11"
......@@ -880,22 +862,20 @@ config VLANS_PORT11_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT11_VID
int "Port 11 VID"
default 0
range 0 4094
depends on VLANS_PORT11_MODE_ACCESS || VLANS_PORT11_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT11_VID_PTP
string "Port 11 VIDs for PTP"
default "0" if VLANS_PORT11_MODE_ACCESS || VLANS_PORT11_MODE_TRUNK
default "" if VLANS_PORT11_MODE_UNQUALIFIED
depends on VLANS_PORT11_MODE_ACCESS || VLANS_PORT11_MODE_TRUNK \
|| VLANS_PORT11_MODE_UNQUALIFIED
string "Port 11 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 12"
......@@ -956,22 +936,20 @@ config VLANS_PORT12_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT12_VID
int "Port 12 VID"
default 0
range 0 4094
depends on VLANS_PORT12_MODE_ACCESS || VLANS_PORT12_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT12_VID_PTP
string "Port 12 VIDs for PTP"
default "0" if VLANS_PORT12_MODE_ACCESS || VLANS_PORT12_MODE_TRUNK
default "" if VLANS_PORT12_MODE_UNQUALIFIED
depends on VLANS_PORT12_MODE_ACCESS || VLANS_PORT12_MODE_TRUNK \
|| VLANS_PORT12_MODE_UNQUALIFIED
string "Port 12 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 13"
......@@ -1032,22 +1010,20 @@ config VLANS_PORT13_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT13_VID
int "Port 13 VID"
default 0
range 0 4094
depends on VLANS_PORT13_MODE_ACCESS || VLANS_PORT13_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT13_VID_PTP
string "Port 13 VIDs for PTP"
default "0" if VLANS_PORT13_MODE_ACCESS || VLANS_PORT13_MODE_TRUNK
default "" if VLANS_PORT13_MODE_UNQUALIFIED
depends on VLANS_PORT13_MODE_ACCESS || VLANS_PORT13_MODE_TRUNK \
|| VLANS_PORT13_MODE_UNQUALIFIED
string "Port 13 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 14"
......@@ -1108,22 +1084,20 @@ config VLANS_PORT14_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT14_VID
int "Port 14 VID"
default 0
range 0 4094
depends on VLANS_PORT14_MODE_ACCESS || VLANS_PORT14_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT14_VID_PTP
string "Port 14 VIDs for PTP"
default "0" if VLANS_PORT14_MODE_ACCESS || VLANS_PORT14_MODE_TRUNK
default "" if VLANS_PORT14_MODE_UNQUALIFIED
depends on VLANS_PORT14_MODE_ACCESS || VLANS_PORT14_MODE_TRUNK \
|| VLANS_PORT14_MODE_UNQUALIFIED
string "Port 14 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 15"
......@@ -1184,22 +1158,20 @@ config VLANS_PORT15_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT15_VID
int "Port 15 VID"
default 0
range 0 4094
depends on VLANS_PORT15_MODE_ACCESS || VLANS_PORT15_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT15_VID_PTP
string "Port 15 VIDs for PTP"
default "0" if VLANS_PORT15_MODE_ACCESS || VLANS_PORT15_MODE_TRUNK
default "" if VLANS_PORT15_MODE_UNQUALIFIED
depends on VLANS_PORT15_MODE_ACCESS || VLANS_PORT15_MODE_TRUNK \
|| VLANS_PORT15_MODE_UNQUALIFIED
string "Port 15 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 16"
......@@ -1260,22 +1232,20 @@ config VLANS_PORT16_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT16_VID
int "Port 16 VID"
default 0
range 0 4094
depends on VLANS_PORT16_MODE_ACCESS || VLANS_PORT16_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT16_VID_PTP
string "Port 16 VIDs for PTP"
default "0" if VLANS_PORT16_MODE_ACCESS || VLANS_PORT16_MODE_TRUNK
default "" if VLANS_PORT16_MODE_UNQUALIFIED
depends on VLANS_PORT16_MODE_ACCESS || VLANS_PORT16_MODE_TRUNK \
|| VLANS_PORT16_MODE_UNQUALIFIED
string "Port 16 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 17"
......@@ -1336,22 +1306,20 @@ config VLANS_PORT17_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT17_VID
int "Port 17 VID"
default 0
range 0 4094
depends on VLANS_PORT17_MODE_ACCESS || VLANS_PORT17_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT17_VID_PTP
string "Port 17 VIDs for PTP"
default "0" if VLANS_PORT17_MODE_ACCESS || VLANS_PORT17_MODE_TRUNK
default "" if VLANS_PORT17_MODE_UNQUALIFIED
depends on VLANS_PORT17_MODE_ACCESS || VLANS_PORT17_MODE_TRUNK \
|| VLANS_PORT17_MODE_UNQUALIFIED
string "Port 17 VID"
default ""
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
comment "Port 18"
......@@ -1412,22 +1380,20 @@ config VLANS_PORT18_PRIO
-1 disables the priority overwrite. Valid values are from -1 to 7.
config VLANS_PORT18_VID
int "Port 18 VID"
default 0
range 0 4094
depends on VLANS_PORT18_MODE_ACCESS || VLANS_PORT18_MODE_UNQUALIFIED
help
VID value used when tagging frames or to override VID passed to RTU
config VLANS_PORT18_VID_PTP
string "Port 18 VIDs for PTP"
default "0" if VLANS_PORT18_MODE_ACCESS || VLANS_PORT18_MODE_TRUNK
default "" if VLANS_PORT18_MODE_UNQUALIFIED
depends on VLANS_PORT18_MODE_ACCESS || VLANS_PORT18_MODE_TRUNK \
|| VLANS_PORT18_MODE_UNQUALIFIED
help
Semicolon separated list describing which vlans shall be assigned to
a PTP instance on a particular port
string "Port 18 VID"
default ""
help
This value based on the port's mode is used as:
--MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify
the PPSI which VLAN shall it use for synchronization; only one VLAN
number shall be used in this mode
--MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for
synchronization; semicolon separated list is allowed
--MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed
--MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for
synchronization; semicolon separated list is allowed;
The range of a valid VID is 0 to 4094
# Ports configuration
endmenu
......
......@@ -75,6 +75,8 @@ for port_i in {1..18}; do
echo " configured in PORT_VID. If PRIO_VAL is not -1,"
echo " the value of priority provided to RTU is"
echo " overridden with the configured PRIO_VAL"
echo " NOTE: providing a VID for this mode is not"
echo " supported in the dot-config"
echo " * VLAN tag : are admitted; if PRIO_VAL is not -1, the value of"
echo " priority provided to RTU is overridden with"
echo " the configured PRIO_VAL"
......@@ -134,22 +136,20 @@ for port_i in {1..18}; do
echo " -1 disables the priority overwrite. Valid values are from -1 to 7."
echo ""
echo "config VLANS_PORT"$port_0i"_VID"
echo " int \"Port "$port_i" VID\""
echo " default 0"
echo " range 0 4094"
echo " depends on VLANS_PORT"$port_0i"_MODE_ACCESS || VLANS_PORT"$port_0i"_MODE_UNQUALIFIED"
echo " string \"Port "$port_i" VID\""
echo " default \"\""
echo " help"
echo " VID value used when tagging frames or to override VID passed to RTU"
echo ""
echo "config VLANS_PORT"$port_0i"_VID_PTP"
echo " string \"Port "$port_i" VIDs for PTP\""
echo " default \"0\" if VLANS_PORT"$port_0i"_MODE_ACCESS || VLANS_PORT"$port_0i"_MODE_TRUNK"
echo " default \"\" if VLANS_PORT"$port_0i"_MODE_UNQUALIFIED"
echo " depends on VLANS_PORT"$port_0i"_MODE_ACCESS || VLANS_PORT"$port_0i"_MODE_TRUNK \\"
echo " || VLANS_PORT"$port_0i"_MODE_UNQUALIFIED"
echo " help"
echo " Semicolon separated list describing which vlans shall be assigned to"
echo " a PTP instance on a particular port"
echo " This value based on the port's mode is used as:"
echo " --MODE_ACCESS - (mandatory) use as VID for tagging incoming frames and notify"
echo " the PPSI which VLAN shall it use for synchronization; only one VLAN"
echo " number shall be used in this mode"
echo " --MODE_TRUNK - (optional) notify the PPSI which VLAN shall it use for"
echo " synchronization; semicolon separated list is allowed"
echo " --MODE_DISABLED - (optional) notify the PPSI which VLANs shall it use for"
echo " synchronization; semicolon separated list is allowed"
echo " --MODE_UNQUALIFIED - (optional) notify the PPSI which VLANs shall it use for"
echo " synchronization; semicolon separated list is allowed;"
echo " The range of a valid VID is 0 to 4094"
echo ""
done
......
......@@ -79,16 +79,23 @@ for i_zero in {01..18};do
unset port_mode_access;
unset port_mode_trunk;
unset port_mode_unqualified;
unset port_mode_disabled;
# check port mode
port_mode_access=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_MODE_ACCESS")
port_mode_trunk=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_MODE_TRUNK")
port_mode_unqualified=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_MODE_UNQUALIFIED")
port_mode_disabled=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_MODE_DISABLED")
# check port mode
if [ "$port_mode_access" = "y" ] \
|| [ "$port_mode_trunk" = "y" ] \
if [ "$port_mode_access" = "y" ]; then
ppsi_vlans=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_VID")
echo "vlan $ppsi_vlans" >> $OUTPUT_FILE
fi
if [ "$port_mode_trunk" = "y" ] \
|| [ "$port_mode_disabled" = "y" ] \
|| [ "$port_mode_unqualified" = "y" ]; then
ppsi_vlans=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_VID_PTP")
ppsi_vlans=$(eval "echo \$CONFIG_VLANS_PORT"$i_zero"_VID")
if [ -n "$ppsi_vlans" ]; then
mod_vlans=${ppsi_vlans//;/,}
echo "vlan $mod_vlans" >> $OUTPUT_FILE
......
......@@ -1032,12 +1032,14 @@ static int read_dot_config(char *dot_config_file)
printf("Found %s=%s\n", buff, val_ch);
set_p_prio(port - 1, val_ch);
}
sprintf(buff, "VLANS_PORT%02d_VID", port);
val_ch = libwr_cfg_get(buff);
if (val_ch) {
if (wrs_msg_level >= LOG_DEBUG)
printf("Found %s=%s\n", buff, val_ch);
set_p_vid(port - 1, val_ch);
if (mode == QMODE_ACCESS) {
sprintf(buff, "VLANS_PORT%02d_VID", port);
val_ch = libwr_cfg_get(buff);
if (val_ch) {
if (wrs_msg_level >= LOG_DEBUG)
printf("Found %s=%s\n", buff, val_ch);
set_p_vid(port - 1, val_ch);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment