Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/809018/?format=api
{ "id": 809018, "url": "http://patchwork.ozlabs.org/api/patches/809018/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170901213007.10325-5-haiyangz@exchange.microsoft.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": "<20170901213007.10325-5-haiyangz@exchange.microsoft.com>", "list_archive_url": null, "date": "2017-09-01T21:30:07", "name": "[net-next,4/4] hv_netvsc: Fix the channel limit in netvsc_set_rxfh()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "32a183e18f3d661eaff861672ae607f13105de20", "submitter": { "id": 69452, "url": "http://patchwork.ozlabs.org/api/people/69452/?format=api", "name": "Haiyang Zhang", "email": "haiyangz@exchange.microsoft.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/20170901213007.10325-5-haiyangz@exchange.microsoft.com/mbox/", "series": [ { "id": 1122, "url": "http://patchwork.ozlabs.org/api/series/1122/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1122", "date": "2017-09-01T21:30:04", "name": "cleanups and fixes of channel settings", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1122/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/809018/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809018/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>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkXWV10w5z9sPt\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 2 Sep 2017 07:32:06 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752657AbdIAVby (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 1 Sep 2017 17:31:54 -0400", "from a2nlsmtp01-03.prod.iad2.secureserver.net\n\t([198.71.225.37]:40436\n\t\"EHLO a2nlsmtp01-03.prod.iad2.secureserver.net\"\n\trhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1752663AbdIAVbY (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 1 Sep 2017 17:31:24 -0400", "from linuxonhyperv.com ([107.180.71.197])\n\tby : HOSTING RELAY : with SMTP\n\tid ntWAdsTBxGEvAntWAdczTY; Fri, 01 Sep 2017 14:30:22 -0700", "from haiyangz by linuxonhyperv.com with local (Exim 4.89)\n\t(envelope-from <haiyangz@linuxonhyperv.com>)\n\tid 1dntWA-0002he-4B; Fri, 01 Sep 2017 14:30:22 -0700" ], "x-originating-ip": "107.180.71.197", "From": "Haiyang Zhang <haiyangz@exchange.microsoft.com>", "To": "davem@davemloft.net, netdev@vger.kernel.org", "Cc": "haiyangz@microsoft.com, kys@microsoft.com, olaf@aepfle.de,\n\tvkuznets@redhat.com, linux-kernel@vger.kernel.org", "Subject": "[PATCH net-next,\n\t4/4] hv_netvsc: Fix the channel limit in netvsc_set_rxfh()", "Date": "Fri, 1 Sep 2017 14:30:07 -0700", "Message-Id": "<20170901213007.10325-5-haiyangz@exchange.microsoft.com>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20170901213007.10325-1-haiyangz@exchange.microsoft.com>", "References": "<20170901213007.10325-1-haiyangz@exchange.microsoft.com>", "Reply-To": "haiyangz@microsoft.com", "X-CMAE-Envelope": "MS4wfDWZG5MLPFuL4jFEEDv7xX5t25VkBQ98uqejIGBln2CvcNmL8ltu9I6t0P8zjPV28QAhT1SxL5rzgeezMeANFRbQ0wR1V97zomZH0RIXDSZJMqPYJ4AR\n\tk/OS9lS4hcwT1Z8BLsfiuTnPfIMnU7+LUJFJjTy1lTQWI0UCQKH+wivkZYdIh858zNCjfHjooy2rJTDvwiU8GYrZketQPWoDgWdfxulD+NoY/W6QwsCfS9dl\n\tu2M1zgvAwa0yPlnZMFMcBbbZO7o+cmvW+TBTOein2GS9jyGF0+f9gt3JATDHWSX/3uWdvExUKU6I3kZCL0UTqyNx8KAjTJGuwfFQof7sDPjm/OspCIg2LNtr\n\t1db+iMkMQd6XJcSxKKpR9on34AsiAw==", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Haiyang Zhang <haiyangz@microsoft.com>\n\nThe limit of setting receive indirection table value should be\nthe current number of channels, not the VRSS_CHANNEL_MAX.\n\nSigned-off-by: Haiyang Zhang <haiyangz@microsoft.com>\n---\n drivers/net/hyperv/netvsc_drv.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c\nindex 718d126108f6..9205235ba21c 100644\n--- a/drivers/net/hyperv/netvsc_drv.c\n+++ b/drivers/net/hyperv/netvsc_drv.c\n@@ -1407,7 +1407,7 @@ static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,\n \trndis_dev = ndev->extension;\n \tif (indir) {\n \t\tfor (i = 0; i < ITAB_NUM; i++)\n-\t\t\tif (indir[i] >= VRSS_CHANNEL_MAX)\n+\t\t\tif (indir[i] >= ndev->num_chn)\n \t\t\t\treturn -EINVAL;\n \n \t\tfor (i = 0; i < ITAB_NUM; i++)\n", "prefixes": [ "net-next", "4/4" ] }