Skip to content
Snippets Groups Projects
Kconfig_vlans.in 3.67 MiB
Newer Older
Jean-Claude BAU's avatar
Jean-Claude BAU committed

Jean-Claude BAU's avatar
Jean-Claude BAU committed

config VLANS_ENABLE
	bool "Enable VLANs"
	default n
	help
	  Enable VLAN configuration via dot-config

Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_RAW_PORT_CONFIG
	depends on VLANS_ENABLE
	bool "Enable raw ports configuration"
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	default n
	help
	  Enable raw configuration for VLANS


menu "Ports configuration"
	depends on VLANS_ENABLE

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  1 ============"

choice VLANS_PORT01_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT01_MODE_UNQUALIFIED
	help
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT01_MODE_ACCESS
	bool "Access mode"
	help
	  Please check the help of VLANS_PORT01_MODE

config VLANS_PORT01_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT01_MODE

config VLANS_PORT01_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
	  Please check the help of VLANS_PORT01_MODE

config VLANS_PORT01_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT01_MODE
endchoice # choice VLANS_PORT01_MODE

choice VLANS_PORT01_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT01_UNTAG_ALL if VLANS_PORT01_MODE_ACCESS
	default VLANS_PORT01_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT01_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT01_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT01_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT01_UNTAG

config VLANS_PORT01_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT01_MODE_ACCESS || VLANS_PORT01_MODE_DISABLED || VLANS_PORT01_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT01_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT01_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT01_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT01_MODE_TRUNK || VLANS_PORT01_MODE_DISABLED || VLANS_PORT01_MODE_UNQUALIFIED
	default VLANS_PORT01_VID if VLANS_PORT01_MODE_ACCESS
	default 4094 if VLANS_PORT01_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT01_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT01_MODE_TRUNK || VLANS_PORT01_MODE_DISABLED || VLANS_PORT01_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT01_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT01_PTP_VID.

config VLANS_PORT01_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT01_MODE_TRUNK || VLANS_PORT01_MODE_DISABLED || VLANS_PORT01_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  2 ============"

choice VLANS_PORT02_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT02_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT02_MODE_ACCESS
	bool "Access mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT02_MODE

config VLANS_PORT02_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT02_MODE

config VLANS_PORT02_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT02_MODE

config VLANS_PORT02_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT02_MODE
endchoice # choice VLANS_PORT02_MODE

choice VLANS_PORT02_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT02_UNTAG_ALL if VLANS_PORT02_MODE_ACCESS
	default VLANS_PORT02_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT02_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT02_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT02_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT02_UNTAG

config VLANS_PORT02_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT02_MODE_ACCESS || VLANS_PORT02_MODE_DISABLED || VLANS_PORT02_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT02_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT02_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT02_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT02_MODE_TRUNK || VLANS_PORT02_MODE_DISABLED || VLANS_PORT02_MODE_UNQUALIFIED
	default VLANS_PORT02_VID if VLANS_PORT02_MODE_ACCESS
	default 4094 if VLANS_PORT02_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT02_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT02_MODE_TRUNK || VLANS_PORT02_MODE_DISABLED || VLANS_PORT02_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT02_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT02_PTP_VID.

config VLANS_PORT02_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT02_MODE_TRUNK || VLANS_PORT02_MODE_DISABLED || VLANS_PORT02_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  3 ============"

choice VLANS_PORT03_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT03_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT03_MODE_ACCESS
	bool "Access mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT03_MODE

config VLANS_PORT03_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT03_MODE

config VLANS_PORT03_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT03_MODE

config VLANS_PORT03_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT03_MODE
endchoice # choice VLANS_PORT03_MODE

choice VLANS_PORT03_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT03_UNTAG_ALL if VLANS_PORT03_MODE_ACCESS
	default VLANS_PORT03_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT03_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT03_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT03_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT03_UNTAG

