bridge: implement get_link_ksettings ethtool method
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 12 Nov 2019 21:12:25 +0000 (22:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 03:52:15 +0000 (19:52 -0800)
commit542575fe4b9a7ad5f86da0346f147c3bae0c93cb
tree2107d0d97b31df0ad1a86c830199e309357e243c
parent36fe3a61aaca2be4ef7484187e7484d19d54553e
bridge: implement get_link_ksettings ethtool method

We return the maximum speed of all active ports. This matches how the link
speed would give an upper limit for traffic to/from any single peer if the
bridge were replaced with a hardware switch.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c