Commit 9f860d10 authored by Adam Wujek's avatar Adam Wujek 💬

Kconfig: introduce option for reduced lldpd frame size

It may be useful in networks which require low latency.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent c23b5a5f
......@@ -934,6 +934,14 @@ config LLDPD_MANAGEMENT_PORT_DISABLE
depends on !LLDPD_DISABLE
help
Disable LLDP traffic on management port.
config LLDPD_MINIMUM_FRAME_SIZE
bool "Send only minimum information via LLDP"
default n
depends on !LLDPD_DISABLE
help
Send only minimum information via LLDP. May be useful in networks
which require low latency.
endmenu
config HTTPD_DISABLE
......
......@@ -51,7 +51,11 @@ start() {
echo "# This configuration file was generated by $0 at startup" > $LLDPD_CONFIG
echo "# If you would like to change a lldpd configuration in runtime please consider using lldpcli" >> $LLDPD_CONFIG
echo "configure system hostname '$(hostname)'" >> $LLDPD_CONFIG
echo "configure system description 'WR-SWITCH: $(/wr/bin/wrsw_version)'" >> $LLDPD_CONFIG
if [ "$CONFIG_LLDPD_MINIMUM_FRAME_SIZE" = "y" ]; then
echo "configure system description 'WR-SWITCH'" >> $LLDPD_CONFIG
else
echo "configure system description 'WR-SWITCH: $(/wr/bin/wrsw_version)'" >> $LLDPD_CONFIG
fi
if [ "$CONFIG_LLDPD_MANAGEMENT_PORT_DISABLE" = "y" ]; then
echo "configure system interface pattern '!eth*'" >> $LLDPD_CONFIG
fi
......
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