diff options
author | Jon Mason <jon.mason@exar.com> | 2010-11-10 23:25:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-11 12:30:21 -0500 |
commit | b81b37338412e3215670641e5025c85146521dea (patch) | |
tree | b6a4a1280223e21d5108cde1a9377d98653b44d7 /drivers/net/vxge/vxge-main.h | |
parent | e8ac175615b9458a00193c55617b5b8865e67817 (diff) |
vxge: add receive hardware timestamping
Add support for enable/disabling hardware timestamping on receive
packets via ioctl call. When enabled, the hardware timestamp replaces
the FCS in the payload.
Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-main.h')
-rw-r--r-- | drivers/net/vxge/vxge-main.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/vxge/vxge-main.h b/drivers/net/vxge/vxge-main.h index 1699d7590b31..6f6e9ce0bf20 100644 --- a/drivers/net/vxge/vxge-main.h +++ b/drivers/net/vxge/vxge-main.h | |||
@@ -248,8 +248,9 @@ struct vxge_ring { | |||
248 | */ | 248 | */ |
249 | int driver_id; | 249 | int driver_id; |
250 | 250 | ||
251 | /* copy of the flag indicating whether rx_csum is to be used */ | 251 | /* copy of the flag indicating whether rx_csum is to be used */ |
252 | u32 rx_csum; | 252 | u32 rx_csum:1, |
253 | rx_hwts:1; | ||
253 | 254 | ||
254 | int pkts_processed; | 255 | int pkts_processed; |
255 | int budget; | 256 | int budget; |
@@ -327,7 +328,8 @@ struct vxgedev { | |||
327 | u16 all_multi_flg; | 328 | u16 all_multi_flg; |
328 | 329 | ||
329 | /* A flag indicating whether rx_csum is to be used or not. */ | 330 | /* A flag indicating whether rx_csum is to be used or not. */ |
330 | u32 rx_csum; | 331 | u32 rx_csum:1, |
332 | rx_hwts:1; | ||
331 | 333 | ||
332 | struct vxge_msix_entry *vxge_entries; | 334 | struct vxge_msix_entry *vxge_entries; |
333 | struct msix_entry *entries; | 335 | struct msix_entry *entries; |