]> 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)
commit217a81e1bd466eb058e79d3ebd30e77bdb7aca94
tree55b981d25fd0cf61db89dce9fd0a69b3c91bb748
parentd7df795a03a96436cb959a0391c83a6e8c7b6fb5
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