Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807940/?format=api
{ "id": 807940, "url": "http://patchwork.ozlabs.org/api/patches/807940/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170830222110.15737-8-saeedm@mellanox.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": "<20170830222110.15737-8-saeedm@mellanox.com>", "list_archive_url": null, "date": "2017-08-30T22:21:06", "name": "[net,07/11] net/mlx5e: Don't override user RSS upon set channels", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ee4a9b80470f8a52e66355bb7729bb168c7a4754", "submitter": { "id": 65299, "url": "http://patchwork.ozlabs.org/api/people/65299/?format=api", "name": "Saeed Mahameed", "email": "saeedm@mellanox.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/20170830222110.15737-8-saeedm@mellanox.com/mbox/", "series": [ { "id": 707, "url": "http://patchwork.ozlabs.org/api/series/707/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=707", "date": "2017-08-30T22:21:00", "name": "[net,01/11] net/mlx5e: Check for qos capability in dcbnl_initialize", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/707/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807940/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807940/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 3xjKjp2thNz9s8w\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 08:21:50 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751532AbdH3WVn (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 30 Aug 2017 18:21:43 -0400", "from mail-il-dmz.mellanox.com ([193.47.165.129]:53254 \"EHLO\n\tmellanox.co.il\" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org\n\twith ESMTP id S1751333AbdH3WVd (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 30 Aug 2017 18:21:33 -0400", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tsaeedm@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 31 Aug 2017 01:21:29 +0300", "from sws.mtl.labs.mlnx (reg-l-vrt-045-015.mtl.labs.mlnx\n\t[10.135.45.15])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7UMLSB4009018;\n\tThu, 31 Aug 2017 01:21:29 +0300" ], "From": "Saeed Mahameed <saeedm@mellanox.com>", "To": "\"David S. Miller\" <davem@davemloft.net>", "Cc": "netdev@vger.kernel.org, Inbar Karmy <inbark@mellanox.com>,\n\tSaeed Mahameed <saeedm@mellanox.com>", "Subject": "[net 07/11] net/mlx5e: Don't override user RSS upon set channels", "Date": "Thu, 31 Aug 2017 01:21:06 +0300", "Message-Id": "<20170830222110.15737-8-saeedm@mellanox.com>", "X-Mailer": "git-send-email 2.13.0", "In-Reply-To": "<20170830222110.15737-1-saeedm@mellanox.com>", "References": "<20170830222110.15737-1-saeedm@mellanox.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Inbar Karmy <inbark@mellanox.com>\n\nCurrently, increasing the number of combined channels is changing\nthe RSS spread to use the new created channels.\nPrevent the RSS spread change in case the user explicitly declare it,\nto avoid overriding user configuration.\n\nTested:\nwhen RSS default:\n\n# ethtool -L ens8 combined 4\nRSS spread will change and point to 4 channels.\n\n# ethtool -X ens8 equal 4\n# ethtool -L ens8 combined 6\nRSS will not change after increasing the number of the channels.\n\nFixes: 8bf368620486 ('ethtool: ensure channel counts are within bounds during SCHANNELS')\nSigned-off-by: Inbar Karmy <inbark@mellanox.com>\nSigned-off-by: Saeed Mahameed <saeedm@mellanox.com>\n---\n drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c\nindex 917fade5f5d5..f5594014715b 100644\n--- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c\n+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c\n@@ -641,8 +641,10 @@ int mlx5e_ethtool_set_channels(struct mlx5e_priv *priv,\n \n \tnew_channels.params = priv->channels.params;\n \tnew_channels.params.num_channels = count;\n-\tmlx5e_build_default_indir_rqt(priv->mdev, new_channels.params.indirection_rqt,\n-\t\t\t\t MLX5E_INDIR_RQT_SIZE, count);\n+\tif (!netif_is_rxfh_configured(priv->netdev))\n+\t\tmlx5e_build_default_indir_rqt(priv->mdev,\n+\t\t\t\t\t new_channels.params.indirection_rqt,\n+\t\t\t\t\t MLX5E_INDIR_RQT_SIZE, count);\n \n \tif (!test_bit(MLX5E_STATE_OPENED, &priv->state)) {\n \t\tpriv->channels.params = new_channels.params;\n", "prefixes": [ "net", "07/11" ] }