OSDN Git Service

ixgbe: fix the FWSM.PT check in ixgbe_mng_present()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 11 Sep 2017 21:21:36 +0000 (14:21 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 17:05:19 +0000 (10:05 -0700)
commitc3aec05dfe2cb1bc1fdf3593da82bc987211338a
treecbf4cb45f61804087c070d10e1f5ea888cc3fced
parentdcfd6b839c998bc9838e2a47f44f37afbdf3099c
ixgbe: fix the FWSM.PT check in ixgbe_mng_present()

Bits other than FWSM.PT can be set in IXGBE_SWFW_MODE_MASK making the
previous check invalid.

Change the check for MNG present to be only based on FWSM.PT bit.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c