From patchwork Wed May 23 01:41:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10420015 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.web.codeaurora.org (Postfix) with ESMTP id 7435D600CC for ; Wed, 23 May 2018 01:41:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63C6528DA8 for ; Wed, 23 May 2018 01:41:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56F2428DE1; Wed, 23 May 2018 01:41:43 +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 AC56328DA8 for ; Wed, 23 May 2018 01:41:42 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40rFc46GQnzDrbm for ; Wed, 23 May 2018 11:41:40 +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="WF/Nw7r/"; 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.62; 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="WF/Nw7r/"; dkim-atps=neutral Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0062.outbound.protection.outlook.com [104.47.2.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40rFbz6sd9zDrTs for ; Wed, 23 May 2018 11:41:35 +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=MI5rLrltG6qcpnCztg5EZ1K3nVSvKYVEA3cqkLXVhFU=; b=WF/Nw7r/E+MDLbEazKnWTdXWlFrwPe3gwXUcdAaQqvoTHnwpsPtObbSvFHonfC9+SFl0WXfOhW3pOeEHZXDtbZNKcw75kC/BpWlb9ZDymlyM3vREmBhYI+7aWmHoCjXY0xxG+SNFeKz9fsJpLgnVjgL52B4Hp0339lf99G08LMw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (89.176.83.59) by AM6PR05MB4183.eurprd05.prod.outlook.com (2603:10a6:209:40::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Wed, 23 May 2018 01:41:32 +0000 From: Petr Machata To: Subject: [PATCH net-next mlxsw 5/7] staging: fsl-dpaa2: ethsw: Ignore bridge VLAN events In-Reply-To: References: Message-Id: <1af0fc4f85d3bd36b739dbd3323d570288fc0f15.1527039181.git.petrm@mellanox.com> Date: Wed, 23 May 2018 03:41:29 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [89.176.83.59] X-ClientProxiedBy: LO2P265CA0200.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::20) To AM6PR05MB4183.eurprd05.prod.outlook.com (2603:10a6:209:40::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4183; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4183; 3:ykcAkiZUXp2gsre8ZKZAfG7ieBCC5kakWvCI6HfD9uJ+IDPqX/0vkcKXZzpPzogbtf7jvdivr2iRIOx8S90itD3ReDaGBWrxKOGoflo8sbxJfFMx2CMAJIIsy9ErZ+XSdwLG6sP8nXLNys0UwJEpZpzzxyoOHPaS/Kxb3yxplZ+WkPsOYOsCHTj3j7/QFDwlBcdRPkYgpQK6rr8cE3HcUwejDWR5nE6o9wB84E5YbWHU17h0ILGRf0lKf9Oua9ja; 25:H/kpCotQ9tsHwqaKTZbLW88ghfK5IL/x8gumpcB4nE1p7ICKpT0ll+TCNAImcEkp8PmBvTN9AMIozeDmiE0KI3FAwWnLCIqjTNc063n4jGBaymZIZ8DhoXhhadPD00Cj68a2uIBje1/mjDnr/AhLrdVhFVqJx7/BT96ZVcKoApItmuYAW2H642kHGPCLWYF+xa0IJOC7Eugu5zX1ZWY7+4znAn38/ipOlx4M3oiZmdTh5NPvsi3M3f7d7rbMsCXpdU784Og6FX7KFvQekYL/4jT0AOeCbQtv2OLSJxxgnkR4tvHQgIw2bV58EDwxBTgmJIlBVCAadcS/NyTXM+f3mw==; 31:9mKerXoZ3K8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6yNtyvzQ== 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)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM6PR05MB4183; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4183; X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(376002)(346002)(396003)(199004)(189003)(52116002)(186003)(53936002)(76176011)(51416003)(6486002)(6862004)(2351001)(86362001)(26005)(58126008)(37006003)(316002)(386003)(16586007)(478600001)(6116002)(3846002)(5660300001)(97736004)(118296001)(81166006)(81156014)(8676002)(7736002)(305945005)(68736007)(8936002)(66066001)(6636002)(6666003)(6496006)(36756003)(47776003)(105586002)(106356001)(2906002)(476003)(48376002)(956004)(2616005)(486006)(11346002)(50466002)(25786009)(446003)(16526019); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4183; 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; AM6PR05MB4183; 23:v9JitrlfQYufM1LPgWfsLBkFzuWjmih82OtoRNlvo?= =?us-ascii?Q?rgVdy3SmUEm6jHPIzPNHEJqu56jhT1I3YqmjMI2FvotuNqWWeyQrs1g7rlMA?= =?us-ascii?Q?66CKJVyur8rLyWUM9bQLjikIFpgi9QKPSemRKtIQsp+d1G0IYrtXtdOZxOkl?= =?us-ascii?Q?CvjhAJ3triFZ55rIoodAtVR4oyu6yIu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ZbByaxGHADRqxsW8FU7ah2/DsispLmPyG89iWgaUAem0x7tG4Zw=; 24:5br8SmxHWPGWB8ab3DO/iebCiGZNj3BgbzMWmEc/rDAExbd/bcVObq9xohlTJHYd9OSSI/uErdDlkEDd+MkbH9fb/Fpnw/Pz4u4XbzlSgnY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4183; 7:cy9UMmpMq+fndEsICBtbFph7/YUe5lrsPauWQLOrRCEzptRPIYqG2vSXPh04Eg785ss1//dAVril+kGkYZ7RqIyFgT3JKQQT2A5VECJVbueK2/omjqR50hmzPFAaniee9oKTa8ZTUDxYhHNx3rpnlPkdrXlczOsZKhoCqI1furi+ApOMP8R3K2Un5BvYUc8roMdtQHBLiS+sB3lj3Ndf3UT6rWfhm3LYzbXxMDkU8mP44WzB6c1qnwVLveRhbb4n X-MS-Office365-Filtering-Correlation-Id: 0f269e1a-1ca2-4a85-e360-08d5c04e5018 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 01:41:32.4396 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f269e1a-1ca2-4a85-e360-08d5c04e5018 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4183 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 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 Ignore VLAN events where the orig_dev is the bridge device itself. Signed-off-by: Petr Machata --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index c723a04..a17dd29 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -719,6 +719,9 @@ static int port_vlans_add(struct net_device *netdev, struct ethsw_port_priv *port_priv = netdev_priv(netdev); int vid, err; + if (netif_is_bridge_master(vlan->obj.orig_dev)) + return -EOPNOTSUPP; + if (switchdev_trans_ph_prepare(trans)) return 0; @@ -873,6 +876,9 @@ static int port_vlans_del(struct net_device *netdev, struct ethsw_port_priv *port_priv = netdev_priv(netdev); int vid, err; + if (netif_is_bridge_master(vlan->obj.orig_dev)) + return -EOPNOTSUPP; + for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { err = ethsw_port_del_vlan(port_priv, vid); if (err)