config VLANS_PORT03_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT03_MODE_ACCESS || VLANS_PORT03_MODE_DISABLED || VLANS_PORT03_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT03_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT03_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT03_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT03_MODE_TRUNK || VLANS_PORT03_MODE_DISABLED || VLANS_PORT03_MODE_UNQUALIFIED
	default VLANS_PORT03_VID if VLANS_PORT03_MODE_ACCESS
	default 4094 if VLANS_PORT03_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT03_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT03_MODE_TRUNK || VLANS_PORT03_MODE_DISABLED || VLANS_PORT03_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT03_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT03_PTP_VID.

config VLANS_PORT03_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT03_MODE_TRUNK || VLANS_PORT03_MODE_DISABLED || VLANS_PORT03_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  4 ============"

choice VLANS_PORT04_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT04_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT04_MODE_ACCESS
	bool "Access mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT04_MODE

config VLANS_PORT04_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT04_MODE

config VLANS_PORT04_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT04_MODE

config VLANS_PORT04_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT04_MODE
endchoice # choice VLANS_PORT04_MODE

choice VLANS_PORT04_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT04_UNTAG_ALL if VLANS_PORT04_MODE_ACCESS
	default VLANS_PORT04_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT04_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT04_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT04_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT04_UNTAG

config VLANS_PORT04_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT04_MODE_ACCESS || VLANS_PORT04_MODE_DISABLED || VLANS_PORT04_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT04_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT04_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT04_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT04_MODE_TRUNK || VLANS_PORT04_MODE_DISABLED || VLANS_PORT04_MODE_UNQUALIFIED
	default VLANS_PORT04_VID if VLANS_PORT04_MODE_ACCESS
	default 4094 if VLANS_PORT04_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT04_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT04_MODE_TRUNK || VLANS_PORT04_MODE_DISABLED || VLANS_PORT04_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT04_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT04_PTP_VID.

config VLANS_PORT04_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT04_MODE_TRUNK || VLANS_PORT04_MODE_DISABLED || VLANS_PORT04_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  5 ============"

choice VLANS_PORT05_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT05_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT05_MODE_ACCESS
	bool "Access mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT05_MODE

config VLANS_PORT05_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT05_MODE

config VLANS_PORT05_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT05_MODE

config VLANS_PORT05_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT05_MODE
endchoice # choice VLANS_PORT05_MODE

choice VLANS_PORT05_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT05_UNTAG_ALL if VLANS_PORT05_MODE_ACCESS
	default VLANS_PORT05_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT05_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT05_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT05_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT05_UNTAG

config VLANS_PORT05_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT05_MODE_ACCESS || VLANS_PORT05_MODE_DISABLED || VLANS_PORT05_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT05_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT05_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT05_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT05_MODE_TRUNK || VLANS_PORT05_MODE_DISABLED || VLANS_PORT05_MODE_UNQUALIFIED
	default VLANS_PORT05_VID if VLANS_PORT05_MODE_ACCESS
	default 4094 if VLANS_PORT05_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT05_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT05_MODE_TRUNK || VLANS_PORT05_MODE_DISABLED || VLANS_PORT05_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT05_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT05_PTP_VID.

config VLANS_PORT05_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT05_MODE_TRUNK || VLANS_PORT05_MODE_DISABLED || VLANS_PORT05_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  6 ============"

choice VLANS_PORT06_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT06_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL
	    * VLAN tag     : are discarded
	    * null tag     : are discarded

	  - PMODE=trunk (0x1), frames with:
	    * no VLAN-tag  : are discarded
	    * priority tag : are discarded
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are discarded

	  - PMODE=disabled (0x2), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * VLAN tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL
	    * null tag     : are admitted; if PRIO_VAL is not -1, the value of
	                     priority provided to RTU is overridden with
	                     the configured PRIO_VAL

	  - PMODE=unqualified (0x3), frames with:
	    * no VLAN-tag  : are admitted. No other configuration is used even
	                     if set.
	    * priority tag : are admitted. Their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     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
	    * null tag     : discarded.

config VLANS_PORT06_MODE_ACCESS
	bool "Access mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT06_MODE

config VLANS_PORT06_MODE_TRUNK
	bool "Trunk mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT06_MODE

config VLANS_PORT06_MODE_DISABLED
	bool "VLAN-disabled mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  Please check the help of VLANS_PORT06_MODE

