Thread (1 message) 1 message, 1 author, 2020-07-10

Re: ethtool - LLDP Not staying Persistent

From: Michal Kubecek <hidden>
Date: 2020-07-10 13:02:53

On Thu, Jul 09, 2020 at 11:20:15PM +0000, Jerko Begic wrote:
Hello,

Not sure if this is the best way to reach out to ethtool team in
regards to the issues but I came across this
site<https://mirrors.edge.kernel.org/pub/software/network/ethtool/>
and wanted to check if you are aware of LLDP not staying persistent
when turned off using ethtool? Originally, we have filed a case with
Intel, but they have pointed us to reach out to ethtool team.

We have customers that keep contacting us about the LLDP not staying
persistent when using our Networking cards (as an example AOC-MTG-i4S:
https://www.supermicro.com/en/products/accessories/addon/AOC-MTG-i4S.php).
We did some testing on our side with the card above and this
MB<https://www.supermicro.com/en/products/motherboard/X11DPT-B> :

First we check that disable-fw-lldp is set to off by default
ethtool --show-priv-flags <port#>

Then go ahead and disable LLDP on the FW with command:
ethtool --set-priv-flags <port#> disable-fw-lldp on

Reboot the system and check:
ethtool --show-priv-flags <port#>

LLDP is OFF (same as default) but we need it to be persistent after
the reboot and to be ON

Please let me know if anyone can help with this case... We have tried
on multiple ethtool versions and the results are the same :(
This is not something that could be addressed in ethtool alone, not even
by general ethtool code in kernel. Private flags, their meaning and
implementation are determined by network device and its drivers.

Private flags are a black box from ethtool point of view: driver reports
the list of available flags for a device and implements querying and
viewing them; ethtool only serves as an interface between user and the
driver but the implementation and properties, including the persistency.

In general, most settings are not persistent; if you want them to
persist through reboots, the usual way to achieve that is to have some
init script (or service) that will set them on each boot. Some
distributions allow setting such parameters in their config files, e.g.
in openSUSE or SLE it's ETHTOOL_OPTIONS in /etc/sysconfig/network/ifcfg-*

Hope this helps
Michal

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help