Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2020 14:53:43 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Gabriel.Moyano@dlr.de
Cc:        freebsd-net@freebsd.org
Subject:   Re: HW timestamping e1000
Message-ID:  <20200602115343.GO48478@kib.kiev.ua>
In-Reply-To: <798afa552a794a0f9c07aa2fca422ea3@dlr.de>

index | next in thread | previous in thread | raw e-mail

On Tue, Jun 02, 2020 at 10:46:00AM +0000, Gabriel.Moyano@dlr.de wrote:
> Hi everybody,
> 
> Currently I am writing a piece of code to test HW timestamping on e1000 during reception, which runs on FreeBSD 12, but unfortunately it seems that it isn't working.
> 
> The socket is created and configured as follows:
> 
> sockfd = socket(AF_INET, SOCK_DGRAM, 0);
> int on = 1;
> setsockopt(sockfd, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on));
> 
> After recvmsg() is called, cmsg_type of received control messages are printed out with help of the control message routines (https://www.freebsd.org/cgi/man.cgi?query=CMSG_DATA). SCM_TIME_INFO should be printed out but it's not.
> 
> Is there any configuration missing? Does e1000 support HW timestamping right?
> 
> I will appreciate any help.

Hardware timestamping is only implemented for Mellanox ConnectX-4 and hier,
and Chelsio Terminators (T4 and newer ?).  It might be doable for Intel
some cards, but not all of them.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200602115343.GO48478>