Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4590624rwo; Tue, 25 Jul 2023 08:12:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDiZfZkJYDg7in57kbO8zRwEFtWZ7DRyLCdWLyxnQgRrtrx4kBlvlagW3oqYx8E15ADzGf X-Received: by 2002:a17:906:196:b0:98e:3cef:68ff with SMTP id 22-20020a170906019600b0098e3cef68ffmr12292928ejb.43.1690297939485; Tue, 25 Jul 2023 08:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690297939; cv=none; d=google.com; s=arc-20160816; b=oIk2ss9Ni/f13lOqKP/3ssT7l90ttxSJoOIsyjyatRyvhc7oOY28AuHdQHz7BxQzyh XZQKnacm8xqyOSp8CPYpP3yO4UkNIDcud1SZR0biKeLWa06Y60u8EspCUFThjrsaG1UB lLWwJiIVlYgIoox6EA6u5bEvQl2PCGGUDiHPN71XHmybVztbXyw97b0p8ufPcQzwWkD6 p0fOq/eHrLYmv55lZPOZ2Bym2bFIxOf+XpwFAIOUb+jAa2BH7KbkPTYqKsem+h7otw9g LRbHVGgyFmtHZ5jXOErrAIKSN8YkJ9+c6cPWG1fXr5e2Gody+XC2OkyJPRb20HMaIshF rAFg== 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:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=trqWqzsUFlGNr2jj+oFWuhhN3f8c9bQZFIGHKdd2cNk=; fh=mFKpq+Uh/6cWbcUU38qzaQXeIbUrsAmk6yEv+oUr2pA=; b=KMC2fRY+skvSGOZ+tTxlObMcXxJx1uGaO991H1HAMi5F6P97usWaOa3OmSen2JmSgK vnDTPcJmi7In2opfWIB/OFXXCRRAwz8rWXkzjj2YrgC3hCEsit4iwa/1Nk1//UkzS7dQ 3uYhJDUJNvxQdsJFIM673Nz3z8tvQVYr3MTWLqgNC2BE4NKn4VCIgNpsDhe3UIYqo78R LXsKR3JreY6TIU4Fj6pZn214pPwUhNOf9E10GjOpUlcBxRk73Dv2v52s1pdpXd2pceNm 43ox9jDq5OFZN8rsaIOsAeqeQ+dewIhhC0IvxtN58UQN6ERcp7VG5eBnMXH7VN6nyqTl XKjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVaipoCJ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a1709066d4c00b00992bf74c316si8027430ejt.974.2023.07.25.08.12.04; Tue, 25 Jul 2023 08:12: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=@kernel.org header.s=k20201202 header.b=aVaipoCJ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232253AbjGYPIu (ORCPT + 58 others); Tue, 25 Jul 2023 11:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjGYPIp (ORCPT ); Tue, 25 Jul 2023 11:08:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3261FCF for ; Tue, 25 Jul 2023 08:08:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF2BF61782 for ; Tue, 25 Jul 2023 15:08:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57AAAC433C8; Tue, 25 Jul 2023 15:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690297718; bh=wTY69qIWieqj5OJS6H4W+MfTyMM37cqETgvYsu3imf8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=aVaipoCJmzp+d/2lZyBcy7aylV8gQOhNTDmbpLgQUJSr5DoQcNzNS82yHA+Bc8PHL sbUjTRjcxogLCRYw3Cwll8ipbQfE464Ttnt42Zx0Zv9+13yPQTPxqD+vesaGEZ2Fcg xTPVpZpa9xL0wPSXFfuHObFvWahVBqMGaDKEuPPG8giiQlWGZgRu78n5PzfnV3/UWL yhqWjOV8suAuAVStZtqCGT4AG/ptjhkInDOYoKkfW3DBkdWmU31JkK4Uf0H+AN8RvS iF6lAPcTI6yRfNkFMAevDzayjgOfuBMVuVghdVge+WPfyLQ92Qk1pN4RTcpnaSlLsv z4gGp3lxv6ouA== From: Kalle Valo To: Cc: , , Subject: Re: [PATCH] wifi: wilc1000: simplify TX callback functions References: <20230713082616.112160-1-dmantipov@yandex.ru> Date: Tue, 25 Jul 2023 18:08:35 +0300 In-Reply-To: (Ajay Kathat's message of "Thu, 13 Jul 2023 21:33:46 +0000") Message-ID: <87r0ow111o.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 writes: > Hi Dmitry, > > On 7/13/23 01:26, Dmitry Antipov wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you >> know the content is safe >> >> Drop unused second argument of TX callback functions and use >> 'struct txq_entry_t *' as the only argument, thus removing >> 'struct wilc_p2p_mgmt_data', 'struct tx_complete_mon_data' >> and 'struct tx_complete_data' (actually intended just to >> pass callbacks parameters) as well. This also shrinks >> 'struct txq_entry_t' by 'priv' field and eliminates a few >> 'kmalloc()/kfree()' calls (at the cost of having dummy >> stack-allocated 'struct txq_entry_t' instances). > > I'm just curious to know if you have tested this patch with the real > hardware. There was no response from Dmitry but I suspect this was not tested on a real device. Submitting patches like this without any real testing is a bad idea as the risk of regressions is high. Please _always_ test patches on a real device. Only exception are trivial patches which can be easily reviewed. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches