]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: do not print warning for applications using legacy API
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 29 Dec 2017 18:02:52 +0000 (10:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:49:17 +0000 (21:49 -0500)
commitba55ab35d1c0718435fe98d4b8590262ba2d578b
treef0a1af2dbea74aeefb084dbd49c33d4526f6d525
parent8396a05ce2269f5256cbe386f3a08954ac63cd39
ethtool: do not print warning for applications using legacy API

In kernel log ths message appears on every boot:
 "warning: `NetworkChangeNo' uses legacy ethtool link settings API,
  link modes are only partially reported"

When ethtool link settings API changed, it started complaining about
usages of old API. Ironically, the original patch was from google but
the application using the legacy API is chrome.

Linux ABI is fixed as much as possible. The kernel must not break it
and should not complain about applications using legacy API's.
This patch just removes the warning since using legacy API's
in Linux is perfectly acceptable.

Fixes: eda9ca094a26 ("net: ethtool: add new ETHTOOL_xLINKSETTINGS API")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c