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)
commit5edf55ad95b5d5e444a7d104276c4b64a045adc3
treee14f9c8d157d224d78dbdf4e6cef4ff39a74b4af
parent138e3b3cc0bbbd795e3b3f2ab607597e2f0b80f9
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