Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp745059iob; Wed, 18 May 2022 11:59:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWKEwc820iyYiW3BNQSQs2oS8LfEaPFuBconTGcm1216/Es8YJTlY9ftqCczbI6pbgGrvA X-Received: by 2002:a65:6e47:0:b0:3c6:7d47:ddc8 with SMTP id be7-20020a656e47000000b003c67d47ddc8mr695845pgb.157.1652900388195; Wed, 18 May 2022 11:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652900388; cv=none; d=google.com; s=arc-20160816; b=cVTYFkBsb+lk234RxzBrSs4vRBziG8tPFI20I51vsQhK6zsXXZ7nGts8gTEC9eEEIt vFK5Rf6/Np2Gk/sdDq1zewyokmbhWaDLpLIILvZ0j41gyquGA5vOpbjUIpLs2nD6YLAY Cy4MajaWx/YoFc0QmeIyO1Fw4d4i6HE+N5bVihp+nxB/XbL7T2XVniHQ+9YesRooTXLz WXiStDCnCOAkPy43LRRsX4+AvBDcVe/zJI86u2bAwWJ067LIWur5tITfF3A7kWEU8Zs9 wfa6on4kVc2azOUIc6sG47yTqfBBHAghsfkx9qLq2HCC+Pow28dnpBbayTgBLeMJcTjq s7wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Fxox5gR67HutVJdNx8kOAn3Tka6TVzmmILwSzdfWpnQ=; b=jCd/ONR+489yyZNsrR/FjBKFqR0um+V44Roj2k6GOywykm7OZSdG/cHJk0hdDoooM7 LbcwMl7BXQUqkGyAPbC28LA+BneFekrkUAUPmfSlTK6DUIVeyaolvrk0qi45Orw7wAqC d5obpv429yu09kgliAIAo9zT3X1m0MEumfC2yt38dDd9PwnFu7gmkBA2ntYtFaitUPWo x90FBq8pID9Q1H4lxaei5lHiTJ3QgXh4XO9VUZ3vv6cVl9q8z85mL9uXJw+qkYgKkZJR DyqppjI1iB+lGjBQ/seIvq0LY5OrRCvYOD0MJQIvaR5yifpe2r83eECF+Kh8OZBpEaj7 cbtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="kDn/aHwx"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m4-20020a170902db0400b00161c545c5c3si3536316plx.601.2022.05.18.11.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 11:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="kDn/aHwx"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C93DE18DAD2; Wed, 18 May 2022 11:59:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241842AbiERS7o (ORCPT + 71 others); Wed, 18 May 2022 14:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241836AbiERS7n (ORCPT ); Wed, 18 May 2022 14:59:43 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B80D3CA5B; Wed, 18 May 2022 11:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=Fxox5gR67HutVJdNx8kOAn3Tka6TVzmmILwSzdfWpnQ=; t=1652900382; x=1654109982; b=kDn/aHwxbECndNhf32nkiAazm+3FWycykYakgUhAGD3gICN 0tYzgmEU5jyzh6Dfig0ek0Q7izxy1jgpANasfYxzVLyT03pTWs7g7iE5wvk8XL1qQuvWFylXRT1D5 imF3NAkD2VzJwfIYCCKJAZVlEs/AboZpZtKTiCHbZob5g+6HLI3yf4E0pGVVvKMJcR3ZY1ll3WjJH lCYUDs4od4Qznw2oAz5FMQ8fWwY7yYJg9RlY+5XlrVW6tAs00+AwYIDfPdhi8audDxGjK2Y9ZFkzU WfzSJS4375I5TG+eYiiV3habXxDgpTHfYNFglhbrG6QYpzQ2iVorNUhMrAbUibKg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nrOtG-00FWJQ-FQ; Wed, 18 May 2022 20:59:22 +0200 Message-ID: Subject: Re: [PATCH net-next v2] net: ifdefy the wireless pointers in struct net_device From: Johannes Berg To: Jakub Kicinski , davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, Stefan Schmidt , alex.aring@gmail.com, mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, sven@narfation.org, linux-wireless@vger.kernel.org, linux-wpan@vger.kernel.org Date: Wed, 18 May 2022 20:59:21 +0200 In-Reply-To: <20220518181807.2030747-1-kuba@kernel.org> References: <20220518181807.2030747-1-kuba@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 (3.44.1-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 2022-05-18 at 11:18 -0700, 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. >=20 > While at it move IPv4 and IPv6 pointers up, those are special > for obvious reasons. >=20 Not sure if the "ifdefy" in the subject is intentional, reads a bit odd to me :) but anyway looks good Acked-by: Johannes Berg Do you want me to follow up with trying to union the pointer into ml_priv? I prefer to union it rather than use ml_priv because we'll not want to use the getter everywhere when we already know, only on the boundaries. johannes