Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3937089yba; Wed, 17 Apr 2019 00:45:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQE4Bh0I3Do/p41WQxhpBRAFuwSUSRW1XUPOArlb1AZp+v6QSVJ92JsWDQhdOFPfK2Ft9a X-Received: by 2002:a65:638f:: with SMTP id h15mr75236645pgv.147.1555487101952; Wed, 17 Apr 2019 00:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555487101; cv=none; d=google.com; s=arc-20160816; b=DkDoPfA4Jl9bFLwyAw+Rn5naGXO7VJCssEeCIiGkW/WhOqTfVCW7SjquJWSXrVFmC4 1u5f+2NKDls/2XF6dsFtcu030rBdHSl+nkAq4tdfXQ/ChTHwhL4s/wvBWw2r5BEZt5BH bdwqW/pcDN9v3/FISDmjQXoWyE7obYFpkZY9GL0HYQT7p02Tn7GZUn+NbY0t2TO3MINS YRU9efB7wse21uab4FmwhQwUP/7nDsUNENPhPZ5ZnXfFlFEeOYVPSqFcEPRJgKu73Ng4 lpcOX4X8nZlcrVIK3vBCnqC8SEXTDHaMD2MPTDjxUOXK3kCTDH536ITbeULOCuzOpNpA RtTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=vyNsFkUrk84C6dpddXXKbNn5fYpR9Aj05hktRvtRsEo=; b=hyx0IxEflSAvXDlGVurivf04zlwx1XkIMqme1N607l+FJnEcgL9gFzlKGe7YijghaF 1+6fS6kWKWrM6zXyabh6RVBi08eIS3f3p/NJaD+EoZrNe+zITj2TnG4jEVAenmwy0KUu iuRKQefpRzvOxWeQkSpv0KADvvotCLBufHpdhZL4cQjGuCzpygHyPKWNfnrZ/O1JxFpF /7KxGM29F/E+0M6wd7T8f42FNfR0+4WYNcAg0/9kRwIeOKHDxiXqBqc5diD7Cq1/28Jh AntybmI+55rmm6bYv1/7yIKeM/ondhGSIbd2P4gyAYKA65jkP13oY0vByWsLXkPlSEME YVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=fT4VkUb9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si46096959pll.286.2019.04.17.00.44.47; Wed, 17 Apr 2019 00:45:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=fT4VkUb9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731155AbfDQHnw (ORCPT + 99 others); Wed, 17 Apr 2019 03:43:52 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:46336 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728108AbfDQHnu (ORCPT ); Wed, 17 Apr 2019 03:43:50 -0400 Received: from mailhost1.synopsys.com (us02-dmz-cl-eth-s1p4c0.internal.synopsys.com [10.12.241.126]) by smtprelay-out1.synopsys.com (Postfix) with ESMTP id 3C9F6C0B16; Wed, 17 Apr 2019 07:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1555486396; bh=YwRTRliRe35QaXc9TWma0CdZJr5VED6GbuAobjabqLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=fT4VkUb9IchzQnevK8aHRDlNo5kYBRgzoN21KGwO04IJ6A9QAMnL3amlPST2SIxGu wECROyJdQp457D762suH75dEvXfjWyFm3eA2yBEAr/Q1T+JNZUbUZguSZyykh8lQzi sq4lhx/MA1iJrgjbBp4uWIuCbHRCCPhBp+Pw1D7jDYcbr/CxtXJ3/0b5gIt4HcNebR OX+qMpHKWX9FEnAAm940qV7e4OCl7YhWFf/hm53wQaeN8AVrbQLQJaF72p8jNFLMVn FmkjkVGUfDJno9M5z/zuxDtV+2cL5nLX8cL+rVrJa1KQenZr9KupFrjnf8qFSyfOyp AguxcW9ra4AUA== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost1.synopsys.com (Postfix) with ESMTP id E4A9D501F; Wed, 17 Apr 2019 00:33:14 -0700 (PDT) From: Jose Abreu To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Abreu , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: [PATCH net-next 2/2] net: stmmac: Set Flow Control to automatic mode in the driver Date: Wed, 17 Apr 2019 09:33:05 +0200 Message-Id: <62d330a2767a87367a9082116999158b442f65f0.1555486210.git.joabreu@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org By default Flow Control feature is not being enabled in stmmac. This is a useful feature that can prevent loss of packets and now that XGMAC already supports it (along with GMAC and QoS) it makes sense to activate it. Switch the module parameter to FLOW_AUTO so that Flow Control is activated. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index a26e36dbb5df..7a895a2889e3 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -74,7 +74,7 @@ MODULE_PARM_DESC(phyaddr, "Physical device address"); #define STMMAC_TX_THRESH (DMA_TX_SIZE / 4) #define STMMAC_RX_THRESH (DMA_RX_SIZE / 4) -static int flow_ctrl = FLOW_OFF; +static int flow_ctrl = FLOW_AUTO; module_param(flow_ctrl, int, 0644); MODULE_PARM_DESC(flow_ctrl, "Flow control ability [on/off]"); -- 2.7.4