Skip to content

RFC LLDP implementation for Linux

Eldad Zack netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8if_ether.h: Add LLDP ethertypeinclude/linux/if_ether.h+1 -01 reply
2/8LLDP: Headernet/lldp/lldp.h+155 -00 replies
3/8LLDP: Sysctl interfacenet/lldp/sysctl_net_lldp.c+94 -00 replies
4/8LLDP: PDU-handling routinesnet/lldp/lldpdu.c+307 -00 replies
5/8LLDP: Output routinesnet/lldp/lldp_output.c+67 -00 replies
6/8LLDP: Core routinesinclude/linux/netdevice.h net/lldp/lldp_core.c+218 -00 replies
7/8LLDP: Kconfig and Makefilenet/Kconfig net/Makefile net/lldp/Kconfig +1 more+30 -00 replies
8/88021q/vlan: process NETDEV_GOING_DOWNnet/8021q/vlan.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/8] LLDP implementation for Linux

Hi all,

This series of patches provides a partial LLDP (IEEE Std 802.1ab) implementation.

I'd really appreciate a review of it.

LLDP is a simple discovery protocol which advertises the identification and other info (such as MTU or capabilities) of device on the link. It can also help debug misconfigurations on the link layer (wrong MTU, wrong VLAN).

Some notes/questions:

* Applies against net-next and mainline.

* Included in this series is only LLDP output code.
This is not an issue since input and output are decoupled in LLDP anyway. I'm working on the input code as well and will post it at some point in the future.

* Sysctl is used to do (some) configuration. This is done globally right now. Before I add per-device sysctls: is it at all appropriate to use sysctl here?

* By default, transmission is suppressed. To arm it, set /proc/sys/net/lldp/lldp_op_mode
to 1.

* I've tested it on x86_64 and (qemu'd) x86.

* I've tested it on my machine and it works with Ethernet and WLAN.

* The last patch ("8021q/vlan: process NETDEV_GOING_DOWN") is needed to be able to send shutdown PDU on VLAN interfaces, but has otherwise no effect.

* Is there a better way to deal with 16-bit endianness other than masking and shifting, when one field is more than a byte long (in this case 7/9)?

* I usually only work on it on weekends, so I might be slow in responding back.

Thanks in advance if you're taking the time to review it or test it!