]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit274f45aea8e5a7dfb5aca1b5e54f470867182f34
tree94ac91f7ec8027289e24e9c95c0f4d176a214c6e
parentddca0a15fb66cdff705e74e07607867058848087
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