ixgbe: Inline Rx PTP descriptor handling
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 5 Dec 2012 06:51:29 +0000 (06:51 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 23 Jan 2013 22:33:29 +0000 (14:33 -0800)
commit39dfb71bc03c5a4015d25611c0f1121991d548e6
tree94ac91f7ec8027289e24e9c95c0f4d176a214c6e
parentb1e50f7ac7fd44f8da05b160a90dddde90b7e8cc
ixgbe: Inline Rx PTP descriptor handling

This change is meant to inline the Rx PTP descriptor handling.  The main
motivation is to avoid unnecessary jumps into function calls that we then
immediately exit because we are not performing timestamps.

The net result of this change is that ixgbe_ptp_rx_tstamp drops from .5% CPU
utilization in my performance runs to 0%, and the only value tested is the Rx
descriptor which should already be warm in the cache if not stored in a
register.

Cc: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Jacob Keller <Jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c