|
@@ -7108,9 +7108,10 @@ netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *skb,
|
|
|
tx_flags |= IXGBE_TX_FLAGS_SW_VLAN;
|
|
|
}
|
|
|
|
|
|
- if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP &&
|
|
|
- !test_and_set_bit_lock(__IXGBE_PTP_TX_IN_PROGRESS,
|
|
|
- &adapter->state))) {
|
|
|
+ if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) &&
|
|
|
+ adapter->ptp_clock &&
|
|
|
+ !test_and_set_bit_lock(__IXGBE_PTP_TX_IN_PROGRESS,
|
|
|
+ &adapter->state)) {
|
|
|
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
|
|
|
tx_flags |= IXGBE_TX_FLAGS_TSTAMP;
|
|
|
|