]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: 3ad: Print an error for unknown speeds
authorIdo Schimmel <idosch@nvidia.com>
Wed, 10 Feb 2021 20:43:33 +0000 (22:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:28:21 +0000 (14:28 -0800)
commitdc83a62277fc22f20c12f1bfc2c83b28da39089f
treee14f9c8d157d224d78dbdf4e6cef4ff39a74b4af
parent22ae673e016b6e4b5cd10bd5e95438e09b301b34
bonding: 3ad: Print an error for unknown speeds

The bond driver needs to be patched to support new ethtool speeds.
Currently it emits a single warning [1] when it encounters an unknown
speed. As evident by the two previous patches, this is not explicit
enough. Instead, promote it to an error.

[1]
bond10: (slave swp1): unknown ethtool speed (200000) for port 1 (set it to 0)

v2:
* Use pr_err_once() instead of WARN_ONCE()

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c