diff options
author | np <np@FreeBSD.org> | 2011-05-05 02:38:08 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2011-05-05 02:38:08 +0000 |
commit | c95eaab05d51b0421a7c8c0b3bd24d5f0d80a151 (patch) | |
tree | 2b1e64c4f95e29754852dee07757549bd972687a /sys/modules/cxgbe | |
parent | 08574c897607ed8057b827c88ce9432cf159a067 (diff) | |
download | FreeBSD-src-c95eaab05d51b0421a7c8c0b3bd24d5f0d80a151.zip FreeBSD-src-c95eaab05d51b0421a7c8c0b3bd24d5f0d80a151.tar.gz |
T4 packet timestamps.
Reference code that shows how to get a packet's timestamp out of
cxgbe(4). Disabled by default because we don't have a standard way
today to pass this information up the stack.
The timestamp is 60 bits wide and each increment represents 1 tick of
the T4's core clock. As an example, the timestamp granularity is ~4.4ns
for this card:
# sysctl dev.t4nex.0.core_clock
dev.t4nex.0.core_clock: 228125
MFC after: 1 week
Diffstat (limited to 'sys/modules/cxgbe')
-rw-r--r-- | sys/modules/cxgbe/if_cxgbe/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile index 5bfe646..a524cde 100644 --- a/sys/modules/cxgbe/if_cxgbe/Makefile +++ b/sys/modules/cxgbe/if_cxgbe/Makefile @@ -13,4 +13,7 @@ SRCS+= opt_inet.h CFLAGS+= -I${CXGBE} +# Provide the timestamp of a packet in its header mbuf. +#CFLAGS+= -DT4_PKT_TIMESTAMP + .include <bsd.kmod.mk> |