]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:38:53 +0000 (09:38 +0100)
commit16d5b481d098c9b9ceba5b4c897a0df9c97b34cf
treee26db750ff0801e3e31fa9e76ca944a1b929c546
parentdde00c92245d4f002a7c9adbea7639c74dc656e7
ethtool: do not print warning for applications using legacy API

[ Upstream commit 71891e2dab6b55a870f8f7735e44a2963860b5c6 ]

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: 3f1ac7a700d0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/ethtool.c