From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 153D4C433E6 for ; Mon, 8 Feb 2021 18:58:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C53E264E75 for ; Mon, 8 Feb 2021 18:58:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235136AbhBHS6N (ORCPT ); Mon, 8 Feb 2021 13:58:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235906AbhBHS4m (ORCPT ); Mon, 8 Feb 2021 13:56:42 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B00DC06178C for ; Mon, 8 Feb 2021 10:56:02 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id o21so2219540qtr.3 for ; Mon, 08 Feb 2021 10:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PvwDibSqionGUMaIW7fX8WGczOxj5MLsnicm5PTCNvk=; b=jep7KXYV4ExWJl47hFOg8XN6oE6fOlXD39bAUtpnSXPM/8knz03tVv28HzfACdCURm ZodldbPw6kYw4wVNnSNH9dGRQw7Fsmt63WunGTYYAkWw5ZfLb6EeB5YEnP9UFB6yBe1T UeuGE2nBIODzNYWVzIoVOMC20pC/Esh/Xf9r5wrd1BZvD6yWum71D4t+flhOOwtXhSwV ILo6DNSxKFLtyVCkAJoHj6i0+H8UHiPNIhnS4+WhTN+IrePN/AWgH6oJyPkwiuLABTsY 3BOmtE9vZy/ebnCxGjSNmCNHKi2A3ttJOoIsOokLOotbJigpguowQpy2mpieCxB2o3i1 mLOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PvwDibSqionGUMaIW7fX8WGczOxj5MLsnicm5PTCNvk=; b=Fd27b7Y8BHQNaInGsd1xHXUijeo+seVZcB0L4607b8yvDyi8r0boP7uyYx2dT1sFr6 On9AVW3dZSH84H1+uqQmJNmqGvNPFcpsIlk+vyu7FsC/oSp6XwRxNUqObqKtxudRCOKi EkwvBMAVG3b2fjP2EgPSJcQh9JzA9eYcJq6SvaQ+L36fBVB5YPJpjs0Uq8+eRG3mhJTa nVN4t3gP13VckrTlAqevbcj6UsX1Pql3OzrwZSq0P1zhWQ+eP6zAC1qigKjfSLRdiNJF qevu3yCWqfoFhvBPvLzBFm/nE8mkD1yC6IwBsniaV18JTu4Zoiv0rv7L+s6DpQS7ExoI P1NQ== X-Gm-Message-State: AOAM532icx+xRA0V5sGHEJlZQ6Y0ZHg4o6Yi4R9NTG6wm7IGd/Kwqi4a Va1SA2M3hXK2ydiVIRmp8S0= X-Google-Smtp-Source: ABdhPJwu2s7LwojmiLLpCb/ffJb1Imze4ED2pNvOdRx2MWtKJQearbN4K5lnq9hKZaj8YaBdFu4MZA== X-Received: by 2002:ac8:4706:: with SMTP id f6mr13928451qtp.75.1612810561269; Mon, 08 Feb 2021 10:56:01 -0800 (PST) Received: from willemb.nyc.corp.google.com ([2620:0:1003:312:f109:45d3:805f:3b83]) by smtp.gmail.com with ESMTPSA id q25sm17370744qkq.32.2021.02.08.10.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 10:56:00 -0800 (PST) From: Willem de Bruijn To: virtualization@lists.linux-foundation.org Cc: netdev@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, richardcochran@gmail.com, Willem de Bruijn Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time Date: Mon, 8 Feb 2021 13:55:54 -0500 Message-Id: <20210208185558.995292-1-willemdebruijn.kernel@gmail.com> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Willem de Bruijn RFCv2 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. Concurrently with code review I will write ballots to https://www.oasis-open.org/committees/ballots.php?wg_abbrev=virtio These changes are to the driver side. Evaluation additionally requires achanges to qemu and at least one back-end. I implemented preliminary support in Linux vhost-net. Both patches available through github at https://github.com/wdebruij/linux/tree/virtio-net-txhash-2 https://github.com/wdebruij/qemu/tree/virtio-net-txhash-2 Changes RFC -> RFCv2 - add transmit timestamp patch - see individual patches for other changes 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 | 193 +++++++++++++++++++++++++++++++- drivers/virtio/virtio_ring.c | 3 +- include/linux/virtio.h | 1 + include/uapi/linux/virtio_net.h | 24 +++- 4 files changed, 214 insertions(+), 7 deletions(-) -- 2.30.0.478.g8a0d178c01-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E02C4C433E0 for ; Mon, 8 Feb 2021 18:56:06 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59C9264E74 for ; Mon, 8 Feb 2021 18:56:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59C9264E74 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=virtualization-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 03A23870BE; Mon, 8 Feb 2021 18:56:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WRE9t8DmPrMm; Mon, 8 Feb 2021 18:56:05 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 5E386870BB; Mon, 8 Feb 2021 18:56:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2B127C0891; Mon, 8 Feb 2021 18:56:05 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 93B7EC013A for ; Mon, 8 Feb 2021 18:56:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7AD11870BC for ; Mon, 8 Feb 2021 18:56:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id evNN8Ce-rjXt for ; Mon, 8 Feb 2021 18:56:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by hemlock.osuosl.org (Postfix) with ESMTPS id A39E9870BB for ; Mon, 8 Feb 2021 18:56:02 +0000 (UTC) Received: by mail-qt1-f181.google.com with SMTP id e15so11093650qte.9 for ; Mon, 08 Feb 2021 10:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PvwDibSqionGUMaIW7fX8WGczOxj5MLsnicm5PTCNvk=; b=jep7KXYV4ExWJl47hFOg8XN6oE6fOlXD39bAUtpnSXPM/8knz03tVv28HzfACdCURm ZodldbPw6kYw4wVNnSNH9dGRQw7Fsmt63WunGTYYAkWw5ZfLb6EeB5YEnP9UFB6yBe1T UeuGE2nBIODzNYWVzIoVOMC20pC/Esh/Xf9r5wrd1BZvD6yWum71D4t+flhOOwtXhSwV ILo6DNSxKFLtyVCkAJoHj6i0+H8UHiPNIhnS4+WhTN+IrePN/AWgH6oJyPkwiuLABTsY 3BOmtE9vZy/ebnCxGjSNmCNHKi2A3ttJOoIsOokLOotbJigpguowQpy2mpieCxB2o3i1 mLOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PvwDibSqionGUMaIW7fX8WGczOxj5MLsnicm5PTCNvk=; b=Ptk/Y5Mr/oXQZHUh1LhW91eicewkvFdMukC2cQTsruyPUik8eGUYowyneI3JKF65Oc QCRtYHyvYkQbfM4yvnqlaSa+RVSKeeGXVEanhoqPOPNjPq52ELhKankpjKon3gvGy6dq B1wRKIuwhrtMk7CiJcxUUw0GTxz/5vnP+Z0VXCCOnSGNsWSkVVdSK+Yf1aiuWVB6Degx zoXjWWOSOE0nrR8ZlLewIesErALbhZ5+dipct8Y6GacxcuvuXGZjA0/s3zUcnJMv6YHn JndZpjV8MYaiY4fvHvzZBnIVm6+ttO6b5W2pXUt0/AOIRwNYC/acIYNdbo400hOy30Rp H/yg== X-Gm-Message-State: AOAM530b2QwyGM0KxdSYynNbFQgbVKSjDKmEJ74oAi88+Jz7Uf1qEda8 HgyVh6GTf1QyQU5sudLO0WxTA7TEI0Q= X-Google-Smtp-Source: ABdhPJwu2s7LwojmiLLpCb/ffJb1Imze4ED2pNvOdRx2MWtKJQearbN4K5lnq9hKZaj8YaBdFu4MZA== X-Received: by 2002:ac8:4706:: with SMTP id f6mr13928451qtp.75.1612810561269; Mon, 08 Feb 2021 10:56:01 -0800 (PST) Received: from willemb.nyc.corp.google.com ([2620:0:1003:312:f109:45d3:805f:3b83]) by smtp.gmail.com with ESMTPSA id q25sm17370744qkq.32.2021.02.08.10.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 10:56:00 -0800 (PST) From: Willem de Bruijn To: virtualization@lists.linux-foundation.org Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time Date: Mon, 8 Feb 2021 13:55:54 -0500 Message-Id: <20210208185558.995292-1-willemdebruijn.kernel@gmail.com> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog MIME-Version: 1.0 Cc: Willem de Bruijn , netdev@vger.kernel.org, richardcochran@gmail.com, mst@redhat.com X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" From: Willem de Bruijn RFCv2 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. Concurrently with code review I will write ballots to https://www.oasis-open.org/committees/ballots.php?wg_abbrev=virtio These changes are to the driver side. Evaluation additionally requires achanges to qemu and at least one back-end. I implemented preliminary support in Linux vhost-net. Both patches available through github at https://github.com/wdebruij/linux/tree/virtio-net-txhash-2 https://github.com/wdebruij/qemu/tree/virtio-net-txhash-2 Changes RFC -> RFCv2 - add transmit timestamp patch - see individual patches for other changes 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 | 193 +++++++++++++++++++++++++++++++- drivers/virtio/virtio_ring.c | 3 +- include/linux/virtio.h | 1 + include/uapi/linux/virtio_net.h | 24 +++- 4 files changed, 214 insertions(+), 7 deletions(-) -- 2.30.0.478.g8a0d178c01-goog _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization