igb: fix last_rx_timestamp usage
authorJakub Kicinski <kubakici@wp.pl>
Wed, 2 Apr 2014 10:33:33 +0000 (10:33 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 11 Apr 2014 12:58:08 +0000 (05:58 -0700)
commit5499a968d49f22ef166a360ffd74364bfb7233d6
tree0678005d7b22b2da19cb9fcb0ad37feff0696926
parent06c14e5adbccfc2b6e0cfc1f7ce4f4bf73791d28
igb: fix last_rx_timestamp usage

last_rx_timestamp should be updated only when rx time stamp is
read. Also it's only used with NICs that have per-interface time
stamping resources so it can be moved to adapter structure and
set in igb_ptp_rx_rgtstamp().

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Acked-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>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igb/igb_ptp.c