Message ID | 05c23d32305b6059a1752fcff4bb112e7526d4d0.1525792392.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Ido Schimmel |
Headers | show
Return-Path: <linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D55E5602C2 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 8 May 2018 16:02:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C459B289BF for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 8 May 2018 16:02:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B624228D08; Tue, 8 May 2018 16:02:55 +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 5816E28CEE for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 8 May 2018 16:02:54 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40gPQh5w0KzF1gQ for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 9 May 2018 02:02:52 +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="XgVp6wAm"; 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.0.72; helo=eur01-he1-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=<UNKNOWN>) 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="XgVp6wAm"; dkim-atps=neutral Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0072.outbound.protection.outlook.com [104.47.0.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40gPQZ2gM2zF1dM for <linux-mlxsw@lists.ozlabs.org>; Wed, 9 May 2018 02:02:46 +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; bh=9J7nbn1Dos3rOqgV3nX18pGNSEL7s19vS6MTYZAoXQo=; b=XgVp6wAm7gF8ogOc/T5ggS0qTMOiSYRScETP83imLhojyTqX8q3mYvse9agy50i3YsfgiafiwpUSrazZiDpPAsAzS+01OtjHf/iJzXmeCaPykd2kE+cwtAOFq7tPO0+glIzgnY/rc6FQlxhleLXVY3aRvbDk/tLNVU5nuQxQ57E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by VI1PR05MB4190.eurprd05.prod.outlook.com (2603:10a6:803:4e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Tue, 8 May 2018 16:02:37 +0000 From: Petr Machata <petrm@mellanox.com> To: <linux-mlxsw@lists.ozlabs.org> Subject: [PATCH net-next mlxsw v2 2/4] mlxsw: reg: Add MLXSW_REG_MPAT_SPAN_TYPE_REMOTE_ETH In-Reply-To: <cover.1525792392.git.petrm@mellanox.com> References: <cover.1525792392.git.petrm@mellanox.com> Message-Id: <05c23d32305b6059a1752fcff4bb112e7526d4d0.1525792392.git.petrm@mellanox.com> Date: Tue, 08 May 2018 18:02:32 +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: VI1PR08CA0111.eurprd08.prod.outlook.com (2603:10a6:800:d4::13) To VI1PR05MB4190.eurprd05.prod.outlook.com (2603:10a6:803:4e::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4190; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4190; 3:8eqdXUCmHg7nrnBQExnVLb4Iv6c1oI0WjelcW/txpSZQYYilSy7FH++6hs9Vj5NAbS3i4EmRTQ5rSKcqUMytWzJPkiv/w+PzCz5s7gzTE0h2fg7Zcg3urZCGCOnG5iIwWFVUu/0QBfeBPLhjCZ3PlXtwbfKSrKrxFhwSBhRo9ppKxnxGY04FbiWDor9FObzCncnCYez77Lmk7zNUCSksAM42QZa6dY4S4MfpgZ/XmmrA6BkC7Nh2+QRjp6wbMsLz; 25:aTmFlfMLYFLE5qLRt+D4UmoDftJ57ZVfwVG5ZMJj/j/ATqukCXE0TxBIzAK3+g298eom+dKEecAuKzVPV/sk15gEZE533HWpSVQklMXsRRSLN4cxnHEqbimi218Eq9o2z2jZWjyBkMS2FCtv3UIrXKvzuWZinl3l2UD1i5P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/sp8XOcbT78PUawgzidQCbpJj0jyoo+c4Eiug5ZQoYR4xBnZ5d/VeX+k2PwSoR/CRVfZHVUdI6ByQfxqgT9c1xQYC4pLmhhzhOOdPEhgmjWOeUYJHKc4ZLi9hoAyePM99bVd9at7ZzObTPHSfTLNJF6V2obMlgy/895C/z1j+hBpmJzC8W2ztFTOXuVZt1hCGndb+o/SqWzu6PfXbnJoELoD9680hAgvKjCJ3fKtu7YQuKU X-Microsoft-Antispam-PRVS: <VI1PR05MB419057DF16317EC9D581714BDB9A0@VI1PR05MB4190.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(72170088055959); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR05MB4190; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4190; X-Forefront-PRVS: 0666E15D35 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(376002)(39860400002)(199004)(189003)(2906002)(3846002)(107886003)(7736002)(106356001)(53936002)(81156014)(6116002)(97736004)(5660300001)(105586002)(16526019)(2351001)(8936002)(6666003)(86362001)(16586007)(316002)(81166006)(58126008)(8676002)(386003)(305945005)(26005)(6916009)(446003)(476003)(956004)(486006)(11346002)(51416003)(6496006)(2616005)(478600001)(66066001)(76176011)(52116002)(68736007)(6486002)(36756003)(118296001)(50466002)(48376002)(25786009)(4326008)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4190; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB4190; 23:gzQW5XQY7CgxDaUbCBkG8sc9ggitfH1Jv8EtbX7LH?= =?us-ascii?Q?ijLvV+/+7gjwlKq5o+bdExx3m04V4502ZcBIB/IgDv8iTC6abiWpFkNY2Q54?= =?us-ascii?Q?Uha/hKxBDg7u42YCti1BJoytPXbDIXpAzO+r2fnKLaBW1K+8vxhPdPiLQyO0?= =?us-ascii?Q?doMmCuanQot9mdG6bMyJmk4EcaHM9t/ViRiJ8ftQHbViGD7oEhz38FVkAxPH?= =?us-ascii?Q?A5nKcsx+BcwJavz4izPZjYu5M0gWW4AJhq04vszi881layWB9ot5eKJA0iWo?= =?us-ascii?Q?qWngzrTl0xmsluE7dU9s0TqYMTlyMZ2IgEdgJ7LJ0+GPncphGBUSRPUU4vtC?= =?us-ascii?Q?h0puSblEzCpzM87/B5C3HLRciMABXkVGQVnY+cqOkHiDSjAJ7+IPzmfI1gNf?= =?us-ascii?Q?qEjze0YTqtzR8ZvF11bmPkuLz5xTq1wGOuhRJ7Awfo2aQ8yX5PAeXE2zMnPQ?= =?us-ascii?Q?5VSwrqVjRGDkNPudLtVR65ExXC4S2R/ChACkWOB7nCpyNYaGX2hTuL2tZRNd?= =?us-ascii?Q?kYRqwN8VcMF+66vqYG1aSr1uwuMbbZqzpdwaPO4BvSgCcCFilFL2VZx3MeLD?= =?us-ascii?Q?3xXQqV8KjflTZxxzmzjx8a4cFUJGDsQkO5iRuIAc6Nw3ueW6+pJzTTzifaJe?= =?us-ascii?Q?RCrmLNs2WrnMQ2A/Uk01BlhG/VDqNoA9CIYxCUnlPST+cH48nJb/lRQmWTuP?= =?us-ascii?Q?+mtbAO3vxBQO0MT3PVtdHNaVp6alDl9LoyNeF3Ms2Zxm6U25q2x4vQ9PIeca?= =?us-ascii?Q?jE/HkLVsll2PDgDlmd62B++ENNBxdzDgZtibGUIpt8fe12N5x5QoVFpC3s6I?= =?us-ascii?Q?RiIZXdvoWPbROfn8uTBjDRSutWztAtdZzuCIRjF71eveEXs29aV9PCgy8j9i?= =?us-ascii?Q?R47pdO+5hTsW1CwIdT+pnim6eZtYKHA1mtQ5m0mF70RLEFy5ZpwiRjSdrutf?= =?us-ascii?Q?DZchyDOleKB4jCL2qPwFKz1o81mj3tRR+ucQ3F/jO054NTGIsj9OJnHwjjwF?= =?us-ascii?Q?7sgnuddhOYy+1d3JewPCdspLEyeohKa18bflg5HoLpCCMza2Z6uhZL7SB8FM?= =?us-ascii?Q?yDLLx0pwnVpe1ohpUzGnc362aqPN7plImZMy8/gKawq1MLX8IGalIQAm1r3Y?= =?us-ascii?Q?0uF11+ODMjkT38jRDzkuRrKIqO2sQjC/QY16J9gojmONA/02i9ohslqZ/4gu?= =?us-ascii?Q?voXXwKz8Y7UdloF/CZpxOx/HyMOFPAGx3YM?= X-Microsoft-Antispam-Message-Info: B5BLMt7jSyKuSpEVg0VvmpPCEiM690Cxw3t+uo1TlUMC8rgW9zHbZG6XedE4vxJEjzH/jg22OYIcjQ1xb7jSTaOiUcQFbocrfmuhXsbVbpDJ58G3kC3pUN9c3yW+2rmeceOw5RsXGvZWcEmcbMpXVxizbQCPzrQW176sxz0A1Zl1V5HbQryZkT8euSxRUrxc X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4190; 6:4yDg4SDaJMtqL+P8WjI0UADvbjkA611+Wize5Eu5N+HPqQTY+24777lk0cvoTZbEnwzmkhfXp2+ippLtZ/psRT1T1jrB2OMbnp1b/5Q7IysbLiMnG+aZ8onBq0Og5hmQKY8sAebZ3UbseBya662vmOkWc7qLM/HjhU5pS2S/9hVwSjhsfFky+0AKikDtoMg/TqqjEi2H4eTmhACUaIstQaTj/bN2p+3yUHNk/35KcH9WOsnfzJEHho5rED/np9JpObYlNatw+n4uD13JhjeFitBBwzButFdFdav6n0kNrE4YL+IcRoY1OTaAO8mlxUBff0Toa+4EpncngjQz85Sw1b9y54/JOCsGZdxx3ckMJoNAVJ/UGefHW1nGCFIgyN+S1Mqi2ocoPuHkJn06e3Q9WDV/uR1gGelk0xcaVhEYk1FXhiTnKr9snTsiwt/uHlkLKOLv28iXAlZMF9A1dVexTg==; 5:lAzk4shrtOnJMtdi2ellGDunqN6VO000ztX4UdOr/9s9pPqJPa7HkAe3hyolm4PeOUL2D9b9/uvMvCuzISZmjzrMIHMgZdZeUQYjqctQLm5YOP6Lb28IUs04N6npvjm5LICgyXTu7Rlttm6kvtHbxCg1Le/ZH8g71anZz3HIILY=; 24:KvFePEnfAvnaOiwkeN10ySixCLD2dCqPqkO5vWowFuaGeJTP1WObLSk7xfXgMKb20Vo+P7qyFHuaT+3N3sRjJyKCJBfafn7QgLp72ZqGj9w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4190; 7:L3GVg2jzIjxW+iph8X0bPiqh/+fFbmgHZ9TC3jUvmFWt4ZTSe1oH629o7Zoy9B56i5SK1BWoBSOOg/p9DSYfTl1GyFtkKQCS12dTj/wuek5WaRY3OMBoeilf6uWIawj6c0cH9alPhuzQyU9JHQKXNvrkHfoduZuzqpr42cQliSmfAd7TuIxekKYs8veskg5oDjVlvZ4FaKdsaihBxDTUshAyke5r/ZG5uPN8ODfYhGg8/tDC6jo9IMLmmZHR6O6l X-MS-Office365-Filtering-Correlation-Id: d5d8fb50-9d51-4832-1f7f-08d5b4fd1e77 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 16:02:37.2704 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5d8fb50-9d51-4832-1f7f-08d5b4fd1e77 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4190 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: mlxsw driver development <linux-mlxsw.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linux-mlxsw/> List-Post: <mailto:linux-mlxsw@lists.ozlabs.org> List-Help: <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=subscribe> Cc: linux-internal@mellanox.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h index 6218231..3f4d7e2 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h @@ -6833,6 +6833,12 @@ enum mlxsw_reg_mpat_span_type { */ MLXSW_REG_MPAT_SPAN_TYPE_LOCAL_ETH = 0x0, + /* Remote SPAN Ethernet VLAN. + * The packet is forwarded to the monitoring port on the monitoring + * VLAN. + */ + MLXSW_REG_MPAT_SPAN_TYPE_REMOTE_ETH = 0x1, + /* Encapsulated Remote SPAN Ethernet L3 GRE. * The packet is encapsulated with GRE header. */
Add MLXSW_REG_MPAT_SPAN_TYPE_REMOTE_ETH to support VLAN-encapsulated port mirroring. Signed-off-by: Petr Machata <petrm@mellanox.com> --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++ 1 file changed, 6 insertions(+)