config VLANS_PORT06_MODE_UNQUALIFIED
	bool "Unqualified mode"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Please check the help of VLANS_PORT06_MODE
endchoice # choice VLANS_PORT06_MODE

choice VLANS_PORT06_UNTAG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	prompt "Untag frames"
	default VLANS_PORT06_UNTAG_ALL if VLANS_PORT06_MODE_ACCESS
	default VLANS_PORT06_UNTAG_NONE
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	depends on VLANS_PORT06_MODE_ACCESS || VLANS_RAW_PORT_CONFIG
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Decide whether VLAN-tags should be removed

config VLANS_PORT06_UNTAG_ALL
	bool "untag all"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Untag all tagged frames.

config VLANS_PORT06_UNTAG_NONE
	bool "untag none"
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Keep VLAN tags for all tagged frames.
endchoice #choice VLANS_PORT06_UNTAG

config VLANS_PORT06_PRIO
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	int "Priority"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT06_MODE_ACCESS || VLANS_PORT06_MODE_DISABLED || VLANS_PORT06_MODE_UNQUALIFIED
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	 Priority value used when tagging frames or to override priority passed
	 to RTU.
	 -1 disables the priority overwrite. Valid values are from -1 to 7.

config VLANS_PORT06_VID
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	string "VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT06_MODE_ACCESS
	default ""
	  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
Jean-Claude BAU's avatar
Jean-Claude BAU committed
config VLANS_PORT06_PTP_VID
	string "PTP VID"
	depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT06_MODE_TRUNK || VLANS_PORT06_MODE_DISABLED || VLANS_PORT06_MODE_UNQUALIFIED
	default VLANS_PORT06_VID if VLANS_PORT06_MODE_ACCESS
	default 4094 if VLANS_PORT06_MODE_TRUNK
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	help
	 VID used for the PTP messages

config VLANS_PORT06_LLDP_TX_VID
	int "LLDP TX VID"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT06_MODE_TRUNK || VLANS_PORT06_MODE_DISABLED || VLANS_PORT06_MODE_UNQUALIFIED)
	default 4094 if VLANS_PORT06_MODE_TRUNK
	default 1
	help
	 VID used for the transmission of LLDP frames. Incoming LLDP frames
	 are accepted on all VLANs.
	 If unsure, put the same value as in VLANS_PORT06_PTP_VID.

config VLANS_PORT06_LLDP_TX_PRIO
	int "LLDP TX VLAN priority"
	depends on !LLDPD_DISABLE && (VLANS_RAW_PORT_CONFIG || VLANS_PORT06_MODE_TRUNK || VLANS_PORT06_MODE_DISABLED || VLANS_PORT06_MODE_UNQUALIFIED)
	default 0
	range 0 7
	help
	 VLAN Priority used for the transmission of LLDP frames.

Jean-Claude BAU's avatar
Jean-Claude BAU committed
comment "========= P O R T  7 ============"

choice VLANS_PORT07_MODE
Jean-Claude BAU's avatar
Jean-Claude BAU committed

	prompt "VLAN mode"
	default VLANS_PORT07_MODE_UNQUALIFIED
	help
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  In terms of VLAN-tag, there are four types of VLAN-tags that can
	  extend the Ethernet Frame header:
	  * none     - tag is not included in the Ethernet Frame
	  * priority - tag that has VID=0x0
	  * VLAN     - tag that has VID in the range 0x001 to 0xFFE
	  * null     - tag that has VID=0xFFF

	  The behaviour of each PMODE that can be set per-port depends on the
	  type of VLAN-tag in the received frame.

	  - PMODE=access (0x0), frames with:
	    * no VLAN-tag  : are admitted, tagged with the values of VID and
	                     priority that are configured in PORT_VID and
	                     PRIO_VAL respectively
	    * priority tag : are admitted, their tag is unchanged, the value of
	                     VID provided to the RTU is overridden with the
	                     configured in PORT_VID. If PRIO_VAL is not -1,
	                     the value of priority provided to RTU is
	                     overridden with the configured PRIO_VAL