Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2615424pxb; Sun, 17 Oct 2021 20:35:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymlPlJwoyD20aIDNIf5oL/znWwOepH0JkTRf3rrL3Z7vKuOvXbr9GFohSv2SnsdwrmJ0cI X-Received: by 2002:a63:1a1b:: with SMTP id a27mr21102707pga.220.1634528130940; Sun, 17 Oct 2021 20:35:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634528130; cv=pass; d=google.com; s=arc-20160816; b=Ute9I7dXrXXdNYDKBJRGAdYvoLahA2nlld1frAGkI99iJeQqYiHvgOqqBRC38FA0d/ ZMBnsw9PKxDYCuHghTFz0fBU1X3lh+0E93fdQwt29sewpc72O8nqFAxQel3qw0BRy3AS foAdyVfmsDiIk7elnWIeB3vH1xUty6KYlvjgTLzD5gP3b7qhZhIrlxlkqC2dsNH89igZ uoPQtmiPbcqxCppJdNo40iKTtESDKT25xnd8tBQbVb3sLy3aJOxfPQHnA5GS1Be14shb ta2lr3TZDsWzBb+9GzkDVCD7oWBroRop+u8DH65s9fdVnWjMBtcrEY/dpQy4uMpIDkJq XJGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=wRRU9DkAx1sHIJ3WLpRQZB7LbZN0ArSSkzpxjncPtn0=; b=MUyvByXoojl7e2ljoNEdLwLjV30GiJ0Z4cSDbd57pBD6c9P0IOSmSsKsqe+H0rdQwC gJWvwvlNPrDGSBRpUJF4/P2wAsnUjw9o5R9f1Jy76nuH8NE2y3GqjfFexLnYFT8nD05c 2/KKRdAxlVUcoF8MqETAOL/H0VT3lz/momAL31tkVGfQdT7tK/OckP9iupSsbB90zsxZ tSY9SSJZuCnXKnHg1Vb1Ut5VzhmWZ/dmRaH7dOlOv/fedoMa2sWBFqSmGNFh/XzqCiPj zAf3ZyyzoD46WjnPLNG6FTg13SMK2up7eMILDUXSOn6cELPGGrIwHI8uLelLsPI2yx4P 0AWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gX05H2BZ; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h191si2962950pge.456.2021.10.17.20.35.15; Sun, 17 Oct 2021 20:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gX05H2BZ; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240330AbhJPL6U (ORCPT + 98 others); Sat, 16 Oct 2021 07:58:20 -0400 Received: from mail-mw2nam12on2048.outbound.protection.outlook.com ([40.107.244.48]:63713 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240310AbhJPL6T (ORCPT ); Sat, 16 Oct 2021 07:58:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJvhw74yJt9albnb7opX0NynW1ExN1w7c/ASsc37wwqGqKDy1MTPtfk5w73y7Dt9SpIkn9e3qSm+Uov8N3VxGcEyveDJWmg263DFNrJmLrq/C4C24NWcWRD+VqRy4wIKUOfoEkmkm+aW5QYqPzMhRIZcjNhhLIyLf1jtxccXWjvSo4hJBDHeX9OSCyQtnBz4Ck3A+X6Xn+c4Odjto/JHNpoABZp9FBG8JTlVcaYCFDqeZC3xsR+cwLIZScJcnX4kBm1aCXwFNYeEEc+I3HnCYRXIzQAM3n/CtfOEiOLrycPXNAR646HvGeR3HGd88e2LEgEWg7xVjmxVaE7/Zvmr0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wRRU9DkAx1sHIJ3WLpRQZB7LbZN0ArSSkzpxjncPtn0=; b=UkPr1eCID8aCEjUmJfgO/kGx074CPIdePcw4TKQOVIEQlqstnMpVYWn/l5MhvmA+PyeBs3eYz1snXQqY5gj8yLGVrcBbC6nEkCj7KfveA/zth05QIiXv/T4hYiO4sYaq8Nw9zPS60FgeDF3n72WYpsYCvgJsiwrj5/r/GT8zjmE0xk0/G3iEvpm53xOsPVSrrfSWBzEl/bYxXtl7VZF2sAnggkNHs5KJ/7mSsbP+NjZ7TUDgICgckIfa4HGAqRgTEAELnA0mqqxWEl3p2fLBO2WP361B4f407EZFGbXY2FVxk2O5d7OvCMTGrNhhkDNPfaJ908SyCbcjJqmxge+bCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wRRU9DkAx1sHIJ3WLpRQZB7LbZN0ArSSkzpxjncPtn0=; b=gX05H2BZpNOxoZ28d8pzfoXyLiq3YHb7BqtCtoxdDXILTZsGznE5Pk1upFwCzS1uzfff7LPHLqC9D71Mi6sR/4Btwx5xzZHuOFSf92Ho+QbegfF6bedWSZTrBpD4CvasgzS/2hzHlTUrKmFdPihvMiTpgHw3EtCXLpN1vw5up0QiseJZ4QWzYMsgrgQT6oNoZNxNzW3S5KRqpZoMKCbfTcv7tBmtIu3DVe90BKkEskfA3YTMPuXoRpasdl0R9oBEWiU7Ra0vCWsfw4ACNBVAvXRGaszftQjw0+7tWWU3+KXKR0144Dodbxgmm3lZdKNscth4N9kv7E+ieN3gTfKsVw== Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nvidia.com; Received: from DM4PR12MB5278.namprd12.prod.outlook.com (2603:10b6:5:39e::17) by DM6PR12MB5567.namprd12.prod.outlook.com (2603:10b6:5:1ba::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Sat, 16 Oct 2021 11:56:09 +0000 Received: from DM4PR12MB5278.namprd12.prod.outlook.com ([fe80::513c:d3d8:9c43:2cea]) by DM4PR12MB5278.namprd12.prod.outlook.com ([fe80::513c:d3d8:9c43:2cea%8]) with mapi id 15.20.4608.018; Sat, 16 Oct 2021 11:56:09 +0000 Message-ID: <75a38832-b638-a95a-7ba7-f144cd05d978@nvidia.com> Date: Sat, 16 Oct 2021 14:56:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v3 net-next] net: make use of helper netif_is_bridge_master() Content-Language: en-US To: Kyungrok Chung , Marek Lindner , Simon Wunderlich , Antonio Quartulli , Sven Eckelmann , "David S. Miller" , Jakub Kicinski , Roopa Prabhu , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal Cc: b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org References: <20211016112137.18858-1-acadx0@gmail.com> From: Nikolay Aleksandrov In-Reply-To: <20211016112137.18858-1-acadx0@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ZR0P278CA0074.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::7) To DM4PR12MB5278.namprd12.prod.outlook.com (2603:10b6:5:39e::17) MIME-Version: 1.0 Received: from [10.21.240.28] (213.179.129.39) by ZR0P278CA0074.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Sat, 16 Oct 2021 11:56:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3d116dc1-9dcd-4aac-f643-08d9909bf178 X-MS-TrafficTypeDiagnostic: DM6PR12MB5567: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:741; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0x5VXotzjNSGYupGMxJF79WF9ipA8wHdu7Xqi5//e5ymcrsOawJ2GQXdKBPOuVsFs1e2EhRlj76QMMS3ymHGM50sZ6PJKEvmpRWooPk1h00dCVq08frWsjp8CIpdy7WzAEPMS6lDIlUqo4/MEBHryzXdZGYgfTIO/+kV4mnnScsdh6xyFXWHcLF6hacagTWdnFZ5Y14rB8GPYfxdRzh8w0M7mJbtctGkq770Oj0xT1lgUsMPFVX/9lLWQxBOmNpO5MYMv1Jm50aBlGeTmLII+b5/D5Mo6TpVJf7I3TFyIgXZ5rWiI17NFzPqv1fDsUOOihrhZzUDttePo16wdJ3ZxyS9i34rOQW7Jv4EnsvZwySsVJc5xBk4yYE0Hffox1bZgpvi57lP7q1OGs9LqXCd6jgUjM5Pc5OUtUfTuumexfD/zsTEcllW6sfM5UahZvfP/6IsqWwmyxiegDNodJGGkeDTyk/PMCuMww47gCGO1yC3aY/VlkpwiPiXk3RUhCJ09ZwtdwnbDcfPUtX+rO0orzaXaya1ljSchlTQV8H1uKrKVJc5R6EryX6KqDVYLnG69j9ffwmnr/QMMLEbogdsH3rGTmQi4/ztNGCs4wsHtE2zaZ1ZCNn7ZiIXuz4+2i1A7bV+Q4T/NhzqdK40mnLi3r0ScWtmXFyJ4d5omrEj71qSszz3LgRFqou4NXpLV1GMbgZmRMn89CNpTtkPt541wAUIElBcs2Zc4CNNEQ5m4N9fqAjvCJxJaFP0+pLBUb44bI9zx+cc263bog1MKnz0Nw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5278.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(956004)(2906002)(2616005)(86362001)(4326008)(6486002)(36756003)(508600001)(66476007)(66946007)(26005)(53546011)(5660300002)(316002)(38100700002)(16576012)(8676002)(8936002)(110136005)(186003)(6666004)(66556008)(4744005)(921005)(83380400001)(31686004)(7416002)(31696002)(781001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MzNkaHpybEJNb0FhNjhLbTdGNDlTcFVnQnFVdXVZQU9MSGR5VDlrTHhXYmZG?= =?utf-8?B?T2IyQWcxN1FrZlVoTC9lQWlvSXNGQ1VUYjlEUEhKWXZFUEYvU0duSGVCeURn?= =?utf-8?B?RTM3V25CazlMeGhPM3dENW5DWGZ0bEx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1QU9ReGRmZ05PZmF0TnZvbDhEbGpDTU5jbjZ0b2FaRVVUTFFT?= =?utf-8?B?WW5zZ20xRHBlb1pTejNtM0QwcUw2UTJMU08yUEpLNGNwQjlkbmhhdlNlM3J3?= =?utf-8?B?NHN3SUtvUzU4a3FDUUw4S2xMaXg4LzhaU1daMjZZVUg5Uld4TEVwWnZtd0M0?= =?utf-8?B?RFhxclRVRUlQK1RnTU5lekhuTHVKZFZvQ1FTWDM0VkNTQlhYWXFJZEg2YWF5?= =?utf-8?B?cTNUV1dMcUZiYnlMUDRycFY1SFhxR3ByaTV5bkNjdklsQVNvRHhVcTJFckJt?= =?utf-8?B?MFZ4Y04vR3o5M1YxbHRrckFVOEUvR1lobnJzWExQWXhBRXJOWC8vUVhSU21u?= =?utf-8?B?RnF5VGRPUkhIRlFXUDBSMWdpRWlNeWlzbmdGVjZZbTk2bndXQ0lDb01BY3Q3?= =?utf-8?B?L0JYMTk2Wk9ENVc3Szc1NjgvM1dBY1RHRGdtWkcxb3VnSXZ1bzRONnhYTk4z?= =?utf-8?B?ZG5oNmVWTHhZd20veXJ2Z0RFZ2NSVWttN3hCTW9SMExZcFpwSTJZcDlQTkhG?= =?utf-8?B?NzE4STNITHk3Q0lDUkMyQXpLZlF3YzJpaGNYSGxIVFVXZkJaWFZCZDNvdWpY?= =?utf-8?B?OWMyQW9wK0RZM1FXbkd2emNhNWNTa255RDhsd010eiszaW5IUnc1am9YNXN5?= =?utf-8?B?N2w3OGNvME5JRGxMQUtqcVdDOGptK2x0RGU3d0p1ZVJBeHQ0cTVudURkb1VD?= =?utf-8?Q?ZEShiBFRFvyT9h7PgM8QlFlsune/Km7wvV6zBhe?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d116dc1-9dcd-4aac-f643-08d9909bf178 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5278.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2021 11:56:09.7263 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QRXg2h4KywanajeHWgQajlvfiE2vghZOCXm5obif6XEU/I/aJd5IprQbiGjxj/QLynasyFQgC3n4fyx5L2cjaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5567 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/10/2021 14:21, Kyungrok Chung wrote: > Make use of netdev helper functions to improve code readability. > Replace 'dev->priv_flags & IFF_EBRIDGE' with netif_is_bridge_master(dev). > > Signed-off-by: Kyungrok Chung > --- > > v1->v2: > - Apply fixes to batman-adv, core too. > > v2->v3: > - Fix wrong logic. > > net/batman-adv/multicast.c | 2 +- > net/bridge/br.c | 4 ++-- > net/bridge/br_fdb.c | 6 +++--- > net/bridge/br_if.c | 2 +- > net/bridge/br_ioctl.c | 2 +- > net/bridge/br_mdb.c | 4 ++-- > net/bridge/br_netfilter_hooks.c | 2 +- > net/bridge/br_netlink.c | 4 ++-- > net/core/rtnetlink.c | 2 +- > 9 files changed, 14 insertions(+), 14 deletions(-) > LGTM, Reviewed-by: Nikolay Aleksandrov