bnx2x: fix set_setting for some PHYs
authorYaniv Rosner <Yaniv.Rosner@qlogic.com>
Wed, 23 Jul 2014 19:12:57 +0000 (22:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jul 2014 01:02:08 +0000 (18:02 -0700)
Allow set_settings() to complete succesfully even if link is
not estabilished and port type isn't known yet.

Signed-off-by: Yaniv Rosner <Yaniv.Rosner@qlogic.com>
Signed-off-by: Dmitry Kravkov <Dmitry.Kravkov@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c

index bd0600cf72660f3fbc5ac9b2ad37b481fa0969a0..25eddd90f48234e86991e8c6282ab11c047de76e 100644 (file)
@@ -379,6 +379,7 @@ static int bnx2x_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
                        break;
                case PORT_FIBRE:
                case PORT_DA:
+               case PORT_NONE:
                        if (!(bp->port.supported[0] & SUPPORTED_FIBRE ||
                              bp->port.supported[1] & SUPPORTED_FIBRE)) {
                                DP(BNX2X_MSG_ETHTOOL,