Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
b3b066a2
Commit
b3b066a2
authored
Apr 24, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KConfig: Set default PTP_VID value when mode set to TRUNK
parent
85729810
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
Kconfig_vlans.in
Kconfig_vlans.in
+18
-0
gen_kconfig_vlans.sh
userspace/host_tools/gen_kconfig_vlans.sh
+1
-0
No files found.
Kconfig_vlans.in
View file @
b3b066a2
...
...
@@ -154,6 +154,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -294,6 +295,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -434,6 +436,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -574,6 +577,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -714,6 +718,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -854,6 +859,7 @@ 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
default ""
help
VID used for the PTP messages
...
...
@@ -994,6 +1000,7 @@ config VLANS_PORT07_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT07_MODE_TRUNK || VLANS_PORT07_MODE_DISABLED || VLANS_PORT07_MODE_UNQUALIFIED
default VLANS_PORT07_VID if VLANS_PORT07_MODE_ACCESS
default 4094 if VLANS_PORT07_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1134,6 +1141,7 @@ config VLANS_PORT08_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT08_MODE_TRUNK || VLANS_PORT08_MODE_DISABLED || VLANS_PORT08_MODE_UNQUALIFIED
default VLANS_PORT08_VID if VLANS_PORT08_MODE_ACCESS
default 4094 if VLANS_PORT08_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1274,6 +1282,7 @@ config VLANS_PORT09_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT09_MODE_TRUNK || VLANS_PORT09_MODE_DISABLED || VLANS_PORT09_MODE_UNQUALIFIED
default VLANS_PORT09_VID if VLANS_PORT09_MODE_ACCESS
default 4094 if VLANS_PORT09_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1414,6 +1423,7 @@ config VLANS_PORT10_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT10_MODE_TRUNK || VLANS_PORT10_MODE_DISABLED || VLANS_PORT10_MODE_UNQUALIFIED
default VLANS_PORT10_VID if VLANS_PORT10_MODE_ACCESS
default 4094 if VLANS_PORT10_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1554,6 +1564,7 @@ config VLANS_PORT11_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT11_MODE_TRUNK || VLANS_PORT11_MODE_DISABLED || VLANS_PORT11_MODE_UNQUALIFIED
default VLANS_PORT11_VID if VLANS_PORT11_MODE_ACCESS
default 4094 if VLANS_PORT11_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1694,6 +1705,7 @@ config VLANS_PORT12_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT12_MODE_TRUNK || VLANS_PORT12_MODE_DISABLED || VLANS_PORT12_MODE_UNQUALIFIED
default VLANS_PORT12_VID if VLANS_PORT12_MODE_ACCESS
default 4094 if VLANS_PORT12_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1834,6 +1846,7 @@ config VLANS_PORT13_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT13_MODE_TRUNK || VLANS_PORT13_MODE_DISABLED || VLANS_PORT13_MODE_UNQUALIFIED
default VLANS_PORT13_VID if VLANS_PORT13_MODE_ACCESS
default 4094 if VLANS_PORT13_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -1974,6 +1987,7 @@ config VLANS_PORT14_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT14_MODE_TRUNK || VLANS_PORT14_MODE_DISABLED || VLANS_PORT14_MODE_UNQUALIFIED
default VLANS_PORT14_VID if VLANS_PORT14_MODE_ACCESS
default 4094 if VLANS_PORT14_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -2114,6 +2128,7 @@ config VLANS_PORT15_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT15_MODE_TRUNK || VLANS_PORT15_MODE_DISABLED || VLANS_PORT15_MODE_UNQUALIFIED
default VLANS_PORT15_VID if VLANS_PORT15_MODE_ACCESS
default 4094 if VLANS_PORT15_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -2254,6 +2269,7 @@ config VLANS_PORT16_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT16_MODE_TRUNK || VLANS_PORT16_MODE_DISABLED || VLANS_PORT16_MODE_UNQUALIFIED
default VLANS_PORT16_VID if VLANS_PORT16_MODE_ACCESS
default 4094 if VLANS_PORT16_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -2394,6 +2410,7 @@ config VLANS_PORT17_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT17_MODE_TRUNK || VLANS_PORT17_MODE_DISABLED || VLANS_PORT17_MODE_UNQUALIFIED
default VLANS_PORT17_VID if VLANS_PORT17_MODE_ACCESS
default 4094 if VLANS_PORT17_MODE_TRUNK
default ""
help
VID used for the PTP messages
...
...
@@ -2534,6 +2551,7 @@ config VLANS_PORT18_PTP_VID
string "PTP VID"
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT18_MODE_TRUNK || VLANS_PORT18_MODE_DISABLED || VLANS_PORT18_MODE_UNQUALIFIED
default VLANS_PORT18_VID if VLANS_PORT18_MODE_ACCESS
default 4094 if VLANS_PORT18_MODE_TRUNK
default ""
help
VID used for the PTP messages
userspace/host_tools/gen_kconfig_vlans.sh
View file @
b3b066a2
...
...
@@ -134,6 +134,7 @@ function print_port_config() {
echo
-e
"
\t
string
\"
PTP VID
\"
"
echo
-e
"
\t
depends on VLANS_RAW_PORT_CONFIG || VLANS_PORT
${
portStr
}
_MODE_TRUNK || VLANS_PORT
${
portStr
}
_MODE_DISABLED || VLANS_PORT
${
portStr
}
_MODE_UNQUALIFIED"
echo
-e
"
\t
default VLANS_PORT
${
portStr
}
_VID if VLANS_PORT
${
portStr
}
_MODE_ACCESS"
echo
-e
"
\t
default 4094 if VLANS_PORT
${
portStr
}
_MODE_TRUNK"
echo
-e
"
\t
default
\"\"
"
echo
-e
"
\t
help"
echo
-e
"
\t
VID used for the PTP messages"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment