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)
commit33f9e6f57eb91cafcee4d8f185487bce6787957b
tree55b981d25fd0cf61db89dce9fd0a69b3c91bb748
parent7fceb4de75f993a598d27af835e87b19b8be514e
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