Message ID | 20180708091538.22068-4-idosch@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
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 66A51603D7 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 8 Jul 2018 09:16:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 556DB28961 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 8 Jul 2018 09:16:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 468B62893C; Sun, 8 Jul 2018 09:16:24 +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 845282893C for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 8 Jul 2018 09:16:23 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41NjWT6DFtzDqBW for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 8 Jul 2018 19:16:21 +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="GypiotQU"; 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.0.43; helo=eur02-am5-obe.outbound.protection.outlook.com; envelope-from=idosch@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="GypiotQU"; dkim-atps=neutral Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00043.outbound.protection.outlook.com [40.107.0.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41NjWH1bcNzDqBW for <linux-mlxsw@lists.ozlabs.org>; Sun, 8 Jul 2018 19:16:11 +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=iA5bp0YI7GITWOfXjU1y1oLr6yS1wcdXkuP7MyXRZmU=; b=GypiotQUg5lBWiH8gjqE7ppDuNUGOZgbwBAnckcPA6vU08Gihr5TgBl90ckburGzE7mokpNVYPbLMsymCPbAf/3HmS6Xh4xWnbn8982EDrgrWf5BFynniZ++Rl+PojqlMIrYmTsQhzaTYiXlemFqqvxaia7jU4SiiqZA1rvYmco= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by VI1PR0501MB2333.eurprd05.prod.outlook.com (2603:10a6:800:2c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.19; Sun, 8 Jul 2018 09:16:00 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v2 3/4] mlxsw: spectrum: Add VRRP traps Date: Sun, 8 Jul 2018 12:15:37 +0300 Message-Id: <20180708091538.22068-4-idosch@mellanox.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180708091538.22068-1-idosch@mellanox.com> References: <20180708091538.22068-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: DB6PR07CA0018.eurprd07.prod.outlook.com (2603:10a6:6:2d::28) To VI1PR0501MB2333.eurprd05.prod.outlook.com (2603:10a6:800:2c::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 381ed8b5-bfc6-448a-384a-08d5e4b36c48 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2333; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2333; 3:5bki/b96mzY5gPcn15yH24DPdBsd4LUtUyq2psz4qLIQTVrKq27/8pPEFdWDt2rpyoNT03gz1ml2I/O37cowja0/iyi7mgfAa4N9h3ffONnJaW8MsfRdd/SMT7ZZb3GTs6fjfs27msI3+B8iwMTMmA1i6VQDYAToXsBQZ1xnbOREzimLv3CtYg0aypJaTU2RHdkSjlNxKeq/ZUd9+2rwrsRs0kvvZVA8a4fij9ItJNHQyhZSv63hzBwB6h5Hiie2; 25:3vMz/zxBtGCDdr8klE8ymmmvviHYTo6Zg8/9/hVB3cXzDvOl8tQNyv27PoFNgyy21IfdMafDvlVl2ZrXw2nGo1aa18wqX3DLvx/GApZD3y7FOqld6ImIjErN/r6VX7U2exFYo5iDdtUwSoXh95S+B97VtxZ/Cj+RqOSB9K6jPoLVxLkN+76Uf77O/sffecqjtWVGN7M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ZEeWOffv1twZYmB4MUaRbbVjSYakdq97iuqhE+byygPfpALNZRZ28vlFk0MKPtAhHOrQeHKdLknyY3rgdL7j+R/rKqPb/lYe1fyFYWFB2V5Nvv1XfIxkjhW/LOm+9FcMyLHrBQbJykyM+msFjo7oTWlkRyWUGYDbuewIK6/HLwDk+rirl6IU37TZQ== X-Microsoft-Antispam-PRVS: <VI1PR0501MB23336FAB935FFCBFD343C392BF450@VI1PR0501MB2333.eurprd05.prod.outlook.com> 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)(93006095)(93001095)(3002001)(10201501046)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2333; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2333; X-Forefront-PRVS: 0727122FC6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(136003)(396003)(376002)(39860400002)(189003)(199004)(3846002)(81166006)(5660300001)(47776003)(81156014)(8676002)(6116002)(107886003)(316002)(16586007)(1076002)(34206002)(37006003)(6666003)(66066001)(36756003)(48376002)(26005)(6512007)(4326008)(50466002)(6636002)(25786009)(16526019)(86362001)(52116002)(76176011)(51416003)(8936002)(6506007)(6486002)(53416004)(478600001)(2351001)(106356001)(305945005)(486006)(7736002)(446003)(476003)(105586002)(68736007)(2616005)(956004)(11346002)(2361001)(386003)(2906002)(50226002)(53936002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2333; H:splinter.mtl.com; 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-Di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+L6besrKJJzjnMKq+vc/jkwft7i6m/t1buzJxiSKlaE59V+1/gzF14NIPCxRqhgmqGgz36rNCJWFQNLDEjCc1K8KIw211IQ6KaJeTj4hWv09rajQx12GKu17rewtTE5P1MY51h2o5dJEwCchRR6cI0hptAPDvlk/s/i3fA2Gaux4WvbCOR+dpzDQDinQR++WaLnyw23HayeZPth12aDx6Qsn8CnfK1npK3EXeG+RKqpPqhWUz9mcQkBZ3aK52mYTYannjKb1lTVjDqdfzIIssTg4S+tc9jOQUm7mbOJ0Uraj0e3NAPXIIfUU6RdcA1MHtQc5bAG+ZKPC6SCC4JKXkHPiz9BkJ8J0Q3L0aT6WOz6DiEmILFRs8shOcWh40fxKgE7zrbniEA==; 5:ttwYxahQj7s/XKRP38wc4OAHlbzjIFUWOWhg/UWRNgTrtgb0aR3tcJNA5+K9ViqiU2RCF0AGdw1htl3Mw4RckPIRfqsJDXf6W0sVg/kvcBZ0dLf+MF27F/lpO3VMbYN/uyuw/Afjfn6pbD8ez9n3gy6uESfm4b5x/ERYP33JiV0=; 24:Gw9i34sHd3zr2cSqCW3KirukqRMek6rNJQXc3KTYTMyVGGPhN6Dtz7OWx2C9oHx2pn6hfRAcYpL043XqbfBXdFTfoRNbz5WBJEYR5opJ1Pc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2333; 7:a+w2zQUlrSsxrqcWhuyq2LVzXl3pJI5fyHNLTBA2K2ASiQ/gTwK90/TgELRm4EXv41gHZ0a84UWQ3XN6B/K4k3mvg4sGVY5YweNcC4Mup5zhn85cRUXo3liPgi7elJN+8P1uOYEEmsMg6opCV1R7quMEaFtZfBXFkmxLV+RpRifVF2BLBCTtm89MvbtSBNP6z0Ck4Wr56u0cUbnolEoaFP/IJE9BrVhe5JLdkXJV+tcF2aMsRhsYeUyWB/JORWRE X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2018 09:16:00.3179 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 381ed8b5-bfc6-448a-384a-08d5e4b36c48 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2333 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 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> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 1263d1bab23b..f7cf698f20cf 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -3373,6 +3373,8 @@ static const struct mlxsw_listener mlxsw_sp_listener[] = { MLXSW_SP_RXL_MARK(ROUTER_ALERT_IPV4, TRAP_TO_CPU, ROUTER_EXP, false), MLXSW_SP_RXL_MARK(ROUTER_ALERT_IPV6, TRAP_TO_CPU, ROUTER_EXP, false), MLXSW_SP_RXL_MARK(IPIP_DECAP_ERROR, TRAP_TO_CPU, ROUTER_EXP, false), + MLXSW_SP_RXL_MARK(IPV4_VRRP, TRAP_TO_CPU, ROUTER_EXP, false), + MLXSW_SP_RXL_MARK(IPV6_VRRP, TRAP_TO_CPU, ROUTER_EXP, false), /* PKT Sample trap */ MLXSW_RXL(mlxsw_sp_rx_listener_sample_func, PKT_SAMPLE, MIRROR_TO_CPU, false, SP_IP2ME, DISCARD), diff --git a/drivers/net/ethernet/mellanox/mlxsw/trap.h b/drivers/net/ethernet/mellanox/mlxsw/trap.h index 399e9d6993f7..eb437f59640d 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/trap.h +++ b/drivers/net/ethernet/mellanox/mlxsw/trap.h @@ -63,6 +63,7 @@ enum { MLXSW_TRAP_ID_LBERROR = 0x54, MLXSW_TRAP_ID_IPV4_OSPF = 0x55, MLXSW_TRAP_ID_IPV4_PIM = 0x58, + MLXSW_TRAP_ID_IPV4_VRRP = 0x59, MLXSW_TRAP_ID_RPF = 0x5C, MLXSW_TRAP_ID_IP2ME = 0x5F, MLXSW_TRAP_ID_IPV6_UNSPECIFIED_ADDRESS = 0x60, @@ -78,6 +79,7 @@ enum { MLXSW_TRAP_ID_IPV6_ALL_ROUTERS_LINK = 0x6F, MLXSW_TRAP_ID_RTR_INGRESS0 = 0x70, MLXSW_TRAP_ID_IPV6_PIM = 0x79, + MLXSW_TRAP_ID_IPV6_VRRP = 0x7A, MLXSW_TRAP_ID_IPV4_BGP = 0x88, MLXSW_TRAP_ID_IPV6_BGP = 0x89, MLXSW_TRAP_ID_L3_IPV6_ROUTER_SOLICITATION = 0x8A,