|
@@ -4438,7 +4438,7 @@ void ixgbe_reset(struct ixgbe_adapter *adapter)
|
|
|
if (hw->mac.san_mac_rar_index)
|
|
|
hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0));
|
|
|
|
|
|
- if (adapter->flags2 & IXGBE_FLAG2_PTP_ENABLED)
|
|
|
+ if (test_bit(__IXGBE_PTP_RUNNING, &adapter->state))
|
|
|
ixgbe_ptp_reset(adapter);
|
|
|
}
|
|
|
|
|
@@ -5766,7 +5766,7 @@ static void ixgbe_watchdog_link_is_up(struct ixgbe_adapter *adapter)
|
|
|
|
|
|
adapter->last_rx_ptp_check = jiffies;
|
|
|
|
|
|
- if (adapter->flags2 & IXGBE_FLAG2_PTP_ENABLED)
|
|
|
+ if (test_bit(__IXGBE_PTP_RUNNING, &adapter->state))
|
|
|
ixgbe_ptp_start_cyclecounter(adapter);
|
|
|
|
|
|
e_info(drv, "NIC Link is Up %s, Flow Control: %s\n",
|
|
@@ -5812,7 +5812,7 @@ static void ixgbe_watchdog_link_is_down(struct ixgbe_adapter *adapter)
|
|
|
if (ixgbe_is_sfp(hw) && hw->mac.type == ixgbe_mac_82598EB)
|
|
|
adapter->flags2 |= IXGBE_FLAG2_SEARCH_FOR_SFP;
|
|
|
|
|
|
- if (adapter->flags2 & IXGBE_FLAG2_PTP_ENABLED)
|
|
|
+ if (test_bit(__IXGBE_PTP_RUNNING, &adapter->state))
|
|
|
ixgbe_ptp_start_cyclecounter(adapter);
|
|
|
|
|
|
e_info(drv, "NIC Link is Down\n");
|
|
@@ -6119,7 +6119,7 @@ static void ixgbe_service_task(struct work_struct *work)
|
|
|
ixgbe_fdir_reinit_subtask(adapter);
|
|
|
ixgbe_check_hang_subtask(adapter);
|
|
|
|
|
|
- if (adapter->flags2 & IXGBE_FLAG2_PTP_ENABLED) {
|
|
|
+ if (test_bit(__IXGBE_PTP_RUNNING, &adapter->state)) {
|
|
|
ixgbe_ptp_overflow_check(adapter);
|
|
|
ixgbe_ptp_rx_hang(adapter);
|
|
|
}
|