From patchwork Tue Jul 31 10:34:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10550605 X-Patchwork-Delegate: idosch@idosch.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A953014E2 for ; Tue, 31 Jul 2018 10:35:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97A232A769 for ; Tue, 31 Jul 2018 10:35:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BCEC2A7B1; Tue, 31 Jul 2018 10:35:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CF8E92A769 for ; Tue, 31 Jul 2018 10:35:08 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41ft9l0ZgPzF18k for ; Tue, 31 Jul 2018 20:35:07 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="r0kl60zs"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=104.47.2.81; helo=eur01-db5-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="r0kl60zs"; dkim-atps=neutral Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0081.outbound.protection.outlook.com [104.47.2.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41ft9f4qzlzF15L for ; Tue, 31 Jul 2018 20:35:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qICkS+/LB0TTEvGMrI7uTqYBBBnUPTxdd+Enj/Hx2H4=; b=r0kl60zsil3bJ8ibrMJrp7iKf02blsjKDRlTaTwpYMvG34AruCZFbrRqYObI8c0SvAJgv8RhqMKs/AEPpl3SQ5QzcBzYeSWzt3CA/vBf1huD52mesiCvZRPww0xVdzLoJIzCBiJ/z6NdiKgppA6dLF7KLWEVNGtLqpJlEPFt4bA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Tue, 31 Jul 2018 10:34:54 +0000 From: Petr Machata To: Subject: [PATCH net-next mlxsw 1/3] mlxsw: reg: Add QoS Switch Traffic Class Table is Multicast-Aware Register In-Reply-To: References: Message-Id: Date: Tue, 31 Jul 2018 12:34:48 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: HE1PR0701CA0044.eurprd07.prod.outlook.com (2603:10a6:3:9e::12) To VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc4838dd-a36c-4607-b065-08d5f6d14145 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4191; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 3:/2+Qm43/TdB61tbyAAMl0jCt4c0VsA53xqaWA2kft0lQmish2ZRiYz6IrBlLZ0p4aqHnC26sftdRcRtrsW/b+o1RlWc8mVPeT0YuXxZX8+++q0ErRQqPI8entxoBJsK4Y62SOYnKQmNQb+sUYuGDiTqHF17HKpe8/RjPLT2Gzei9e6U7KGnWXyWX98LNP+Wofr3viwiY57xabQdgbLSNWtfUUhSKXHOToovOsrto/qZngHEOwB3I10cyRdhLGbGj; 25:zv/DTODpaIpCVBlZxyqZSVoSSzqwXWzyDFmmuWBBgrCCyHznkykPs9ol8/eYfR0FKQUExO7B2FZavSN6DZxW4TG8HpPG6pH8B8Di/qpEB1oWf53mV3i3e7Z9pasDuOD0cQiT0Be90wxbrAEcB9eXnt18k8sh/dPDv9p1AWV5FxiSv/4t+6lKGH4F5Y96vMR7hPOGf6Cd+zsQcx4YUQjfk2Jp9O/72TaDCaqZVh+SX6T71M//eOKe1K2wT40tEkcnD1rYjlwpyaPSkVH7mjyd47Nde1M8spEms8mEPF4tBkHDG1YaDiKTHuVvM74nPRuX3Tql7Jw2hHjvSE/ReX9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DAoHIlPtsTDWcMaGeLEjwTKzPQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4191; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4191; X-Forefront-PRVS: 0750463DC9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(376002)(136003)(396003)(39860400002)(189003)(199004)(2906002)(66066001)(956004)(81166006)(81156014)(2616005)(8676002)(476003)(6666003)(6636002)(305945005)(8936002)(6862004)(25786009)(486006)(48376002)(118296001)(14444005)(50466002)(5660300001)(446003)(36756003)(52116002)(51416003)(478600001)(3846002)(58126008)(26005)(37006003)(16526019)(86362001)(47776003)(16586007)(6496006)(186003)(2351001)(6116002)(6486002)(11346002)(7736002)(53936002)(105586002)(386003)(106356001)(97736004)(68736007)(316002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4191; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB4191; 23:Ok1IvwzCiUMstEnxIsfDFWtf3ZXb2FuCwNz1uqHtD?= X8rL6+zBrNlvHmPGpa/Nj0y9ZOkTsgf9wO4zBSjsO+O/GFJUW8pKb/DKm4h2JWguQcoDHK6rYNK0EQNWelbKEhI7CPdDudk4iBE0EH5NwhotDes0mdwSz8Bo+YvILBH8ocmLdkH5jJSQkT0XK1HyChB/sDD9th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mEPQvYvqmAo6Df9pv1bcsSJ3EL2cdHFT/Zf4jCH51DEnQ0SlXIoQyU4l3clfSHPaQ0j/tcj8Wu3tQ2/bvRyXtDedsGhyJ0jsEvkXx//mLB+QOvcXHgRr7ED59+B1eiYtQaOraU7h+b1Invdl9yZC08YsgYXg+mKwqCXxOGWUIk8TMALgDGotpukphn3tOH4Uu8ncOg9Q6Jdj0qVvIbS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2018 10:34:54.2123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc4838dd-a36c-4607-b065-08d5f6d14145 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4191 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP This register configures if the Switch Priority to Traffic Class mapping is based on Multicast packet indication. If so, then multicast packets will get a Traffic Class that is plus (cap_max_tclass_data/2) the value configured by QTCT. Signed-off-by: Petr Machata --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h index e2e2f897e98e..6e8b619b769b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h @@ -3509,6 +3509,42 @@ mlxsw_reg_qpdpm_dscp_pack(char *payload, unsigned short dscp, u8 prio) mlxsw_reg_qpdpm_dscp_entry_prio_set(payload, dscp, prio); } +/* QTCTM - QoS Switch Traffic Class Table is Multicast-Aware Register + * ------------------------------------------------------------------ + * This register configures if the Switch Priority to Traffic Class mapping is + * based on Multicast packet indication. If so, then multicast packets will get + * a Traffic Class that is plus (cap_max_tclass_data/2) the value configured by + * QTCT. + * By default, Switch Priority to Traffic Class mapping is not based on + * Multicast packet indication. + */ +#define MLXSW_REG_QTCTM_ID 0x401A +#define MLXSW_REG_QTCTM_LEN 0x08 + +MLXSW_REG_DEFINE(qtctm, MLXSW_REG_QTCTM_ID, MLXSW_REG_QTCTM_LEN); + +/* reg_qtctm_local_port + * Local port number. + * No support for CPU port. + * Access: Index + */ +MLXSW_ITEM32(reg, qtctm, local_port, 0x00, 16, 8); + +/* reg_qtctm_mc + * Multicast Mode + * Whether Switch Priority to Traffic Class mapping is based on Multicast packet + * indication (default is 0, not based on Multicast packet indication). + */ +MLXSW_ITEM32(reg, qtctm, mc, 0x04, 0, 1); + +static inline void +mlxsw_reg_qtctm_pack(char *payload, u8 local_port, bool mc) +{ + MLXSW_REG_ZERO(qtctm, payload); + mlxsw_reg_qtctm_local_port_set(payload, local_port); + mlxsw_reg_qtctm_mc_set(payload, mc); +} + /* PMLP - Ports Module to Local Port Register * ------------------------------------------ * Configures the assignment of modules to local ports. @@ -8726,6 +8762,7 @@ static const struct mlxsw_reg_info *mlxsw_reg_infos[] = { MLXSW_REG(qrwe), MLXSW_REG(qpdsm), MLXSW_REG(qpdpm), + MLXSW_REG(qtctm), MLXSW_REG(pmlp), MLXSW_REG(pmtu), MLXSW_REG(ptys), From patchwork Tue Jul 31 10:34:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10550607 X-Patchwork-Delegate: idosch@idosch.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8270414E2 for ; Tue, 31 Jul 2018 10:35:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FDEA2A4E2 for ; Tue, 31 Jul 2018 10:35:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 601152A73D; Tue, 31 Jul 2018 10:35:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 270CA2A73D for ; Tue, 31 Jul 2018 10:35:17 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41ft9t572hzF15L for ; Tue, 31 Jul 2018 20:35:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="lkdT2Mq6"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=40.107.7.59; helo=eur04-he1-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="lkdT2Mq6"; dkim-atps=neutral Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41ft9p3Pg2zF18k for ; Tue, 31 Jul 2018 20:35:10 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qt0q8jBf/d9CYFaYjDOR831lsPJm0nHKFmALuzE2uEU=; b=lkdT2Mq6wTyaMWJATRtbrYHeU6GcOzGgp1joU8Tn2Gw3IVo3S1HejV7b3L4uu6kKIqCOdLQDtdXUb1eBvCZvTEP7M0L2P+vlPTq29Y0mJrCs9ZxgR3nDfpJUr40bX/wEyKyPvro3oQRAv4OmWOVn+dQbnhkXWNUUSQ9UsSQcCyk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by AM6PR05MB4182.eurprd05.prod.outlook.com (2603:10a6:209:40::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.14; Tue, 31 Jul 2018 10:35:02 +0000 From: Petr Machata To: Subject: [PATCH net-next mlxsw 2/3] mlxsw: spectrum: Fix a typo In-Reply-To: References: Message-Id: <9a0c3c31f82dcc0c6ce73c1dbed8ffdbc011f80e.1533032999.git.petrm@mellanox.com> Date: Tue, 31 Jul 2018 12:34:55 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: VI1PR0202CA0027.eurprd02.prod.outlook.com (2603:10a6:803:14::40) To AM6PR05MB4182.eurprd05.prod.outlook.com (2603:10a6:209:40::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58cd1aab-35df-4b4b-2cf0-08d5f6d14600 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4182; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4182; 3:BGEEomj41FTueS+uV6WHsYg+qbn2LsSPTYa3VcEHXhZYOFE+Hy3IC+kG9iLu909Tt1wQWvluv/qmSoy5IKa6N+lCgCJnSTufY28MCUMRji+/hbhIEbqVPWMzMsAxhiNJWwcyq7zV3JfdlMy3QpZB4zQK1tXaBZgHCHYRP/6Dwo1PKbZMkhn/y6XySdLr+iCzxFhHy/C+rOCeU+sL9/dMtp+bXlRcPb2rGh2eBT+SwKDua5d9lKNLWT9OpeXcJ50b; 25:/N/5onFko9Fwx+W9XOzQ7tkofu0PUmaeqbnyhJR41PlR+JoMCAzFcR1bJqqqlJ/7ragvttrp6Dvgr9GC+F73PBJrf+f9LYtuiSXDZUki8Wizdb39kVuwo8tNFH1lnOgqLbI3RrxTC3WMYTsVNtIIZhLy/sciY57OhmTzMEXGZB+xnky9tAQHhfIwlxjJftpGPIUZ3HA6K+0X82p10FNFC3QWWR7xbPW9eSzwvJDlgf/dRL3CipM/PcU+y5/DDfXnrjpQ1oyR+XZyVcyD8jp3HLCblEcHis+g362rTOfsh3yfWwEH+7uD9DzH0dzV2s4RQXn2TiC7nJ7jSb+KAYmp4w==; 31:taWERDq+JT8I6WClo5ju3yWUnb5zFoz7c8JP+Dbxabzhc5DkSK5hLqq0IuKMUqOZbcPmuVNo6jUt3CWB/hgnQccQ6JY48ar+svhNtAX/xtcoDWIjDICeZziWYdMDIBsxRv6auAPI1ruYTpVkZD0xWGG386SBnZjbzltK1TpxC+/neXQAdUmebuFtLoofTCSnD2yNjudunqhEqBCwubxmlVCmXjg+dRGW3+ajKPmUudY= X-MS-TrafficTypeDiagnostic: AM6PR05MB4182: X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4182; 20:o1SX6Ahdtok5zbnvnwhsh+4L4d2K41fBOzeZyM0Dl8nbW6cQIOKZnFdZU9E7Is7A5c7aArkKCCJnmIj6qQuaURnWdDOPwkAMWq0AZk4yPldowHVUx7KKFQ/RW0Ch/ME4GEzEo0rcss1ibsMM6EAAmRX/WO7tXUxeMCgb0whHYC3nfRiZQqc/Fkv4HFyXiCuaJOT4+H8HEFq69jSHzszX16PeB1fsv8ac4DQcYwwuIvRDmZzN5OMCk9X1aTb7UCI7/sTVEM9zdT/81YlE67ywntFodIq7zpxdkHN1a6JfpLVTLammg3iQIOjEdDcO2Jw8ULfJu9G/cQXGV6yaAX67ajVqiCO6sap6uOVy1fiKa1ZRqJpjXYd/3NaAbhXKzGBO6KGZVkIVO5ZhnIzQz1+tSOOgs6pkBz75iFW5WpOodUOJhhLEayTjgpVAf7NA6Eh5yBMggmxzF+kaFzP+kIK9p5YlTLg822oA/7CV/59NdjNDRTwB5m5mAxQ0LrNm4Bbu; 4:YYtSoSA2iU6PE+2w3Fnq59HQEsJQAW+RitS8FXjnAQYvkuJR8pR1QkbUpQoDNpxwdDF+G3kgjWJIWeM8xFdTuur2GiM34cJ1qKADUuTMAx7xdbBNdK+NUROIDUzPfVygDA/x9JnGyRXm2GfJlVzbhGBcXcYEZ4gjOFlmDGFQXr6KC3PX5WtCCpHHEHwxwa5xXJSUETQx3oXh+OTHqR2befNcDsbWNAag/bvtAEaZdCazQ3/UvcprwY+9nFpDHLIWS9KX2zPitCWexyvVZiGB4Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM6PR05MB4182; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4182; X-Forefront-PRVS: 0750463DC9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(189003)(199004)(53936002)(6496006)(66066001)(37006003)(6666003)(52116002)(51416003)(76176011)(6486002)(58126008)(25786009)(14444005)(16586007)(6862004)(478600001)(68736007)(2351001)(486006)(956004)(2616005)(476003)(105586002)(106356001)(36756003)(7736002)(48376002)(50466002)(118296001)(6636002)(86362001)(81156014)(8676002)(97736004)(26005)(5660300001)(3846002)(16526019)(47776003)(186003)(6116002)(11346002)(81166006)(386003)(316002)(446003)(2906002)(305945005)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4182; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4182; 23:KqlXM5Qfvn/Tot9gWMF8P5w/GBQq0EuJSVLvWq5r7?= 8fEYbRKN6396TZJ7IdPt4p/I/5y0hI0LSGpX9WOrcwlmlNjQA/b38xjKkIizzSCPBDYXt2Z1P3EStGz+uu9KrQmiAS8fXiDywzbyCXvMZZj8w+LZo7/dEvn965SsLaAWIoq+xO7H4HYNI84G/hampo0adlHTS1OvgWuEoW04h01ZTT6KpKekDQ6/8Gyyeqgvk/3yQbUKidzesH5L04gIEMnjqOrUqH0rZk+hQRqZki9k2o4OJIFtpoiPP+ss8z6FEqhqtHLqOfigITg33ySvLQ/cqMynEegZkB1HDZwA4JW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jzefQ/TNHptUa6pzd5pXHs9n2TQaOClKzX9XH4yH7s3trB02I2OLaqxXsmh3cYEB7+hg9sO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2018 10:35:02.3976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58cd1aab-35df-4b4b-2cf0-08d5f6d14600 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4182 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Petr Machata --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index b509e8c030ce..42312ff57b7e 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -2762,7 +2762,7 @@ static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) return err; } - /* Make sure the max shaper is disabled in all hierarcies that + /* Make sure the max shaper is disabled in all hierarchies that * support it. */ err = mlxsw_sp_port_ets_maxrate_set(mlxsw_sp_port, From patchwork Tue Jul 31 10:33:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10550609 X-Patchwork-Delegate: idosch@idosch.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 97332139A for ; Tue, 31 Jul 2018 10:35:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81E542A4E2 for ; Tue, 31 Jul 2018 10:35:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 748032A7BE; Tue, 31 Jul 2018 10:35:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ABB452A4E2 for ; Tue, 31 Jul 2018 10:35:20 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41ft9z0CRvzF1Cq for ; Tue, 31 Jul 2018 20:35:19 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="Q3GzD3ej"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=40.107.4.85; helo=eur03-db5-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="Q3GzD3ej"; dkim-atps=neutral Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40085.outbound.protection.outlook.com [40.107.4.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41ft9w1KwVzF18B for ; Tue, 31 Jul 2018 20:35:15 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=70jUMUsMYZ30Dg/YiQRxF37UfzEzKvC0O83zJJfEW98=; b=Q3GzD3ejQ5OuDus5c4/zsDeh9XLaj7jUoxam5HnmvHGghnykd1f0A9Ghck5v2LC7i0S4fj1EYpO4e3e35a5cx4AUqJtN+gG83nsUZb2e4z4vEBLVPWC6B5OdifDDnJFvXY4NpycBc+ioIBmR1bAZVFIRwXsoo2FmU60BLDHZAzY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Tue, 31 Jul 2018 10:35:08 +0000 From: Petr Machata To: Subject: [PATCH net-next mlxsw 3/3] mlxsw: spectrum: Configure MC-aware mode on mlxsw ports In-Reply-To: Date: Tue, 31 Jul 2018 12:33:09 +0200 References: Message-Id: <9b0c1da9e54045ba1f592c2ea999ea64c9fb9bb2.1533032999.git.petrm@mellanox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: DB6P193CA0006.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::16) To VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1b81b84-f470-4749-0d7a-08d5f6d149ac X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4191; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 3:4htEM0YgktuplQun6AcsUNPKRJO+zm8k3CmxPTUj6d/ZiGMNkQzfy8ZRmfWqwAcPXGFrcTAy8yAKaujBBsECjJLyC63gEFhA+4EzBLaYgo/FTHpHCKmiaHOy0RDT1MHYkUTj+yGrOlHulU8gxLizYz5SJMgoQf/J8F4zk+QUZ49veF/F77vyTGz1jqJJiUK8z11JdMOGjyO/HtCnerbHbWp8LAIebbTf30kGLurDCd/B8wt1NWVoEbDS1RvzQWUY; 25:leVdOb+kuNI/LHE+iuRbrfgRdaZYILUgmoFgF/o06hEVj+hKxBSu4j8GDW+9dvyxXlalWf0cp0Vik8HJUOehzUXrdiiUSaYjEi57MAc3UlIOisBhaC+sr6kr9mZAeAwClQlDI2bPd8vSFohKmcda60H+9nt4thNlj447oGyREqABD2+DhJgnRhLMfS7emE1atdOzK2U4Ka1ZdL/KF5wKzi90dxgKD16hWDCaUEZkthJxPXrBAl9XkhmKlCxV9wCAPQmHUJa+E8fuZC46TqYg9GCNVC40AU1rm7b9fwIFtT9KVnfuhaLwIVGEQmYqzejzXI+pf5g1DGu7c2N0guNtJw==; 31:22H/xwlsx92gA5RAcIz0tHEhc+23zAhYTvJS38q19WLbNH3iQaM6GcV8MH0BcxPF8fF22606ylHWYYY7/z4E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change-Antispam-Report-Test: UriScan:(131327999870524); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4191; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4191; X-Forefront-PRVS: 0750463DC9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(376002)(136003)(396003)(39860400002)(189003)(199004)(2906002)(66066001)(956004)(81166006)(81156014)(2616005)(8676002)(476003)(6636002)(305945005)(8936002)(6862004)(25786009)(486006)(48376002)(118296001)(14444005)(50466002)(5660300001)(446003)(36756003)(52116002)(51416003)(478600001)(3846002)(58126008)(26005)(37006003)(16526019)(86362001)(47776003)(575784001)(16586007)(6496006)(186003)(2351001)(6116002)(6486002)(11346002)(7736002)(53936002)(105586002)(386003)(106356001)(97736004)(68736007)(316002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4191; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB4191; 23:cv89vifBy/9YMEmiUSlGG+yy+BP1nR17Pb7WKIuy5?= H50UBzbVEs1IlBXwTwiqlwOr+/tC9ENXuVthPAwiaAdSaoA910STcAm+Bn68Nm3DdWNOnSaqKGWXYIjqZIxA27nNG0454K5FUxMl0Hp8SZu4famNZMpRD5vi943VzPqFVN2Y783Bz1IOSDrZmkVXYOTiVSMcVObTkGTkyNTc/hE2ILHtym+jLEdUnu4oO3t6ylV4V72o5La3LJ1PbvA1j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SDAGMyyaocrMC+FZwQGrnu4k9gxt9wfPEI9IXhAIcmhSLbJC7w/hUGAphtB0tgshgmR5zXlYGj6hxqvx3E3oFiO1v8uIBt9OGlq2Rj0j1ujlvTH6WTDD+mr2GhYgQX6akLamRkpBN7pICSZXt9Fc4LgAb2kLRM6LRv95JFpepUjGd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2018 10:35:08.3620 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1b81b84-f470-4749-0d7a-08d5f6d149ac X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4191 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP In order to give unicast traffic precedence over BUM traffic, configure multicast-aware mode on all ports. Under multicast-aware regime, when assigning traffic class to a packet, the switch doesn't merely take the value prescribed by the QTCT register. For BUM traffic, it instead assigns that value plus 8. ETS elements for TCs 8..15 thus need to be configured as well. Extend mlxsw_sp_port_ets_init() so that it maps each of them to the same subgroup as their corresponding TC from the range 0..7, such that TCs X and X+8 map to the same subgroup. The existing code configures TCs with strict priority. So far this was immaterial, because each TC had its own subgroup. Now that two TCs share a subgroup it becomes important. TCs are prioritized in order of 7, 6, ..., 0, 15, 14, ..., 8: the higher TCs used for BUM traffic end up being deprioritized. Since that's what's needed, keep that configuration as it is, and configure the new TCs likewise. Finally in mlxsw_sp_port_create(), invoke configuration of QTCTM to enable MC-aware mode on each port. Signed-off-by: Petr Machata --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 42312ff57b7e..5e2c968f0b70 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -2760,6 +2760,13 @@ static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) false, 0); if (err) return err; + + err = mlxsw_sp_port_ets_set(mlxsw_sp_port, + MLXSW_REG_QEEC_HIERARCY_TC, + i + 8, i, + false, 0); + if (err) + return err; } /* Make sure the max shaper is disabled in all hierarchies that @@ -2797,6 +2804,15 @@ static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) return 0; } +static int mlxsw_sp_port_tc_mc_mode_set(struct mlxsw_sp_port *mlxsw_sp_port) +{ + struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; + char qtctm_pl[MLXSW_REG_QTCTM_LEN]; + + mlxsw_reg_qtctm_pack(qtctm_pl, mlxsw_sp_port->local_port, true); + return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qtctm), qtctm_pl); +} + static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, bool split, u8 module, u8 width, u8 lane) { @@ -2925,6 +2941,13 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, goto err_port_ets_init; } + err = mlxsw_sp_port_tc_mc_mode_set(mlxsw_sp_port); + if (err) { + dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to initialize TC MC mode\n", + mlxsw_sp_port->local_port); + goto err_port_tc_mc_mode; + } + /* ETS and buffers must be initialized before DCB. */ err = mlxsw_sp_port_dcb_init(mlxsw_sp_port); if (err) { @@ -2981,6 +3004,7 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, err_port_fids_init: mlxsw_sp_port_dcb_fini(mlxsw_sp_port); err_port_dcb_init: +err_port_tc_mc_mode: err_port_ets_init: err_port_buffers_init: err_port_admin_status_set: