From: Yaniv Rosner Date: Thu, 27 Oct 2011 05:13:52 +0000 (+0000) Subject: bnx2x: Enable changing speed when port type is PORT_DA X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~560 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9f91e8a42048ebaccca5320320053b5182340242;p=users%2Fjedix%2Flinux-maple.git bnx2x: Enable changing speed when port type is PORT_DA (cherry picked from commit bfdb58232f9227149cac89c17454edaf25f43136) Signed-off-by: Yaniv Rosner Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/bnx2x/bnx2x_ethtool.c b/drivers/net/bnx2x/bnx2x_ethtool.c index 767c22983c178..433d53fd4873a 100644 --- a/drivers/net/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/bnx2x/bnx2x_ethtool.c @@ -329,6 +329,7 @@ static int bnx2x_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) PORT_HW_CFG_PHY_SELECTION_FIRST_PHY; break; case PORT_FIBRE: + case PORT_DA: if (bp->port.supported[cfg_idx] & SUPPORTED_FIBRE) break; /* no port change */