]> git.ipfire.org Git - thirdparty/lldpd.git/commit
linux: add support for ethtool GLINKSETTINGS
authorVincent Bernat <vincent@bernat.im>
Wed, 30 Nov 2016 20:37:36 +0000 (21:37 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 25 Dec 2016 07:35:32 +0000 (08:35 +0100)
commit38cbcf2b55d398d41638f037b885b20a400f0528
treeadf41087df71e8c4e93223c13b4fbf8fbd6860ef
parentf729e8854ec029b6a27bb531ea5ff27f4752c0e1
linux: add support for ethtool GLINKSETTINGS

With a recent enough kernel, one can use GLINKSETTINGS instead of
GSET. This is needed to overcome the limitation on the number of
supported/advertising modes supported by GSET (which is a fixed-length
bitset). We use the same kind of compatibility structure than for
ethtool.

Also, update the list of supported MAU types to support higher speed
interfaces. Unfortunately, while Linux reports the exact
advertised/supported modes, the operational mode of the interface is
only reported with its speed and its kind (copper, fiber, ...). When
this is fiber, we don't know if this is MMF or SMF or the supported
distance. Therefore, we use our best guess (this was already the case,
nothing new here).
NEWS
src/daemon/interfaces-linux.c
src/daemon/lldpd.h
src/daemon/priv-linux.c
src/lldp-const.h