Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1070775rwl; Fri, 4 Nov 2022 09:25:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OveQXwsOdVhbTpaAUcLbu4FOuRVnbgWTzNKBEb+YQPHR90CdEkmVN+UAyptGfp79LWnv4 X-Received: by 2002:a05:6402:3510:b0:461:f781:6dfe with SMTP id b16-20020a056402351000b00461f7816dfemr35408647edd.272.1667579119643; Fri, 04 Nov 2022 09:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667579119; cv=none; d=google.com; s=arc-20160816; b=a8GhnGMOG/LrDtR4vBePFj2YXph/2jzqeralQejfczuSDQz2Vx7Eqpkprce8MnjHZB IFjwfYMuiTXFbjct7/C5IMNblfEUVhDfet9dg6+T+qrXxu7NG5Vp60cTSWmXUymVI3CB wUT+gVsjtCM8hHx4yeXUYSVpR/NEOZ7vDlyQphizSWMy/1g+SOynRh3pPh1OlBEbmVD+ TAohpNK85e8BeNYZeObcpsALbRsd1VOrrIeA0gQ7nZ7MzvWaEzIN8oIpXryUNOzEAAOC dXnXKL9Sr1485EEq5nstWIBHdXVBJJI7mW2a+SL/CoGu0lkaZq5f6QUwcZxj1adcP6gy qx3A== 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=QPfTEW1yEsUmv2SnsC8Z/iqqatNA8YdvlM9LwrrznSE=; b=BDMoR3bpfj3MtyyImBqMU/vE0+At2OhU3EfXl4XFnmuHJ5P/R9l15ZYvIOePkg0udw SVfsyL/NFsivwOJ62M4F7gYeMENXBhOFSOiPvJ7r/nKjN8X4eYLFmBhdWQHIRb7M0iIv Gk+rcPa0mlXdN6w7EHnCCMtf81ozfdnGTjnDUgMJkrwF4YPKSONzJ7PgFLDsA5G7llR2 /Y5FTyBdXJDLZslTVHagHQPa87LEN8wC8tcyxpCb4Yy6yAqfL0Y5oD5a4TXQytdzC7wE 0xKPv4hGZsFe7+vJMQcJQpmZ4oVjIhxAmSgG/346IOzTUCq1arfyj1xwtCFI4Cj1CLiO Px1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=wFm8vAEf; 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 qa34-20020a17090786a200b00780636887fesi5637399ejc.797.2022.11.04.09.25.02; Fri, 04 Nov 2022 09:25:19 -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=wFm8vAEf; 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 S230342AbiKDQX5 (ORCPT + 67 others); Fri, 4 Nov 2022 12:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiKDQXx (ORCPT ); Fri, 4 Nov 2022 12:23:53 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214E3267B; Fri, 4 Nov 2022 09:23:53 -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=QPfTEW1yEsUmv2SnsC8Z/iqqatNA8YdvlM9LwrrznSE=; t=1667579033; x=1668788633; b=wFm8vAEfwSC93OcWSskboyN2Bkn107w4oC4lMLI8lI2XSxX yeHnsyXy+j8mKPHZWk45hXassq9y4gDTkKkFkHxIGROiDsG5U35+2s3juuzmZ0FYYeSU5fBUxgTaB EZ7Bv8rZIeHxCW4HuH1SqEPW8J1/uOAJUKVP9asdit9Xc0MXt/KjPlbZzhrLKqhyl/aNh0T3XAg1L XYTcV/Dr6jHN1Nth6Lk068o7BvucvEsh2keuKJztvj9/W31hlFXKHj9x4zBYRPpbWUQTqbrlfFt+C LgvwNqdhqn0cJkfplMbEc5CD6M9sTe7Fw0GGPYvMoGrhBqEhHOlRynbQXhjJwAEg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oqzTp-008uqO-2L; Fri, 04 Nov 2022 17:23:42 +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: Amitkumar Karwar , 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:23:40 +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 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. Well, it's now a lot simpler, so one might argue that it's not needed. 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? johannes