projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5770979
)
net: bridge: use __ethtool_get_ksettings
author
David Decotigny
<decot@googlers.com>
Wed, 24 Feb 2016 18:58:09 +0000
(10:58 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 26 Feb 2016 03:06:46 +0000
(22:06 -0500)
Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
patch
|
blob
|
history
diff --git
a/net/bridge/br_if.c
b/net/bridge/br_if.c
index c367b3e1b5ac21f0d482c330569ac6280aa4467d..b37a1cc97d98136d8fe48aa6d28c0c4110887129 100644
(file)
--- a/
net/bridge/br_if.c
+++ b/
net/bridge/br_if.c
@@
-36,10
+36,10
@@
*/
static int port_cost(struct net_device *dev)
{
- struct ethtool_
cmd
ecmd;
+ struct ethtool_
link_ksettings
ecmd;
- if (!__ethtool_get_settings(dev, &ecmd)) {
- switch (e
thtool_cmd_speed(&ecmd)
) {
+ if (!__ethtool_get_
link_k
settings(dev, &ecmd)) {
+ switch (e
cmd.base.speed
) {
case SPEED_10000:
return 2;
case SPEED_1000: