From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 563421B249 for ; Mon, 30 Oct 2017 16:37:31 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id m72so10953689wmc.0 for ; Mon, 30 Oct 2017 08:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3sgpF9szYYhjPYdfjqFvQDiP4dGG9d2JIc/GqDIjYwg=; b=g4mojiDe/TAF84jlgK3FnTuYADali73rO6zXD2xyJVEQXFgmICT+PZKw+V+s5HFQXv PLdvar0at6piQfaqnMLGHj0UhvzPzkWV/lbYH5MFU26m6hxRDjGiE6+9p8QkA/2t5GaX /h9Kzqd8bS7oaWUAukNEidvAExr1pkc8JKpiFvW7xugsGIYXsM0MJu7k6a8JDhDKtYhr 3x+Nlmn+1rECbYzaewbTQlY/8xeFEFDSW2hxSuiniGe87aRkopY0ZJLr66g+MgSwMj5N 7V6dQl1uWRWmdFudQITTRTLffZAufdfUSQR0B1r++QIwQfZDdECETnqBug7URXT2+bz3 0rdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3sgpF9szYYhjPYdfjqFvQDiP4dGG9d2JIc/GqDIjYwg=; b=OyZrJGjryL1w7ZpJ6NdYZkHIWG+awpKyfZQCvwCGB2B8Ql78bD0Ge+xlCUkLsScRLX uYxcm7fVXOqmRCiT2O5aabsu5Ie8yqAbOPmELAu2fT6oSDlKpDtCmyLpZJzu1jY+Vlmv G3Jvy0KiiW90gSoJNzBmA12JpEkJNkcioJAHO2caAJRKXb2SjgzzlF5ZTxn4StPiyHiG YSegzsKm1vAmXaR3kHsP1j+QS7jy6VwVwDe2AO66Mh6kCQywagWt8UCHebtKTcW6f0ss 5Czohdn1RUA+ajiwKEijIKDbPtGcHvUCXuodzxhrQTRaa6fjFFgb6ZgGVTsFWgCTjUxm YAog== X-Gm-Message-State: AMCzsaUxQHRPrfN9v4uZjPigZL2aBN9aADYZXOp58bu09INVaIB8KNMV t0uIuE+HHOQ+9/dfOOAGPGErK2dYje8= X-Google-Smtp-Source: ABhQp+Sw6m77BEU5rw0fUynYKsbfw0lV/H3A+BjEnsxK3JoAD8w51WzEwA3teal4F/i3XK/LLKzHog== X-Received: by 10.28.160.23 with SMTP id j23mr4638343wme.125.1509377851029; Mon, 30 Oct 2017 08:37:31 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id g65sm12186470wme.0.2017.10.30.08.37.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2017 08:37:30 -0700 (PDT) From: luca.boccassi@gmail.com To: Rasesh Mody Cc: dpdk stable Date: Mon, 30 Oct 2017 15:34:28 +0000 Message-Id: <20171030153511.13322-25-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171030153511.13322-1-luca.boccassi@gmail.com> References: <20171030153511.13322-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/qede/base: fix to use a passed ptt handle' has been queued to LTS release 16.11.4 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: Mon, 30 Oct 2017 15:37:31 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.4 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/01/17. So please shout if anyone has objections. Thanks. Kind regards, Luca Boccassi --- >>From d7181de7fc09659b2f92b38ecf33c73cd6aed26b 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 907b35b97..fce87e2f9 100644 --- a/drivers/net/qede/base/ecore.h +++ b/drivers/net/qede/base/ecore.h @@ -804,6 +804,7 @@ static OSAL_INLINE u8 ecore_concrete_to_sw_fid(struct ecore_dev *p_dev, 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 6060f9eee..76255bd01 100644 --- a/drivers/net/qede/base/ecore_dev.c +++ b/drivers/net/qede/base/ecore_dev.c @@ -4111,6 +4111,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; @@ -4125,8 +4126,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 2ff97155c..fad074667 100644 --- a/drivers/net/qede/base/ecore_mcp.c +++ b/drivers/net/qede/base/ecore_mcp.c @@ -746,7 +746,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.11.0