Patchwork [Open-FCoE,net-next,v3,13/17] net: bridge: use __ethtool_get_ksettings

login
register
mail settings
Submitter David Decotigny
Date Nov. 30, 2015, 10:05 p.m.
Message ID <1448921155-24764-14-git-send-email-ddecotig@gmail.com>
Download mbox | patch
Permalink /patch/302/
State Awaiting Upstream
Headers show

Comments

David Decotigny - Nov. 30, 2015, 10:05 p.m.
From: David Decotigny <decot@googlers.com>

Signed-off-by: David Decotigny <decot@googlers.com>
---
 net/bridge/br_if.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index ec02f58..e6de008 100644
--- 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_ksettings ecmd;
 
-	if (!__ethtool_get_settings(dev, &ecmd)) {
-		switch (ethtool_cmd_speed(&ecmd)) {
+	if (!__ethtool_get_ksettings(dev, &ecmd)) {
+		switch (ecmd.parent.speed) {
 		case SPEED_10000:
 			return 2;
 		case SPEED_1000: