get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1038965/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1038965,
    "url": "http://patchwork.ozlabs.org/api/patches/1038965/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190208205101.12078-7-anirudh.venkataramanan@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20190208205101.12078-7-anirudh.venkataramanan@intel.com>",
    "list_archive_url": null,
    "date": "2019-02-08T20:50:53",
    "name": "[S12,06/14] ice: implement ethtool set channels",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "599502f35903610b39cfeb773703012503aca00d",
    "submitter": {
        "id": 73601,
        "url": "http://patchwork.ozlabs.org/api/people/73601/?format=api",
        "name": "Anirudh Venkataramanan",
        "email": "anirudh.venkataramanan@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190208205101.12078-7-anirudh.venkataramanan@intel.com/mbox/",
    "series": [
        {
            "id": 90914,
            "url": "http://patchwork.ozlabs.org/api/series/90914/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=90914",
            "date": "2019-02-08T20:50:49",
            "name": "Bug fixes and minor feature updates for ice",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/90914/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1038965/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1038965/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 43x6pv6VbWz9sN1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Feb 2019 07:53:43 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 445E388062;\n\tFri,  8 Feb 2019 20:53:42 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id QyVHruEZ1exV; Fri,  8 Feb 2019 20:53:39 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 98E5187F3E;\n\tFri,  8 Feb 2019 20:53:39 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id E34BA1BF97D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  8 Feb 2019 20:51:10 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 81BCC87F3E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  8 Feb 2019 20:51:06 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id bST75MeQnxSu for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  8 Feb 2019 20:51:03 +0000 (UTC)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 90AAE88081\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  8 Feb 2019 20:51:03 +0000 (UTC)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Feb 2019 12:51:02 -0800",
            "from shasta.jf.intel.com ([10.166.241.11])\n\tby fmsmga002.fm.intel.com with ESMTP; 08 Feb 2019 12:51:01 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.58,348,1544515200\"; d=\"scan'208\";a=\"141869789\"",
        "From": "Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Fri,  8 Feb 2019 12:50:53 -0800",
        "Message-Id": "<20190208205101.12078-7-anirudh.venkataramanan@intel.com>",
        "X-Mailer": "git-send-email 2.14.5",
        "In-Reply-To": "<20190208205101.12078-1-anirudh.venkataramanan@intel.com>",
        "References": "<20190208205101.12078-1-anirudh.venkataramanan@intel.com>",
        "Subject": "[Intel-wired-lan] [PATCH S12 06/14] ice: implement ethtool set\n\tchannels",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "From: Henry Tieman <henry.w.tieman@intel.com>\n\nImplement change the number of queues assigned to a VSI. This is\naccessed from the 'ethtool -L' Linux command.\n\nSigned-off-by: Henry Tieman <henry.w.tieman@intel.com>\nSigned-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>\n---\n drivers/net/ethernet/intel/ice/ice.h         |  3 +\n drivers/net/ethernet/intel/ice/ice_ethtool.c | 85 ++++++++++++++++++++++++++++\n drivers/net/ethernet/intel/ice/ice_lib.c     | 50 ++++++++++++----\n drivers/net/ethernet/intel/ice/ice_lib.h     |  2 +-\n drivers/net/ethernet/intel/ice/ice_main.c    | 54 +++++++++++++++++-\n 5 files changed, 182 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h\nindex 89440775aea1..02cbd7d92491 100644\n--- a/drivers/net/ethernet/intel/ice/ice.h\n+++ b/drivers/net/ethernet/intel/ice/ice.h\n@@ -257,6 +257,8 @@ struct ice_vsi {\n \tu16 num_txq;\t\t\t /* Used Tx queues */\n \tu16 alloc_rxq;\t\t\t /* Allocated Rx queues */\n \tu16 num_rxq;\t\t\t /* Used Rx queues */\n+\tu16 req_txq;\t\t\t /* User requested Tx queues */\n+\tu16 req_rxq;\t\t\t /* User requested Rx queues */\n \tu16 num_desc;\n \tstruct ice_tc_cfg tc_cfg;\n } ____cacheline_internodealigned_in_smp;\n@@ -381,6 +383,7 @@ static inline void ice_vsi_set_tc_cfg(struct ice_vsi *vsi)\n }\n \n void ice_set_ethtool_ops(struct net_device *netdev);\n+int ice_vsi_recfg_qs(struct ice_vsi *vsi, int new_rx, int new_tx);\n int ice_up(struct ice_vsi *vsi);\n int ice_down(struct ice_vsi *vsi);\n int ice_set_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);\ndiff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c\nindex eb8d149e317c..1be757f63876 100644\n--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c\n+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c\n@@ -2079,6 +2079,89 @@ static int ice_set_rxfh(struct net_device *netdev, const u32 *indir,\n \treturn 0;\n }\n \n+/**\n+ * ice_get_max_txq - return the maximum number of Tx queues for in a PF\n+ * @pf: pf structure\n+ */\n+static int ice_get_max_txq(struct ice_pf *pf)\n+{\n+\treturn min_t(int, num_online_cpus(),\n+\t\t     pf->hw.func_caps.common_cap.num_txq);\n+}\n+\n+/**\n+ * ice_get_max_rxq - return the maximum number of Rx queues for in a PF\n+ * @pf: pf structure\n+ */\n+static int ice_get_max_rxq(struct ice_pf *pf)\n+{\n+\treturn min_t(int, num_online_cpus(),\n+\t\t     pf->hw.func_caps.common_cap.num_rxq);\n+}\n+\n+/**\n+ * ice_get_channels - get the current and max supported channels\n+ * @dev: network interface device structure\n+ * @ch: ethtool channel data structure\n+ */\n+static void\n+ice_get_channels(struct net_device *dev, struct ethtool_channels *ch)\n+{\n+\tstruct ice_netdev_priv *np = netdev_priv(dev);\n+\tstruct ice_vsi *vsi = np->vsi;\n+\tstruct ice_pf *pf = vsi->back;\n+\n+\t/* check to see if VSI is active */\n+\tif (test_bit(__ICE_DOWN, vsi->state))\n+\t\treturn;\n+\n+\t/* report maximum channels */\n+\tch->max_rx = ice_get_max_rxq(pf);\n+\tch->max_tx = ice_get_max_txq(pf);\n+\n+\t/* report current channels */\n+\tch->rx_count = vsi->num_rxq;\n+\tch->tx_count = vsi->num_txq;\n+}\n+\n+/**\n+ * ice_set_channels - set the number channels\n+ * @dev: network interface device structure\n+ * @ch: ethtool channel data structure\n+ */\n+static int ice_set_channels(struct net_device *dev, struct ethtool_channels *ch)\n+{\n+\tstruct ice_netdev_priv *np = netdev_priv(dev);\n+\tstruct ice_vsi *vsi = np->vsi;\n+\tstruct ice_pf *pf = vsi->back;\n+\tint new_rx = 0, new_tx = 0;\n+\n+\t/* do not support changing other_count */\n+\tif (ch->other_count)\n+\t\treturn -EINVAL;\n+\n+\t/* verify request for a valid number of channels */\n+\tif (ch->rx_count > ice_get_max_rxq(pf) ||\n+\t    ch->tx_count > ice_get_max_txq(pf))\n+\t\treturn -EINVAL;\n+\n+\t/* Use new Rx value only if changed */\n+\tif (ch->rx_count != vsi->num_rxq)\n+\t\tnew_rx = ch->rx_count;\n+\n+\t/* Use new Tx value only if changed */\n+\tif (ch->tx_count != vsi->num_txq)\n+\t\tnew_tx = ch->tx_count;\n+\n+\t/* verify that we have a valid request */\n+\tif (!new_rx && !new_tx)\n+\t\treturn -EINVAL;\n+\n+\tice_vsi_recfg_qs(vsi, new_rx, new_tx);\n+\n+\treturn 0;\n+}\n+\n enum ice_container_type {\n \tICE_RX_CONTAINER,\n \tICE_TX_CONTAINER,\n@@ -2360,6 +2443,8 @@ static const struct ethtool_ops ice_ethtool_ops = {\n \t.get_rxfh_indir_size\t= ice_get_rxfh_indir_size,\n \t.get_rxfh\t\t= ice_get_rxfh,\n \t.set_rxfh\t\t= ice_set_rxfh,\n+\t.get_channels\t\t= ice_get_channels,\n+\t.set_channels\t\t= ice_set_channels,\n \t.get_ts_info\t\t= ethtool_op_get_ts_info,\n \t.get_per_queue_coalesce = ice_get_per_q_coalesce,\n \t.set_per_queue_coalesce = ice_set_per_q_coalesce,\ndiff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c\nindex 5215180d08a3..1418251b9275 100644\n--- a/drivers/net/ethernet/intel/ice/ice_lib.c\n+++ b/drivers/net/ethernet/intel/ice/ice_lib.c\n@@ -289,6 +289,14 @@ static void ice_vsi_set_num_qs(struct ice_vsi *vsi)\n \tcase ICE_VSI_PF:\n \t\tvsi->alloc_txq = pf->num_lan_tx;\n \t\tvsi->alloc_rxq = pf->num_lan_rx;\n+\t\tif (vsi->req_txq) {\n+\t\t\tvsi->alloc_txq = vsi->req_txq;\n+\t\t\tvsi->num_txq = vsi->req_txq;\n+\t\t}\n+\t\tif (vsi->req_rxq) {\n+\t\t\tvsi->alloc_rxq = vsi->req_rxq;\n+\t\t\tvsi->num_rxq = vsi->req_rxq;\n+\t\t}\n \t\tvsi->num_desc = ALIGN(ICE_DFLT_NUM_DESC, ICE_REQ_DESC_MULTIPLE);\n \t\tvsi->num_q_vectors = max_t(int, pf->num_lan_rx, pf->num_lan_tx);\n \t\tbreak;\n@@ -818,6 +826,9 @@ static void ice_vsi_setup_q_map(struct ice_vsi *vsi, struct ice_vsi_ctx *ctxt)\n \t\t\t\tmax_rss = ICE_MAX_SMALL_RSS_QS;\n \t\t\tqcount_rx = min_t(int, rx_numq_tc, max_rss);\n \t\t\tqcount_rx = min_t(int, qcount_rx, vsi->rss_size);\n+\t\t\tif (!vsi->req_rxq)\n+\t\t\t\tqcount_rx = min_t(int, qcount_rx,\n+\t\t\t\t\t\t  vsi->rss_size);\n \t\t}\n \t}\n \n@@ -905,11 +916,12 @@ static void ice_set_rss_vsi_ctx(struct ice_vsi_ctx *ctxt, struct ice_vsi *vsi)\n /**\n  * ice_vsi_init - Create and initialize a VSI\n  * @vsi: the VSI being configured\n+ * @init_vsi: is this call creating a VSI\n  *\n  * This initializes a VSI context depending on the VSI type to be added and\n  * passes it down to the add_vsi aq command to create a new VSI.\n  */\n-static int ice_vsi_init(struct ice_vsi *vsi)\n+static int ice_vsi_init(struct ice_vsi *vsi, bool init_vsi)\n {\n \tstruct ice_pf *pf = vsi->back;\n \tstruct ice_hw *hw = &pf->hw;\n@@ -930,7 +942,8 @@ static int ice_vsi_init(struct ice_vsi *vsi)\n \t\tctxt->vf_num = vsi->vf_id + hw->func_caps.vf_base_id;\n \t\tbreak;\n \tdefault:\n-\t\treturn -ENODEV;\n+\t\tret = -ENODEV;\n+\t\tgoto out;\n \t}\n \n \tice_set_dflt_vsi_ctx(ctxt);\n@@ -945,11 +958,22 @@ static int ice_vsi_init(struct ice_vsi *vsi)\n \tctxt->info.sw_id = vsi->port_info->sw_id;\n \tice_vsi_setup_q_map(vsi, ctxt);\n \n-\tret = ice_add_vsi(hw, vsi->idx, ctxt, NULL);\n-\tif (ret) {\n-\t\tdev_err(&pf->pdev->dev,\n-\t\t\t\"Add VSI failed, err %d\\n\", ret);\n-\t\treturn -EIO;\n+\tif (init_vsi) {\n+\t\tret = ice_add_vsi(hw, vsi->idx, ctxt, NULL);\n+\t\tif (ret) {\n+\t\t\tdev_err(&pf->pdev->dev,\n+\t\t\t\t\"Add VSI failed, err %d\\n\", ret);\n+\t\t\tret = -EIO;\n+\t\t\tgoto out;\n+\t\t}\n+\t} else {\n+\t\tret = ice_update_vsi(hw, vsi->idx, ctxt, NULL);\n+\t\tif (ret) {\n+\t\t\tdev_err(&pf->pdev->dev,\n+\t\t\t\t\"Update VSI failed, err %d\\n\", ret);\n+\t\t\tret = -EIO;\n+\t\t\tgoto out;\n+\t\t}\n \t}\n \n \t/* keep context for update VSI operations */\n@@ -958,6 +982,7 @@ static int ice_vsi_init(struct ice_vsi *vsi)\n \t/* record VSI number returned */\n \tvsi->vsi_num = ctxt->vsi_num;\n \n+out:\n \tdevm_kfree(&pf->pdev->dev, ctxt);\n \treturn ret;\n }\n@@ -2133,7 +2158,7 @@ ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,\n \tice_vsi_set_tc_cfg(vsi);\n \n \t/* create the VSI */\n-\tret = ice_vsi_init(vsi);\n+\tret = ice_vsi_init(vsi, true);\n \tif (ret)\n \t\tgoto unroll_get_qs;\n \n@@ -2587,10 +2612,11 @@ int ice_vsi_release(struct ice_vsi *vsi)\n /**\n  * ice_vsi_rebuild - Rebuild VSI after reset\n  * @vsi: VSI to be rebuild\n+ * @init_vsi: is this an initialization or a reconfigure of the VSI\n  *\n  * Returns 0 on success and negative value on failure\n  */\n-int ice_vsi_rebuild(struct ice_vsi *vsi)\n+int ice_vsi_rebuild(struct ice_vsi *vsi, bool init_vsi)\n {\n \tu16 max_txqs[ICE_MAX_TRAFFIC_CLASS] = { 0 };\n \tstruct ice_pf *pf;\n@@ -2609,11 +2635,15 @@ int ice_vsi_rebuild(struct ice_vsi *vsi)\n \tice_vsi_clear_rings(vsi);\n \tice_vsi_free_arrays(vsi, false);\n \tice_dev_onetime_setup(&vsi->back->hw);\n+\tif (vsi->req_txq || vsi->req_rxq)\n+\t\tice_vsi_put_qs(vsi);\n \tice_vsi_set_num_qs(vsi);\n+\tif (vsi->req_txq || vsi->req_rxq)\n+\t\tice_vsi_get_qs(vsi);\n \tice_vsi_set_tc_cfg(vsi);\n \n \t/* Initialize VSI struct elements and create VSI in FW */\n-\tret = ice_vsi_init(vsi);\n+\tret = ice_vsi_init(vsi, init_vsi);\n \tif (ret < 0)\n \t\tgoto err_vsi;\n \ndiff --git a/drivers/net/ethernet/intel/ice/ice_lib.h b/drivers/net/ethernet/intel/ice/ice_lib.h\nindex 7988a53729a9..7f8b08863dad 100644\n--- a/drivers/net/ethernet/intel/ice/ice_lib.h\n+++ b/drivers/net/ethernet/intel/ice/ice_lib.h\n@@ -54,7 +54,7 @@ int ice_free_res(struct ice_res_tracker *res, u16 index, u16 id);\n int\n ice_get_res(struct ice_pf *pf, struct ice_res_tracker *res, u16 needed, u16 id);\n \n-int ice_vsi_rebuild(struct ice_vsi *vsi);\n+int ice_vsi_rebuild(struct ice_vsi *vsi, bool init_vsi);\n \n bool ice_is_reset_in_progress(unsigned long *state);\n \ndiff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c\nindex d353de4456f5..ad1bd3fe1f34 100644\n--- a/drivers/net/ethernet/intel/ice/ice_main.c\n+++ b/drivers/net/ethernet/intel/ice/ice_main.c\n@@ -3382,7 +3382,7 @@ static int ice_vsi_rebuild_all(struct ice_pf *pf)\n \t\tif (pf->vsi[i]->type == ICE_VSI_VF)\n \t\t\tcontinue;\n \n-\t\terr = ice_vsi_rebuild(pf->vsi[i]);\n+\t\terr = ice_vsi_rebuild(pf->vsi[i], true);\n \t\tif (err) {\n \t\t\tdev_err(&pf->pdev->dev,\n \t\t\t\t\"VSI at index %d rebuild failed\\n\",\n@@ -3552,6 +3552,58 @@ static void ice_rebuild(struct ice_pf *pf)\n \tdev_err(dev, \"Rebuild failed, unload and reload driver\\n\");\n }\n \n+/**\n+ * ice_vsi_recfg_qs - Change the number of queues on a VSI\n+ * @vsi: VSI being changed\n+ * @new_rx: new number of Rx queues\n+ * @new_tx: new number of Tx queues\n+ *\n+ * Only change the number of queues if new_tx, or new_rx is non-0.\n+ *\n+ * Returns 0 on success.\n+ */\n+int ice_vsi_recfg_qs(struct ice_vsi *vsi, int new_rx, int new_tx)\n+{\n+\tstruct ice_pf *pf = vsi->back;\n+\tint err = 0, timeout = 50;\n+\n+\tif (!new_rx && !new_tx)\n+\t\treturn -EINVAL;\n+\n+\twhile (test_and_set_bit(__ICE_CFG_BUSY, pf->state)) {\n+\t\ttimeout--;\n+\t\tif (!timeout)\n+\t\t\treturn -EBUSY;\n+\t\tusleep_range(1000, 2000);\n+\t}\n+\n+\t/* set for the next time the netdev is started */\n+\tif (!netif_running(vsi->netdev)) {\n+\t\tif (new_tx)\n+\t\t\tvsi->req_txq = new_tx;\n+\t\tif (new_rx)\n+\t\t\tvsi->req_rxq = new_rx;\n+\n+\t\tdev_dbg(&pf->pdev->dev, \"Link is down, queue count change happens when link is brought up\\n\");\n+\t\tgoto done;\n+\t}\n+\n+\tice_vsi_close(vsi);\n+\n+\tif (new_tx)\n+\t\tvsi->req_txq = new_tx;\n+\n+\tif (new_rx)\n+\t\tvsi->req_rxq = new_rx;\n+\n+\tice_vsi_rebuild(vsi, false);\n+\n+\tice_vsi_open(vsi);\n+done:\n+\tclear_bit(__ICE_CFG_BUSY, pf->state);\n+\treturn err;\n+}\n+\n /**\n  * ice_change_mtu - NDO callback to change the MTU\n  * @netdev: network interface device structure\n",
    "prefixes": [
        "S12",
        "06/14"
    ]
}