Message ID | 8b237e67bc197b3f9e577117f5ad08825c432a73.1525702327.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Changes Requested |
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 1504160318 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Mon, 7 May 2018 14:32:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 066E428C04 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Mon, 7 May 2018 14:32:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04DB528C74; Mon, 7 May 2018 14:32:35 +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 1AC6D28DC9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Mon, 7 May 2018 14:31:11 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40flRK36GzzF1S3 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 8 May 2018 00:31:09 +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="L2s44dxP"; 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.1.59; helo=eur01-ve1-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="L2s44dxP"; dkim-atps=neutral Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0059.outbound.protection.outlook.com [104.47.1.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 40flPd6rgyzF1gG for <linux-mlxsw@lists.ozlabs.org>; Tue, 8 May 2018 00:29:41 +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=L2s44dxPKRpPWuVz0Klf4B1e9tVJA3cp+K1gNukJLv4a0RDqY4cFFFMAh+Au05Iv2MGbWCzCuEyowSrz65GCQ0yHIktnJCDl5lij9QAEwe4KupVBxnscn8mvjyWyWv1gJ/c7/nVI26xQsVwbMTPm7+OGdeiI+YkejyiUyOEwoBg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by AM0PR05MB4179.eurprd05.prod.outlook.com (2603:10a6:208:57::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Mon, 7 May 2018 14:29:34 +0000 From: Petr Machata <petrm@mellanox.com> To: <linux-mlxsw@lists.ozlabs.org> Subject: [PATCH net-next mlxsw 1/3] mlxsw: reg: Add MLXSW_REG_MPAT_SPAN_TYPE_REMOTE_ETH In-Reply-To: <cover.1525702327.git.petrm@mellanox.com> References: <cover.1525702327.git.petrm@mellanox.com> Message-Id: <8b237e67bc197b3f9e577117f5ad08825c432a73.1525702327.git.petrm@mellanox.com> Date: Mon, 07 May 2018 16:29:30 +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: VI1PR08CA0109.eurprd08.prod.outlook.com (2603:10a6:800:d4::11) To AM0PR05MB4179.eurprd05.prod.outlook.com (2603:10a6:208:57::28) 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:AM0PR05MB4179; X-Microsoft-Exchange-Diagnostics: 1; AM0PR05MB4179; 3:++/rZ5HOj/e+7WaUnUjHkUJqep4Z9M0Z/iCf0tAZL3EFvYzqlsdkQ62ltEFUHvopxx5iJh4wH1tl9XYWCHbQV3Hv8J/hmrAXrAG2lcH5LhlksqvkGWY5bDJCaywtJ8WKyWho62gQx9uw3nffRgfRYvv+ibn/mhxXe05/8dE8ZBaEbyr30bqJlNWCNxN3IBXBwZ6Iw9rlgZitw6Kdaz1qpm3lHUUl7sjdKDCR7B35C4b3kfnOoZI644BfbvZzGwsa; 25:/1RErW6J4iDNLPaVTqhJGs88HRmOOlLaydfn2MP7TCwsb4IemQX+NCpZpt6GMXe8DNZ8zxrm7zYacya+irI8rIgAIiom4+Tkn4Po1EKb56CemugGUkXAP3PG3IbdPM4FgnPi7VOO4emLE5YnvztVwSzxrRYPkKzLovG6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J5P+1JSUkN56d5CwOwS0IrUPM3X6lTjALFvzCERp2XMCnBBK4FvBaRJaGz27X9ZDQ6Lvl9L2BDo5kp8gh8LMRNJvPeLZsMvKnQIwCjQAdi9gGoj0+nWqkB0PBBGQoyQloCZxBXSkne5X02blw88SLCO4hKlaFA3Ho1eAXTrWcEll9QW/60gqh8LCoBUR8sOzhSGXwBsePtS4twklV6nTnliD9F4f5OQpuW53mFdKT7s+k5cMKVx+ X-Microsoft-Antispam-PRVS: <AM0PR05MB4179B9EFF1CD1F0F3E0B3783DB9B0@AM0PR05MB4179.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)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:AM0PR05MB4179; BCL:0; PCL:0; RULEID:; SRVR:AM0PR05MB4179; X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(346002)(39380400002)(396003)(376002)(199004)(189003)(16586007)(6486002)(956004)(5660300001)(446003)(2616005)(476003)(6116002)(3846002)(25786009)(4326008)(53936002)(76176011)(107886003)(316002)(81166006)(486006)(58126008)(81156014)(86362001)(478600001)(47776003)(6666003)(7736002)(305945005)(8676002)(11346002)(6916009)(8936002)(105586002)(51416003)(68736007)(50466002)(2906002)(26005)(106356001)(52116002)(118296001)(97736004)(48376002)(16526019)(386003)(6496006)(2351001)(66066001)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4179; 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; AM0PR05MB4179; 23:BO206uyOips29nlTTn0EbGnW0Y9pxs9Ser3OZgwAY?= =?us-ascii?Q?ThMTFYbJf0D9RKJ6x0/x3bpiLhj8uxHB6KqHd+AdhS8QZEqWkIfo1pAox+O9?= =?us-ascii?Q?3NdBOo5szXGJOLoQuaq/P/V6V2KFKJffrSDb5BkbjDW3ubIUfMa3KcB2WAkx?= =?us-ascii?Q?E1cCiSzFoyzV6ckxAZy+dJohtq7KfgaHyDbN3+s98b2c0t+K2sZX8bB9blDx?= =?us-ascii?Q?qR+L25toL6kXvKrKm+bbmZcMBQeLKeWI9kj1iMgEpF9rISMhhevHd+t+n56W?= =?us-ascii?Q?x8/p/7NCRv3F2bUgM10sASnEqlBDztCSwh0vQKbSmZLXhOSgIW11oLM6fnTc?= =?us-ascii?Q?SzJBF9UO66U2lxTefSkznXwQl5z+xbnaIRAN60bR9LheOhOqYgXd/03Coto7?= =?us-ascii?Q?92lUsC5JhrPSkd/5vRad7sFy5+EIrqQNzOYbpzYkTKRxUA/k6yBhXYlSZjPD?= =?us-ascii?Q?B7EmZpeyKL0vxOHyxMF2qRQcADWkdcBXZ40TLIzig7i5kGy3Wnzyy2iRZcju?= =?us-ascii?Q?33SA5JdoRtTFgwl0HQUBu7b1qUcpl0pf2M9V4xzEAA1Hkyi8FjDTdHsL8AyH?= =?us-ascii?Q?HnbX46yjO1E/dYlIpoQDyC4rUtRVDco8nEnPLeir6dNaTq2l1rpyZjUfqhQS?= =?us-ascii?Q?kivIHByWPM3kHIjcgk+N5KgM6uZ73jSAvbUzo8WN2rYwZJHetlQJonXIQJso?= =?us-ascii?Q?uMm///swnnnpSSJ3GXgFwwDDXInSbdwpZyF6S9+npK0vYYCm5YIh+Him7Exl?= =?us-ascii?Q?leByHUNycGsPo5zq1LX8Qu+jMstfSBaUFATqzD85v0X1dTrxy3R5ji3lSvmA?= =?us-ascii?Q?J0loNNOO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VKB3Q4t8/diL0GGVTE/yjxIwRFLKCOLSbazSb4J0ziwannnJav676xdV1OqNbFUDTgbm48obKygrLGGBnRkkOHKP7oPvr9OM5gn8ewskbz43GMyPyc7w4H0/lyIqQ==; 5:Oxg3qeYPK9gi2P6aXRE6Pvjm3LMRs5egOojQolBxl0sgSx45VuPSkrxWLeIQ2JL9YdJ76/4SzgEfEFtZUgLGSJ6vUrmj8wDEBQMbBCXarDEv8+XFAr2N4gr6v46ZdGF8D5TiUlQOOEw5eP0kFqhTlty9ds0JW0lhHJRzyF38UZM=; 24:Nc9POHkV/JNcj5cGzAtADvWV8BFgT5sA/znFieZMpTW2pFgN1qoVImOWB8c+/OgVWthtFWpYHGSgUT4kp6KTeMw7Bf2WLgHVcBcWQ2Nm5S4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR05MB4179; 7:tKgBrjuyA9c8oqxMqADFkKpeJES0xAbaqz9Q5xyA7TcY7NcnmIrsxcaPjWOBxsNtT8JSBt98DunZp/HnlXFARaRuc1+l6VREAcvC/sVZaLMlE3Cquy0j7BB0okgWOg1shhOIgXTOfZwESZS+u/tG+rlRQFE26853BZlWtzeZfq94dvwqccpPBY7q1FtTN+TInT4EP0i7q335pnTEg0wqLPci2BtIGYy1ecHvWX3N0JJtV3vgFiXuDX6UsIheDJnT X-MS-Office365-Filtering-Correlation-Id: a2d5e6a9-fc5f-494d-3566-08d5b426f476 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 14:29:34.4218 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2d5e6a9-fc5f-494d-3566-08d5b426f476 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4179 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(+)