Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1074315rwl; Fri, 4 Nov 2022 09:27:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CvO9gRoQB/ex1FzBdeIYCYR8q93J3qCfUGYwtEqm1v3qS+W+XQjw6HCgXLFYAFb9o6QOD X-Received: by 2002:a05:6402:5291:b0:45c:3f6a:d4bc with SMTP id en17-20020a056402529100b0045c3f6ad4bcmr36517896edb.285.1667579261547; Fri, 04 Nov 2022 09:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667579261; cv=none; d=google.com; s=arc-20160816; b=nFBAVQXH22QggwH2tIRm9ieBCq+ROgRuuEqTZDNkU/ciP8+2iiT52ipusedB0V3SD0 Zf2ZfJnxZW+tBkWWSKdqp2ocTdL1u3d7KgnuWyq2Vv7eindIQMMfGYYnhGuRGYHVPuXJ L9awuP52x++RdzimW1p3bOpwt/4fvzw70KAhBO7Qj7o3wv92gu9iL3GyDDHch1RZkj4E r+ecZClRA4JQnx7qPKTzPP1LiEebya1eP8ipvK5d+AMVVXEv78lBpSDAyGpX4ZUxtEfk WnMUvxWGcAe3hxNIjd2GMuDNdLdRm0uzJrvCC2tiE19Jwgzp0/ZtQKdOPLvCTpSmXkF3 sYUw== 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=mueebaL38FcUSyeQjIobsTZF1EWJPQVH0pYABKEMbSQ=; b=Dds0IWZYUiOkAX7cj7p7S0KEIEiaTiZFl/5rMoisGvd4Mzo9Xd7iQ8+03HZpSYYlCR r/Q1iuBOPPCGCEjMb1MXf3pbMTRC7zCqRsDFkJabPk4LaPG5k0Jzd4xVdY2DlUVNgVS1 a6FaQ2jQ82025PJ9bH5oByA46cnBZXk8o9wrfaz+WLq4wYpLvxaR3gmr0qGrVyvUJDn/ n6p2ph6LPAlYWs7CxdXR/v/6gp4RPac8pfX7fo4wELnjSzQY5juMbdtwx8LuYRME7CTp CtutZIgyCg9HKhpTK5InUpRgvRVS7B4FyUJqVHIeIQASykHDxNqTl8wC/I1p4mCU9Vi4 fOEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=ULmpVSbt; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056402348200b0045cea9cf231si6719592edc.566.2022.11.04.09.27.24; Fri, 04 Nov 2022 09:27:41 -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=@sipsolutions.net header.s=mail header.b=ULmpVSbt; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbiKDQZ0 (ORCPT + 67 others); Fri, 4 Nov 2022 12:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbiKDQZZ (ORCPT ); Fri, 4 Nov 2022 12:25:25 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E844F10; Fri, 4 Nov 2022 09:25:23 -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=mueebaL38FcUSyeQjIobsTZF1EWJPQVH0pYABKEMbSQ=; t=1667579123; x=1668788723; b=ULmpVSbtjPRgyR1XU6rdZFqUGovGHTjTIIopU0I4qrXHe7X WaAJEnOzPNvw8W4wQ7D2hgN4L0E+pDlaSd32FuHmV/FOeMsdlrIKW3BpoXFtl86y2B3aRs2HZeeJq QsBisjVVpVx3N/WErDbyrNNkYrZDoyVx4M49wKXN8l63wN1vqyP5pFyNp/Im61515BTwJgahiytPO TImgySX6hY43mCsbdsnN0I2oTdC6FMb/4ROXSrVuI9RSceyAvMAA4X7mQtJ7pzemxhGAvGQJJK7Kl JaFAaFRVSMny9xtoP1n1RbYY4eviO4promqjDWMsxUEnS0islwXBgE8bk5Y2/xQg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oqzVG-008utM-2M; Fri, 04 Nov 2022 17:25:10 +0100 Message-ID: Subject: Re: [PATCH v3] wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port From: Johannes Berg To: Marek Vasut , linux-wireless@vger.kernel.org Cc: Angus Ainslie , Jakub Kicinski , Kalle Valo , Martin Fuzzey , Martin Kepplinger , Prameela Rani Garnepudi , Sebastian Krzyszkowiak , Siva Rebbagondla , netdev@vger.kernel.org Date: Fri, 04 Nov 2022 17:25:09 +0100 In-Reply-To: References: <20221104155841.213387-1-marex@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 (removing Amitkumar Karwar as that keeps bouncing) On Fri, 2022-11-04 at 17:23 +0100, Johannes Berg wrote: > On Fri, 2022-11-04 at 17:09 +0100, Marek Vasut wrote: > >=20 > > In V2 it was suggested I deduplicate this into a separate function,=20 > > since the test is done in multiple places. I would like to keep it=20 > > deduplicated. >=20 > Well, it's now a lot simpler, so one might argue that it's not needed. >=20 > But anyway you're touching the hot-path of this driver, and making it an > inline still keeps it de-duplicated, so not sure why you wouldn't just > move the rsi_is_tx_eapol into the header file as static inline? >=20 Though honestly, if we thought it was worth deduplicating a simple bit check like that, we could define an inline helper in mac80211.h. I'm not really convinced it is :) But hey, that's not my driver, so ultimately I don't _really_ care so much. johannes