Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340557
b: refs/heads/master
c: f42df16
h: refs/heads/master
i:
  340555: 6ce2d11
v: v3
  • Loading branch information
Jiri Benc authored and Jeff Kirsher committed Oct 30, 2012
1 parent 8d9fd88 commit 4ad9b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39ac868a7c8c8b7406205b7b4c09417a0df0dec0
refs/heads/master: f42df16756dbcaba7b50cb7bbb0833b65d3ae167
6 changes: 4 additions & 2 deletions trunk/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,14 @@ void ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector,
adapter = q_vector->adapter;
hw = &adapter->hw;

if (likely(!ixgbe_ptp_match(skb, adapter->rx_hwtstamp_filter)))
return;

tsyncrxctl = IXGBE_READ_REG(hw, IXGBE_TSYNCRXCTL);

/* Check if we have a valid timestamp and make sure the skb should
* have been timestamped */
if (likely(!(tsyncrxctl & IXGBE_TSYNCRXCTL_VALID) ||
!ixgbe_ptp_match(skb, adapter->rx_hwtstamp_filter)))
if (!(tsyncrxctl & IXGBE_TSYNCRXCTL_VALID))
return;

/*
Expand Down

0 comments on commit 4ad9b88

Please sign in to comment.