ice: fix set pause param autoneg check
authorPaul Greenwalt <paul.greenwalt@intel.com>
Thu, 25 Jul 2019 08:55:31 +0000 (01:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 20 Aug 2019 20:55:28 +0000 (13:55 -0700)
commitf1a4a66d23102e7681beb8725e7d00f359ef5c87
tree3685a6e0c6b9eac7f06917511088e3367d5802ca
parentd82dd83df27e31da3f2a838b32d0b82940dcd504
ice: fix set pause param autoneg check

When ETHTOOL_GLINKSETTINGS is defined get pause param pause->autoneg
reports SW configured setting, however when not defined get pause param
pause->autoneg reports the link status. Set pause param needs to compare
pause->autoneg with the same source as get pause param to block the user
from changing autoneg with the set pause param option, or the user
may be incorrectly blocked from changing Rx|Tx pause settings.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c