Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807258/?format=api
{ "id": 807258, "url": "http://patchwork.ozlabs.org/api/patches/807258/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170829200759.13975-3-willemdebruijn.kernel@gmail.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170829200759.13975-3-willemdebruijn.kernel@gmail.com>", "list_archive_url": null, "date": "2017-08-29T20:07:59", "name": "[RFC,2/2] virtio_net: enable probing for NEEDS_RESET support", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "98c9ccb48de02fac6c7e5a589752b8dd163399c8", "submitter": { "id": 67615, "url": "http://patchwork.ozlabs.org/api/people/67615/?format=api", "name": "Willem de Bruijn", "email": "willemdebruijn.kernel@gmail.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170829200759.13975-3-willemdebruijn.kernel@gmail.com/mbox/", "series": [ { "id": 458, "url": "http://patchwork.ozlabs.org/api/series/458/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=458", "date": "2017-08-29T20:07:57", "name": "virtio-net: implement reset request", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/458/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807258/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807258/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"ZE7kSYAa\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xhfp16cJ3z9sP5\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 30 Aug 2017 06:08:09 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751291AbdH2UIH (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 29 Aug 2017 16:08:07 -0400", "from mail-qt0-f193.google.com ([209.85.216.193]:38143 \"EHLO\n\tmail-qt0-f193.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751237AbdH2UIE (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 29 Aug 2017 16:08:04 -0400", "by mail-qt0-f193.google.com with SMTP id d15so3681248qta.5\n\tfor <netdev@vger.kernel.org>; Tue, 29 Aug 2017 13:08:04 -0700 (PDT)", "from willemb1.nyc.corp.google.com ([100.101.212.81])\n\tby smtp.gmail.com with ESMTPSA id\n\tb139sm979517qkc.57.2017.08.29.13.08.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 29 Aug 2017 13:08:03 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=GLJuHC/QMSyQEaIdPy13OpMSTj4HNGCGSp3muiuhEk8=;\n\tb=ZE7kSYAaSDK5ybfRtIKr8lSc5kRw/xapf4cDSZemegQoNfbuzLBjWiQvj3ItVpBtRv\n\tEsCQxoNWqyfDeUvr7fPipfUW/D/4DRPsM7J6jS2k7H/L575Dt/BfgcyktqiZjoLQZdWW\n\tPOR9EUfYga8lum1EMkKCKUpiYTo/jXRjss7YSJzpIpifikH1PobxOI5ddrMITbM0ZfDr\n\tvPUlHzg7kSHGD69JotB2nKkRiF+ApffBi1y471e/5+QS88UrTua2yi5LAgfvQIQyoise\n\trvCzd4py+VF6X0gAGcIJcSqMYsEYiDfxWcpA+e53KOiYmJLUiPTVyYP/gvfbvdovzdEX\n\tjhEg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=GLJuHC/QMSyQEaIdPy13OpMSTj4HNGCGSp3muiuhEk8=;\n\tb=WBlthBniHFmRdYk5wcTG5Spy2a6JsuDD3u/W4WSWNI38qWK571wvK8FGsurn3gAw3L\n\tZpirjjGh/QRgG4DN9oERiPUubkbWY2TuGVmut0qpCTKQyy3p0Wp0CfryMbLaRzxDfjLb\n\twZikfagVctPTa0uOAuURuzvaFrWUpOj2I91RfhN1U2vKlRZfWK2lAOc8bOmZj2wMJ/tE\n\tPgmBglodFt4aeale8eqqGKLSw1fSlxRpCu++xSPHmjIMhLnOfxR8L10ORskAfi7RFj59\n\tCiA/bSnNIRcxyZEEzFpZ/134INg5/gXChSi3TlzX0IVg1uzh5T2rqzTtGQNEADPkoCy8\n\tHv7g==", "X-Gm-Message-State": "AHYfb5iiZliPrAhlz31JkNlGZczY9kZCq9I7NvyXcpd8VzDb4k0DbR4i\n\t6Ye6r6SLSNWoZdNUFTk=", "X-Received": "by 10.200.4.4 with SMTP id v4mr8218073qtg.22.1504037283829;\n\tTue, 29 Aug 2017 13:08:03 -0700 (PDT)", "From": "Willem de Bruijn <willemdebruijn.kernel@gmail.com>", "To": "netdev@vger.kernel.org", "Cc": "mst@redhat.com, jasowang@redhat.com,\n\tvirtualization@lists.linux-foundation.org,\n\tWillem de Bruijn <willemb@google.com>", "Subject": "[PATCH RFC 2/2] virtio_net: enable probing for NEEDS_RESET support", "Date": "Tue, 29 Aug 2017 16:07:59 -0400", "Message-Id": "<20170829200759.13975-3-willemdebruijn.kernel@gmail.com>", "X-Mailer": "git-send-email 2.14.1.342.g6490525c54-goog", "In-Reply-To": "<20170829200759.13975-1-willemdebruijn.kernel@gmail.com>", "References": "<20170829200759.13975-1-willemdebruijn.kernel@gmail.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Willem de Bruijn <willemb@google.com>\n\nImplement a mechanism to signal that a virtio device implements the\nVIRTIO_CONFIG_S_NEEDS_RESET command.\n\nTesting for VIRTIO_CONFIG_S_NEEDS_RESET support by issuing the request\nand verifying the reset state would require an expensive state change.\n\nTo avoid that, add a status bit to the feature register used during\nfeature negotiation between host and guest.\n\nSet the bit for virtio-net, which supports the feature.\n\nSigned-off-by: Willem de Bruijn <willemb@google.com>\n---\n drivers/net/virtio_net.c | 2 ++\n include/uapi/linux/virtio_config.h | 3 +++\n 2 files changed, 5 insertions(+)", "diff": "diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c\nindex 5e349226f7c1..15483a982106 100644\n--- a/drivers/net/virtio_net.c\n+++ b/drivers/net/virtio_net.c\n@@ -2801,12 +2801,14 @@ static struct virtio_device_id id_table[] = {\n \n static unsigned int features[] = {\n \tVIRTNET_FEATURES,\n+\tVIRTIO_F_CAN_RESET,\n };\n \n static unsigned int features_legacy[] = {\n \tVIRTNET_FEATURES,\n \tVIRTIO_NET_F_GSO,\n \tVIRTIO_F_ANY_LAYOUT,\n+\tVIRTIO_F_CAN_RESET,\n };\n \n static struct virtio_driver virtio_net_driver = {\ndiff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h\nindex 308e2096291f..726be44a04d3 100644\n--- a/include/uapi/linux/virtio_config.h\n+++ b/include/uapi/linux/virtio_config.h\n@@ -56,6 +56,9 @@\n * suppressed them? */\n #define VIRTIO_F_NOTIFY_ON_EMPTY\t24\n \n+/* Driver supports the VIRTIO_CONFIG_S_NEEDS_RESET command */\n+#define VIRTIO_F_CAN_RESET\t\t25\n+\n /* Can the device handle any descriptor layout? */\n #define VIRTIO_F_ANY_LAYOUT\t\t27\n #endif /* VIRTIO_CONFIG_NO_LEGACY */\n", "prefixes": [ "RFC", "2/2" ] }