Re: [tcpdump-workers] [RFC PATCH 0/2]: hw timestamp support

2010-05-25 Thread yon ar c'hall
Hello Scott, By the way, do you know which NICs/network controllers support HW timestamping for all packets (not only the PTP datagrams -- IEEE 1588) ? Yon On Mon, May 24, 2010 at 4:26 PM, Mcmillan, Scott A scott.a.mcmil...@intel.com wrote: [My apologies if this double posts. The mail

Re: [tcpdump-workers] [RFC PATCH 0/2]: hw timestamp support

2010-05-25 Thread Mcmillan, Scott A
Yon, I assume you're asking about commodity NICs, not something like Endace. The NIC I'm most familiar with that supports general hw timestamping is the Intel 82580 Gigabit Ethernet Controller. It can timestamp all RX packets in hardware, but only PTP TX packets. Scott -Original

Re: [tcpdump-workers] [RFC PATCH 0/2]: hw timestamp support

2010-05-25 Thread Darren Reed
Scott, Is it just the 82580 or others too? If I look in the source code for OpenSolaris, I see: igb_82575.h:#defineE1000_SRRCTL_TIMESTAMP 0x4000 igb_82575.h:#defineE1000_RXDADV_STAT_TS 0x1 /* Pkt was time stamped */ igb_82575.h:#defineE1000_RXDADV_STAT_TSIP

Re: [tcpdump-workers] [RFC PATCH 1/2] libpcap: linux hw timestamp

2010-05-25 Thread Darren Reed
Scott, How does -j raw generate different output to -j nic? Looking through your code below, the code which constructs the data to pass through with the SIOCHWSTAMP ioctl ignores the timesource member completely (except to check if it is zero or not and thus turn it on.) This is the change to

Re: [tcpdump-workers] [RFC PATCH 0/2]: hw timestamp support

2010-05-25 Thread Guy Harris
On May 24, 2010, at 7:26 AM, Mcmillan, Scott A wrote: [My apologies if this double posts. The mail server didn't care for the first submission.] This patch adds the capability to select the packet timestamp source. Is there ever any reason *NOT* to use the hardware timestamp if it's