From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B8A33235 for ; Tue, 21 Nov 2017 14:22:29 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6CF692094B; Tue, 21 Nov 2017 08:22:29 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:22:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GfNcv/JC858FYefFB p3c471tuRSw69hQRCrOOHBcNEI=; b=IRA4FwD451Srf6+fxpXroJjwpWdanVpHr Bhqpt5O8NWjoMbFC0M7815wQYptX74gyWO0KTOjFLy/NBZeSQW2IlswFkV9Fmmr5 5IqOgZJ9LVxDeKFEvWcEwhN50kVLLBX83zIlMtdPnnB7PBUbJwGzt+S3ON1B2nwV jkhpNWqzDwuQxdpGltiI7IEWcwFzm48rEjVexTH41bNdCoLCcKO+DqiYlu01YvyU hr2E7RPG9CiV7ytQ8HdQxIjzwNMwt5734ASvMjeHA+ssXbFzum7PKSOIi2MJ5S+k vYpcqhqe1hnWnN8HyEqPyZXgTJGwMIjKeioJSAhMIEwppO3cmMXXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=GfNcv/JC858FYefFBp3c471tuRSw69hQRCrOOHBcNEI=; b=SsiHUO84 6PIP6gjHJ8B6IwWZyzvFscqwiyphOseD0DMhkf11KcU7ShZbyjdDPlWXaKgIe5jx IKn65D8W8B5KzAwKcPIX23bW+KjBjQVTPZB8arfxrC9aJc1bBEc3txoUsI70j0jC FAGsD2kQBIER+NH8P5ZC/G/MNs31EBfdIhwdff5KKGNwZg8hkc9KmBYMPLOj2OVw L9woPxeBRYOhdeA6dJrxSvyacV9A3cwd7mmZoNSkHnpk43fCknfq0tkT3erWLv5J Krt6wjJ59VCS5bRrD+gdT7WlmRaxjs8aHYaz085aRaZGMnSB3p9+I8zG6UnebQd+ vYDTM6OMiI4zYQ== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id DFB9B243B9; Tue, 21 Nov 2017 08:22:23 -0500 (EST) From: Yuanhan Liu To: Rasesh Mody Cc: dpdk stable Date: Tue, 21 Nov 2017 21:16:29 +0800 Message-Id: <1511270333-31002-47-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/qede/base: fix to use a passed ptt handle' has been queued to stable release 17.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 13:22:30 -0000 Hi, FYI, your patch has been queued to stable release 17.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 8ee952b38ebe51442b0baa485dd9bf6739c4a530 Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Mon, 18 Sep 2017 18:29:50 -0700 Subject: [PATCH] net/qede/base: fix to use a passed ptt handle [ upstream commit 544927f9a43fe1318b7d347982050f2a6fe4692c ] Fix ecore_configure_vp_wfq_on_link_change() to use a provided ptt[PF translation table] handle instead of directly using p_dpc_ptt Fixes: ec94dbc57362 ("qede: add base driver") Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 1 + drivers/net/qede/base/ecore_dev.c | 4 ++-- drivers/net/qede/base/ecore_mcp.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore.h index 0d68a9b..345325f 100644 --- a/drivers/net/qede/base/ecore.h +++ b/drivers/net/qede/base/ecore.h @@ -829,6 +829,7 @@ ecore_concrete_to_sw_fid(__rte_unused struct ecore_dev *p_dev, u32 concrete_fid) int ecore_configure_vport_wfq(struct ecore_dev *p_dev, u16 vp_id, u32 rate); void ecore_configure_vp_wfq_on_link_change(struct ecore_dev *p_dev, + struct ecore_ptt *p_ptt, u32 min_pf_rate); int ecore_configure_pf_max_bandwidth(struct ecore_dev *p_dev, u8 max_bw); diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore_dev.c index 65b89b8..be55ba4 100644 --- a/drivers/net/qede/base/ecore_dev.c +++ b/drivers/net/qede/base/ecore_dev.c @@ -4820,6 +4820,7 @@ int ecore_configure_vport_wfq(struct ecore_dev *p_dev, u16 vp_id, u32 rate) /* API to configure WFQ from mcp link change */ void ecore_configure_vp_wfq_on_link_change(struct ecore_dev *p_dev, + struct ecore_ptt *p_ptt, u32 min_pf_rate) { int i; @@ -4834,8 +4835,7 @@ void ecore_configure_vp_wfq_on_link_change(struct ecore_dev *p_dev, for_each_hwfn(p_dev, i) { struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i]; - __ecore_configure_vp_wfq_on_link_change(p_hwfn, - p_hwfn->p_dpc_ptt, + __ecore_configure_vp_wfq_on_link_change(p_hwfn, p_ptt, min_pf_rate); } } diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c index 88c5ceb..cdb5cf2 100644 --- a/drivers/net/qede/base/ecore_mcp.c +++ b/drivers/net/qede/base/ecore_mcp.c @@ -1116,7 +1116,7 @@ static void ecore_mcp_handle_link_change(struct ecore_hwfn *p_hwfn, /* Mintz bandwidth configuration */ __ecore_configure_pf_min_bandwidth(p_hwfn, p_ptt, p_link, min_bw); - ecore_configure_vp_wfq_on_link_change(p_hwfn->p_dev, + ecore_configure_vp_wfq_on_link_change(p_hwfn->p_dev, p_ptt, p_link->min_pf_rate); p_link->an = !!(status & LINK_STATUS_AUTO_NEGOTIATE_ENABLED); -- 2.7.4