Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp34997rdh; Mon, 18 Dec 2023 03:42:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtFxExBiT9+l5rVIygM1cDt6PAfU7yyHpENEymzTtDeaUSOe0+kDOfKYdQ2FwxoRbo6QJG X-Received: by 2002:a17:907:7d8c:b0:a1d:58ff:df2b with SMTP id oz12-20020a1709077d8c00b00a1d58ffdf2bmr9470223ejc.17.1702899744854; Mon, 18 Dec 2023 03:42:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702899744; cv=none; d=google.com; s=arc-20160816; b=dfjUrWKpPXEmcx33W67AFU11CGmfRZzRRdfsEcTmNL0NBJU4mNM914vWhQdGF3vQcv J2/xVdL+C4wUfYN4U/HAEiTPIGm29aOgNnjxsklz7ne5V6x2AoLXz9VcGy4FzmIutEab e2NkJjBjUcZz18smFXy4tc0Te518Rzhs3LohzzFFcD0H7tR5b284+NuWyKoB9N5dk299 B2Orj8g+zuURH99ZtWDH3oZHXaLP0zCDCGX+/rh+AYMHAaDIAhTcP08z77zm37a7kvb3 MD+YvHwFtrjYHdiwz6eOOoCWkkk3kB1ioSQnu12lngEmXFWXjIJvRY02+UcS2xB0gVCr Q9MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from; bh=vsC3l/emwhm0QfFlaU0Ga8C/fqK81akcsQLOjpXTzSc=; fh=Q7ZN18fsfXWgv5t2C6g8XMh6el8ClhFg30gCILP61IA=; b=HXju9NQ+riJtWNZ8r3XNtz/yTHRfjUrC/fCDTgfNk/8EliaWGzf7pkJLkfHcsKPqN5 iOOvWBe3DK22ewwkx8Q47dg4LG/g1Voux8egS7IgzPkk/SlbNvLCpSn9FxSxilup6Nr2 FHwB5s3g7O3X74pPOeN0uDlsq0gFNznFhfuzwXt5dJLX+bcz/HqbJZqwjd8kZv5a/WnK ugdX+mf09otcHW6+vlap/clc6jtwqi0BSSCRjQp51nOeww+9/9ex90oqjLSIor0TIgDO eQt1dDOhHTeX2xY3UyFTahSGwZQNQNCVLMgD5DAtwBndRGsq3YsbOqLcQX7nCh68Gw+8 ua7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3459-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a25-20020a1709064a5900b00a235f39d93asi481777ejv.55.2023.12.18.03.42.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:42:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3459-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6CA651F22B23 for ; Mon, 18 Dec 2023 11:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E58C020339; Mon, 18 Dec 2023 11:38:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73CA433CCD for ; Mon, 18 Dec 2023 11:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=ratatoskr.trumtrar.info) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rFBwX-0000Vp-EK; Mon, 18 Dec 2023 12:37:53 +0100 From: Steffen Trumtrar Subject: [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time Date: Mon, 18 Dec 2023 12:37:07 +0100 Message-Id: <20231218-v6-7-topic-virtio-net-ptp-v1-0-cac92b2d8532@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOMugGUC/x2MwQoCIRBAf0Xm3EC6UtE16AO6LnvYdKy5qKhII P77Dh0fvPcGVCpMFe5qQKHOlVMU0CcF7rvHDyF7YTBns2ijb9gveMWWMjvsXBonjNQwt4yLDyK 9nQ3Wg/S5UODf/73C6/mAbc4DwNay03AAAAA= To: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran Cc: virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Willem de Bruijn X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1880; i=s.trumtrar@pengutronix.de; h=from:subject:message-id; bh=TKUejtEOd2oK/lH8xrpsJNcmj6/cscNhZ+kAb5XG3TM=; b=owGbwMvMwCUmvd38QH3grB+Mp9WSGFIb9H6W3p4j5SSVbV8ro7yis3W/8rtnSkbdT4v3P/jRofAn 7c+KjlIWBjEuBlkxRZbItYc0Ngt/1vly/DwDzBxWJpAhDFycAjARfhuGv/KbBbzj91X9bL8To+bfGv ni3KRbC6vFzitrnmJfdE3ilgMjw6rFtquNA54uLmt0bnj/Vs63z+pb5kt1N/31kml5N9Rz2QA= X-Developer-Key: i=s.trumtrar@pengutronix.de; a=openpgp; fpr=59ADC228B313F32CF4C7CF001BB737C07F519AF8 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: s.trumtrar@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org This series tries to pick up the work on the virtio-net timestamping feature from Willem de Bruijn. Original series Message-Id: 20210208185558.995292-1-willemdebruijn.kernel@gmail.com Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time From: Willem de Bruijn RFC for four new features to the virtio network device: 1. pass tx flow state to host, for routing + telemetry 2. pass rx tstamp to guest, for better RTT estimation 3. pass tx tstamp to guest, idem 3. pass tx delivery time to host, for accurate pacing All would introduce an extension to the virtio spec. The original series consisted of a hack around the DMA API, which should be fixed in this series. The changes in this series are to the driver side. For the changes to qemu see: https://github.com/strumtrar/qemu/tree/v8.1.1/virtio-net-ptp Currently only virtio-net is supported. The original series used vhost-net as backend. However, the path through tun via sendmsg doesn't allow us to write data back to the driver side without any hacks. Therefore use the way via plain virtio-net without vhost albeit better performance. Signed-off-by: Steffen Trumtrar --- Willem de Bruijn (4): virtio-net: support transmit hash report virtio-net: support receive timestamp virtio-net: support transmit timestamp virtio-net: support future packet transmit time drivers/net/virtio_net.c | 211 ++++++++++++++++++++++++++++++++++++++-- include/uapi/linux/virtio_net.h | 24 ++++- 2 files changed, 228 insertions(+), 7 deletions(-) --- base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20231218-v6-7-topic-virtio-net-ptp-3df023bc4f4d Best regards, -- Steffen Trumtrar