ixgbe: only check pfc bits in hang logic if pfc is enabled
authorJohn Fastabend <john.r.fastabend@intel.com>
Thu, 3 Jun 2010 17:03:45 +0000 (17:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2010 22:56:00 +0000 (15:56 -0700)
commitca739481662137b8f717bc21f16719cda3c33d6b
tree8faf60448253ee555d8ff466f0a62eb6e3c743ee
parent8764ab2ca7ab5055e1ca80f9cfa4970c34acb804
ixgbe: only check pfc bits in hang logic if pfc is enabled

Only check pfc bits in hang logic if PFC is enabled.  Previously,
if DCB was enabled but PFC was disabled the incorrect pause
bits would be checked.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c