Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3420157iob; Mon, 16 May 2022 22:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzMQnDbkDO5jXVY4f/DC6TgXEhN7NK8jDDxrUDe2+qqr7LCgzwLEB6xIN0WT9hsgomLtKM X-Received: by 2002:a17:90b:4c09:b0:1dc:6c30:f230 with SMTP id na9-20020a17090b4c0900b001dc6c30f230mr34629604pjb.110.1652766022726; Mon, 16 May 2022 22:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652766022; cv=none; d=google.com; s=arc-20160816; b=TbS4GcdA+uS9zq9W8SMqm2FzkqZZ4kVemsZVhgQgpDA/RVcqDxe5C5a2/MKede6OP3 a3b2uPhPrVt3a+C+aWfy2ynHY2NEHGOw2Pyl1dWM3eHm1+AmlCZvSSilNcZLL/h3cwKW omY4shnTZYutp7kn7zsNjmtNhI7dPnlcySVOh8mxfnpCnVNp4WR3U6wmRyikZezDhk1G Qyg25HJULNWysdtQ4kqw3qCRjCjboCFhXaCvuDc82ba0KcQtt2Np8K1e34Mz3F8PpO8l 4czWN9Tobq+Pgsg6hgS/cWAWY0RNdZftf7OA7yB5pSwQAwlR9yEA4qHvgNlvEcaMc1gY cG+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3ZM/bXNrUv0VYX8K23DwSrqZnrWh9hjgIxkuc6viZwo=; b=k2i3wclDH985zrVDS2gCQieZJ8Yq/xNHfwiBQm0A8LzV0RaaYh9FtCUgeB3p4MUDgX /PsP/adQ2kQwbWom9GNJqXsQjqNh842ssUvUwoDr2LBcSv15Lzz5fqYSy4BQl0A21pqf XFGPom0Pz1dLuOcBN0UsbEuHvXfXHUhBH7lGpGECOpczJr1v5P7gHyXMJZT7wsLUirEd 18TtSLV4x4W2rIbNc8/peU8qtm3z05A30cmkz0AsJoGmkNz6ou3B5sAywk5uXYF+kOJo JD1vXklG78tdUHroXQJEMGlodn2Pux3RL7xWAC9O8qD/pOrYci78scCMsLOq54eN4ydl ao3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="G/Uq+Bib"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a630d56000000b003c6a370aa3fsi16371772pgn.439.2022.05.16.22.39.47; Mon, 16 May 2022 22:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="G/Uq+Bib"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbiEQCM4 (ORCPT + 70 others); Mon, 16 May 2022 22:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiEQCMy (ORCPT ); Mon, 16 May 2022 22:12:54 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9534446159; Mon, 16 May 2022 19:12:50 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id l20-20020a17090a409400b001dd2a9d555bso1047784pjg.0; Mon, 16 May 2022 19:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=3ZM/bXNrUv0VYX8K23DwSrqZnrWh9hjgIxkuc6viZwo=; b=G/Uq+Bibk8biPAB2nd1ne5S03dV1mVV4KPJvjbWokbD/HF/VcN+SLSgWMLRsgV1EhH 0/G6np4gtSaOLlp4dBI9ZxH3eJYXBQXo1biwU86K9ixDplyGT8zIiv8+8A8DoKrZRhvu HcMcvLWP05k1J8Ie9LB3sgo4L+bPtwxb8xZRR+5qEzYyJVsuAfhCU0qAInTTi/Qm//61 VYv6/jjC45626tW8k+QweHPLSyNbQDk/UvJNupuuHQYEqJWiqkehlEBKrDHL6uNWzgWV oTG5v+Bpmscw/z2c2ldKS+7zAm8EGJJ4m5LjPbda8a6BmmWOun8Wjbb96IeDqfbQ/gas 8yPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3ZM/bXNrUv0VYX8K23DwSrqZnrWh9hjgIxkuc6viZwo=; b=wZDRCYL/7ZiTayTfyDHEHOQQw670z1z6h1raHjKJ8bUWCb4uZ37syuKhB+V+OMf2D5 QMwGa9URAtpRqmIbCaDQEmGxBZPHXfy1Y621JQk6qhjak5QiB1jB3mLKlNNV7rD0Xhue Dfx86EVpErCJVKWd4I9onDl6ww2ChzRzDEj+CI5OjK9g96cq73wcp1C0BvUfOLQME1mn ORsprtTqvnvgIT/TK4UoryyBIa24kHx2xle7rhU6FgZqb15alWCLZejte5vDUX8ufp91 hSeETFpbCTE8a6MN3fFd8Cx7iNqlMC8Q6zere5DkUMBXCyLb3wRsY0VmyDdz2aaC5SAQ 4hUA== X-Gm-Message-State: AOAM532LXO3wSNfmmZRVZ3CLoPYOGDxpoNQ9zFh1U74PtGMaZ8w9ROun RVlDaoXe0Pa9pMWNMlNP7V+mRWdoWMc= X-Received: by 2002:a17:90a:764b:b0:1df:58f2:784c with SMTP id s11-20020a17090a764b00b001df58f2784cmr7744949pjl.122.1652753570063; Mon, 16 May 2022 19:12:50 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id n8-20020a654cc8000000b003c14af5061asm7421832pgt.50.2022.05.16.19.12.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 19:12:49 -0700 (PDT) Message-ID: <8e9f1b04-d17b-2812-22bb-e62b5560aa6e@gmail.com> Date: Mon, 16 May 2022 19:12:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH net-next] net: ifdefy the wireless pointers in struct net_device Content-Language: en-US To: Jakub Kicinski , davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, johannes@sipsolutions.net, alex.aring@gmail.com, stefan@datenfreihafen.org, mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, sven@narfation.org, linux-wireless@vger.kernel.org, linux-wpan@vger.kernel.org References: <20220516215638.1787257-1-kuba@kernel.org> From: Florian Fainelli In-Reply-To: <20220516215638.1787257-1-kuba@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/16/2022 2:56 PM, Jakub Kicinski wrote: > Most protocol-specific pointers in struct net_device are under > a respective ifdef. Wireless is the notable exception. Since > there's a sizable number of custom-built kernels for datacenter > workloads which don't build wireless it seems reasonable to > ifdefy those pointers as well. > > While at it move IPv4 and IPv6 pointers up, those are special > for obvious reasons. > > Signed-off-by: Jakub Kicinski Could not we move to an union of pointers in the future since in many cases a network device can only have one of those pointers at any given time? -- Florian