Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4811031yba; Tue, 30 Apr 2019 04:54:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx53F6AJg01pIJ1Xz4+gP9cTLiX2WEnB7rulRbqLfudg+2I9ePgxbiwNivXa+irqBQONoN X-Received: by 2002:aa7:91d6:: with SMTP id z22mr61065819pfa.242.1556625272954; Tue, 30 Apr 2019 04:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625272; cv=none; d=google.com; s=arc-20160816; b=Wsfgz+g/6UHm/TjehLdB0uL1rDPc/GT6NElBiO2jQA4+Y9+TiF1maIgEoCzy5ZZB06 Ce5k5/861Zk0x521nPRWjTHTCzJ6B9Z8HbfAwd8110bYpN/SarNhEZhjO4M6rUYn6/UH Y0ubdL/6TO1ec5EYgt8ZDGwjJt0QvXKhKEnwjaSzakYHErXaeKtkcmCKJsMHKHZX1ZRr dfnmhJkNNy+mdLxOuGbxBaQKXAo3ko96eOZ+C5Ih240AvZKZpI0Cx87tAGPvk8AkMQPp PKL0FsHAN6Ku2F6maZU7EB5i2BuWOxsIHr9xy4OCmd4NsDlebVum6ikaWlAFMdbjbm+l PBiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j+D7zie7627c/nYyLYdagahxqrdg0lhTHhbPQnNnuNQ=; b=y+JdeWj2oqRZljVMwaKwdSwFtaurSxQAdg3LWqnT3OP8Vs/+6Fpv+zQteVL3J2HZ0Y yeLp73rWVomADF7OGuA8Dqa8p7AoHF1+IcC/ORpqNlR1Bqth50KDeNROgGkf2tzHuJGn yZNF2jGwWAiVyamSGFuSi/+0uD7tSpUsesK0HXbZ/vsaQmUrSC60ltZ94ICYSq/XTxUD mlIZpUa9mavvjwGbo1tI/9EbRfyZyGy5yrUpMF2OO+LvSk0hMUDDKvLyz1jtqiFqkEPQ atOD4DHHNDRofHO8jAH9FzvhEOqmaJzckAH2ddq2e5BlUnqrABc54tNpvx0VxoGNf33b Eoqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fih/sLmF"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i76si22737463pgd.558.2019.04.30.04.54.17; Tue, 30 Apr 2019 04:54:32 -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=@kernel.org header.s=default header.b="fih/sLmF"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731405AbfD3Lvc (ORCPT + 99 others); Tue, 30 Apr 2019 07:51:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:39274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730475AbfD3Lv2 (ORCPT ); Tue, 30 Apr 2019 07:51:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 29D7721670; Tue, 30 Apr 2019 11:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556625087; bh=CgX1STdH28Hfo++kxSUzPDQtF1OyjNe5UgvR/78FXns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fih/sLmFLg89x9PrZ20YZZ16vLy0d0iSqmjybu6PMDWdl8VOgp7uzhcIIhYby8J10 WYnoJIfq8ZU2rmoqWk+kwtgtn5U2IzcblICexNpYhti48i4VS1xVGSYn+Q0/eq1Ug7 3HLV4R8SyT/uN5syc/2x3rF0haYN1UrvGEwN/nUA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Machata , Ido Schimmel , "David S. Miller" Subject: [PATCH 5.0 85/89] mlxsw: spectrum: Put MC TCs into DWRR mode Date: Tue, 30 Apr 2019 13:39:16 +0200 Message-Id: <20190430113613.781436399@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190430113609.741196396@linuxfoundation.org> References: <20190430113609.741196396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Petr Machata [ Upstream commit f476b3f809fa02f47af6333ed63715058c3fc348 ] Both Spectrum-1 and Spectrum-2 chips are currently configured such that pairs of TC n (which is used for UC traffic) and TC n+8 (which is used for MC traffic) are feeding into the same subgroup. Strict prioritization is configured between the two TCs, and by enabling MC-aware mode on the switch, the lower-numbered (UC) TCs are favored over the higher-numbered (MC) TCs. On Spectrum-2 however, there is an issue in configuration of the MC-aware mode. As a result, MC traffic is prioritized over UC traffic. To work around the issue, configure the MC TCs with DWRR mode (while keeping the UC TCs in strict mode). With this patch, the multicast-unicast arbitration results in the same behavior on both Spectrum-1 and Spectrum-2 chips. Fixes: 7b8195306694 ("mlxsw: spectrum: Configure MC-aware mode on mlxsw ports") Signed-off-by: Petr Machata Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -2961,7 +2961,7 @@ static int mlxsw_sp_port_ets_init(struct err = mlxsw_sp_port_ets_set(mlxsw_sp_port, MLXSW_REG_QEEC_HIERARCY_TC, i + 8, i, - false, 0); + true, 100); if (err) return err; }