summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb_main.c
diff options
context:
space:
mode:
authorMatthew Vick <matthew.vick@intel.com>2013-04-24 07:42:06 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-05-21 02:31:43 -0700
commit20a48412281732ddb75e0ac7d9e0b5406f1b6669 (patch)
treed24a7fe0875c11b5180362dfc3d4442ce0af42bf /drivers/net/ethernet/intel/igb/igb_main.c
parentcf7ed221714c36848b257311b316452e274f7e15 (diff)
downloadlinux-20a48412281732ddb75e0ac7d9e0b5406f1b6669.tar.gz
linux-20a48412281732ddb75e0ac7d9e0b5406f1b6669.tar.bz2
linux-20a48412281732ddb75e0ac7d9e0b5406f1b6669.zip
igb: Add update to last_rx_timestamp in Rx rings
In order to support a more accurate check for a PTP Rx hang where the device can no longer timestamp received packets, we need to update, per ring, when the last Rx timestamp was. Because of how the PTP Rx hang logic works, the current logic is valid, but properly updating the ring variable increases the accuracy of the check. Signed-off-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 64cbe0dfe043..2c8f7e04b02b 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -6622,7 +6622,7 @@ static void igb_process_skb_fields(struct igb_ring *rx_ring,
igb_rx_checksum(rx_ring, rx_desc, skb);
- igb_ptp_rx_hwtstamp(rx_ring->q_vector, rx_desc, skb);
+ igb_ptp_rx_hwtstamp(rx_ring, rx_desc, skb);
if ((dev->features & NETIF_F_HW_VLAN_CTAG_RX) &&
igb_test_staterr(rx_desc, E1000_RXD_STAT_VP)) {