Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964872AbcCNIqZ (ORCPT ); Mon, 14 Mar 2016 04:46:25 -0400 Received: from mail-am1on0089.outbound.protection.outlook.com ([157.56.112.89]:58409 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754856AbcCNIqQ (ORCPT ); Mon, 14 Mar 2016 04:46:16 -0400 X-Greylist: delayed 2101 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Mar 2016 04:46:16 EDT Authentication-Results: savoirfairelinux.com; dkim=none (message not signed) header.d=none;savoirfairelinux.com; dmarc=none action=none header.from=mellanox.com; Date: Mon, 14 Mar 2016 10:10:04 +0200 From: Ido Schimmel To: Vivien Didelot CC: , , , "David S. Miller" , Florian Fainelli , Andrew Lunn , "Jiri Pirko" , Kevin Smith Subject: Re: [PATCH net-next 3/3] net: dsa: refine netdev event notifier Message-ID: <20160314081004.GB3060@colbert.mtl.com> References: <1457900494-10266-1-git-send-email-vivien.didelot@savoirfairelinux.com> <1457900494-10266-4-git-send-email-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1457900494-10266-4-git-send-email-vivien.didelot@savoirfairelinux.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1PR06CA0027.eurprd06.prod.outlook.com (25.162.116.165) To AM2PR05MB0977.eurprd05.prod.outlook.com (25.161.234.14) X-MS-Office365-Filtering-Correlation-Id: 766414da-cb43-4093-a4c5-08d34be0355b X-Microsoft-Exchange-Diagnostics: 1;AM2PR05MB0977;2:WzoiPspNZcJm6lZRqSqI6WJJsBPmT3ZqxeLHDoIm9WKUfT06wXdijBXktSvcL98rZF0jlfjAi8+JWSJpb1t66D0cNJKGG17cAAftRslRUq1Lic0nIaL8U4O8xIDA0oOGBSfwiQ0APkJamUpOIC/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0Hy8Mcd0uyani64TEdUsA+DwMSJwLfIK1+mCmuehmQxNC6zwpUWVbX;4:eo6UDfhAJvuJnji4M3zUXJGhGKyivf5b8JIgn6iNVj84DxQSNBKNTqjn+UthfcZM+bbI8xlGtt1WXGBmeGgLZmI3vf1ekzsVP1bVe0KJRrXCBPC8XTDmqu615GN/eQAFy0mYpFPitVdF5sZL8CKqZnsdQMXNZWqK0dqlkrBbWRkklF2dq8ou8tcS+GbhNyE6eTzUf+6PxjTmzjRuEViFADniMlE9cSdKquGhk58ueavaImP0XaxF6iA1I3FTjSrHZrDLJ3FLRK/cbP9cJt+wu5GXBin/ztKFbMszLlTpNRgN1P+jXNISS+537J2gWLkQSKGFDSnfq9ZHlXR201Ud6pu4w0OkH4ziHv46CPUblvYEq+7Fk8U61e/iqoU3UJY+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:AM2PR05MB0977;BCL:0;PCL:0;RULEID:;SRVR:AM2PR05MB0977; X-Forefront-PRVS: 0881A7A935 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(81166005)(50986999)(54356999)(76176999)(97756001)(86362001)(5008740100001)(77096005)(50466002)(2950100001)(19580395003)(189998001)(4326007)(76506005)(42186005)(5004730100002)(586003)(110136002)(92566002)(6116002)(46406003)(47776003)(33656002)(3846002)(2906002)(83506001)(1076002)(1096002)(23726003)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR05MB0977;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AM2PR05MB0977;23:0HRkB9Gi3s6lQxs7O963Fybet9gdmhkCHuq4y0QZgb56O2gYqf4RlF6HKRU72cKOf2b5MeSY9U3pmq2OccnEeREDNjC0Wf65SlULYuqv+T/bhnSPc6FR3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etzTUk51udwxyJHVXWAmwA8F5REsjtbTbmRmGom5M= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2016 08:11:12.6671 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR05MB0977 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 414 Lines: 9 Sun, Mar 13, 2016 at 10:21:34PM IST, vivien.didelot@savoirfairelinux.com wrote: >Rework the netdev event handler, similar to what the Mellanox Spectrum >driver does, to easily welcome more events later (for example >NETDEV_PRECHANGEUPPER) and use netdev helpers (such as >netif_is_bridge_master). > >Signed-off-by: Vivien Didelot Acked-by: Ido Schimmel