diff options
author | Scott McMillan <scott.a.mcmillan@intel.com> | 2010-06-02 14:53:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-02 14:53:56 +0200 |
commit | 614f60fa9d73a9e8fdff3df83381907fea7c5649 (patch) | |
tree | a1b7704393b7042242470db09d59944bca67ec51 /fs/ext2/ialloc.c | |
parent | vxge: Fix checkstack warning in vxge_probe() (diff) | |
download | linux-614f60fa9d73a9e8fdff3df83381907fea7c5649.tar.xz linux-614f60fa9d73a9e8fdff3df83381907fea7c5649.zip |
packet_mmap: expose hw packet timestamps to network packet capture utilities
This patch adds a setting, PACKET_TIMESTAMP, to specify the packet
timestamp source that is exported to capture utilities like tcpdump by
packet_mmap.
PACKET_TIMESTAMP accepts the same integer bit field as
SO_TIMESTAMPING. However, only the SOF_TIMESTAMPING_SYS_HARDWARE and
SOF_TIMESTAMPING_RAW_HARDWARE values are currently recognized by
PACKET_TIMESTAMP. SOF_TIMESTAMPING_SYS_HARDWARE takes precedence over
SOF_TIMESTAMPING_RAW_HARDWARE if both bits are set.
If PACKET_TIMESTAMP is not set, a software timestamp generated inside
the networking stack is used (the behavior before this setting was
added).
Signed-off-by: Scott McMillan <scott.a.mcmillan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/ext2/ialloc.c')
0 files changed, 0 insertions, 0 deletions