]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix generic option settings
authorYaniv Rosner <yanivr@broadcom.com>
Tue, 28 Jan 2014 15:28:51 +0000 (17:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jan 2014 02:08:57 +0000 (18:08 -0800)
commit1295f9f2b75038d32e851e6a40c070a8a09bd311
tree55b981d25fd0cf61db89dce9fd0a69b3c91bb748
parente79015c94a98e127d8941e0aa75c9fc67c2ffc3d
bnx2x: Fix generic option settings

When user tried to change generic options using "ethtool -s" command, while SFP
module is plugged out or during module detection, the command would have failed
with "Unsupported port type" message. The fix is to ignore the port option in
case it's same as the current port configuration.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c