aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorNick Nunley <nicholasx.d.nunley@intel.com>2010-03-26 07:36:47 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-31 02:42:27 -0400
commit757b77e2b208490868cf21fd22d796eb9bd199c5 (patch)
tree628dccdbed780dc38d9843bb30d5c5920b830258 /drivers/net/igb/igb.h
parent3365a2934cce29fa9196bc4fd7086f62e799ee84 (diff)
igb: add per-packet timestamping
This patch adds support for per-packet timestamping for the 82580 adapter. The rx timestamp code is also pulled out of the inlined rx hotpath and instead moved to a seperate function. This version adds a comment explaining the per-packet timestamping code added to igb_hwtstamp_ioctl(). Signed-off-by: Nicholas Nunley <nicholasx.d.nunley@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index a1775705b24c..4f69b6d951b3 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -107,6 +107,7 @@ struct vf_data_storage {
107#define MAXIMUM_ETHERNET_VLAN_SIZE 1522 107#define MAXIMUM_ETHERNET_VLAN_SIZE 1522
108 108
109/* Supported Rx Buffer Sizes */ 109/* Supported Rx Buffer Sizes */
110#define IGB_RXBUFFER_64 64 /* Used for packet split */
110#define IGB_RXBUFFER_128 128 /* Used for packet split */ 111#define IGB_RXBUFFER_128 128 /* Used for packet split */
111#define IGB_RXBUFFER_1024 1024 112#define IGB_RXBUFFER_1024 1024
112#define IGB_RXBUFFER_2048 2048 113#define IGB_RXBUFFER_2048 2048
@@ -324,6 +325,7 @@ struct igb_adapter {
324 325
325#define IGB_82576_TSYNC_SHIFT 19 326#define IGB_82576_TSYNC_SHIFT 19
326#define IGB_82580_TSYNC_SHIFT 24 327#define IGB_82580_TSYNC_SHIFT 24
328#define IGB_TS_HDR_LEN 16
327enum e1000_state_t { 329enum e1000_state_t {
328 __IGB_TESTING, 330 __IGB_TESTING,
329 __IGB_RESETTING, 331 __IGB_RESETTING,