From owner-freebsd-questions@freebsd.org Thu May 28 11:31:08 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DFB7332EF98 for ; Thu, 28 May 2020 11:31:08 +0000 (UTC) (envelope-from Gabriel.Moyano@dlr.de) Received: from mailin.dlr.de (mailin.dlr.de [194.94.201.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailin.dlr.de", Issuer "DFN-Verein Global Issuing CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49XlrX1N2rz4SNJ for ; Thu, 28 May 2020 11:31:07 +0000 (UTC) (envelope-from Gabriel.Moyano@dlr.de) IronPort-SDR: 9CDxJlFKz4aAO+O3plWVArt0afkUUM5waPYfAMtlW6h0w9qhuA6hmz/UuUD6treLMjRIzwRCsf AZ4mu0BcptLQ== IronPort-PHdr: =?us-ascii?q?9a23=3Ale1ULhT0pEoNwIXyhO2PE6FESNpsv+yvbD5Q0Y?= =?us-ascii?q?Iujvd0So/mwa6zZBGN2/xhgRfzUJnB7Loc0qyK6v2mADZeqs/Q+Fk5M7V0Hy?= =?us-ascii?q?cfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFR?= =?us-ascii?q?rwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi2oAnLq8Uan4pvJqksxh?= =?us-ascii?q?bNv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3?= =?us-ascii?q?g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RT?= =?us-ascii?q?Gv5LplRRP0lCsKMSMy/WfKgcJyka1bugqsqRxhzYDJfIGbOvlwfqLBctwVXm?= =?us-ascii?q?dORNpdVy5bD4+gc4cDEuwMNvtYoYnnoFsOqAOzCA6tCuz10TBInH720rM+0+?= =?us-ascii?q?g7Fg/G2wwhEMgIsHTTt9j6KaMSUfqvwKbV0zrOdvVb0iry54bUaB4uu+2MXa?= =?us-ascii?q?5ufsrLz0kiDwzLgkmfpIHqIz6YyusDvnaf4ud+Wu+ilXIrpQFvrjWrycohip?= =?us-ascii?q?fFiIwRx1za9St0zps4K9KlREJmb9OpEZ9duiKcOoBrTM0iRGRotzw7yr0AoZ?= =?us-ascii?q?O7cjIKx4o5yBHEcPyIbpKE4hX5VOaeOTt3mXZleKilixmv70etzPD3WMqs0F?= =?us-ascii?q?tSsyZJjsPAum0O2hHc8MSLV/Vw80S71TqR2A3f8vxILVwumabGKJMszaQ8mo?= =?us-ascii?q?cdvEnABCP6hkX7gaCQe0454Oan8f7nba/jppKEMo90jRzxPbo2l8ykBOQ4Lh?= =?us-ascii?q?AOX2+G+eSgzLHj/VP2QLFNjvAunKfXtp7UK8sbqKC5BAFb0YEt5QyhAzqp39?= =?us-ascii?q?oXnGcKIEhEeBKBk4jpIUvBLOrlAve7mVSgiipkyO7eMr3gBJXCMGTDna/8cb?= =?us-ascii?q?ph8UJQ1Qk+wN9F655JBLwMI+j/VlH+udDACx82KQ20w+LpCNVn0YMeXHqCDK?= =?us-ascii?q?6DP6zJq1+I5/wgI+2WaIESvzb8K+Iq5/jpjXIihFAdebOp0YEKZ3+mBvhmOV?= =?us-ascii?q?mWYWLwgtcdFmcHpgQ+TPb0h1KcSjFTfGu9U7sl5jEmFo2mFpvDRoGqgLyHxy?= =?us-ascii?q?e2BZNWZnpYBV+SCnjobJiLV+0LaCKILc8y2gADAOyvUYIs3wqi8RbnxqF7L+?= =?us-ascii?q?3S4QUWr5/u3sN5oerJmkdh2yZzCpHJ/GiHVWB5miUtQC4/2qdXrUhnjFuOh/?= =?us-ascii?q?sry8dEHMBesqsaGjwxMoTRmrR3?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EgAwCHoM9e/xiKuApmgQmBSoEhgWM?= =?us-ascii?q?UgTMKhXipIYF8CwEBAQEBAQEBAQcBFA8MBAEBAoFOgT6BNgKCHSU0CQ4CAwE?= =?us-ascii?q?MAQEGAQEBAQEGBAEBAoZADII7Inh+AQEBAQEBAQEBAQEBAQEBAQEBARYCDTY?= =?us-ascii?q?eNxJTXgFHORQSAQQTCIMfgX6BDa8tgTSFUYUmgTiOXodGBBqBfxeFJwSOW4E?= =?us-ascii?q?ZiBmBL4lZkCUHgVaJLJAvJ5BHjUauQQIEAgQFAhWBU4IQcYM4CUcYDZAchEm?= =?us-ascii?q?EYYVCdAI1AgYBBwEBAwmMS4EQAQE?= X-IronPort-AV: E=Sophos;i="5.73,444,1583190000"; d="scan'208,217";a="36861121" From: To: Subject: HW timestamping e1000 Thread-Topic: HW timestamping e1000 Thread-Index: AdY034vvgIH1zO4OQsGEhpyMhkP0eQ== Date: Thu, 28 May 2020 11:31:04 +0000 Message-ID: <21b2a889fc064188bf51da27211ab462@dlr.de> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tm-snts-smtp: F4DB8CC9DB48F22E7CEBDDC842EBBD9340992E9A75531D58150F04A5B2B35B512000:8 MIME-Version: 1.0 X-Rspamd-Queue-Id: 49XlrX1N2rz4SNJ X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of Gabriel.Moyano@dlr.de designates 194.94.201.12 as permitted sender) smtp.mailfrom=Gabriel.Moyano@dlr.de X-Spamd-Result: default: False [1.18 / 15.00]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dlr.de]; NEURAL_SPAM_MEDIUM(0.16)[0.161]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.27)[0.267]; RCVD_IN_DNSWL_MED(-0.20)[194.94.201.12:from]; NEURAL_SPAM_LONG(0.26)[0.255]; FROM_NO_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:680, ipnet:194.94.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2020 11:31:08 -0000 Hi everybody, Currently I am writing a piece of code to test HW timestamping on e1000 dur= ing reception, which runs on FreeBSD 12, but unfortunately it seems that it= isn't working. The socket is created and configured as follows: sockfd =3D socket(AF_INET, SOCK_DGRAM, 0); int on =3D 1; setsockopt(sockfd, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on)); After recvmsg() is called, cmsg_type of received control messages are print= ed out with help of the control message routines (https://www.freebsd.org/c= gi/man.cgi?query=3DCMSG_DATA). SCM_TIME_INFO should be printed out but it's= not. Is there any configuration missing? Does e1000 support HW timestamping righ= t? I will appreciate any help. Best regards, Gabriel -------------------------- Deutsches Zentrum f=FCr Luft- und Raumfahrt e.V. (DLR) Institute for Software Technology | SC-OSS | Lilienthalplatz 7 | 38108 Brau= nschweig | Germany Gabriel Moyano | Research Scientist in Onboard Software Systems group gabriel.moyano@dlr.de DLR.de