From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D9FE3218D2; Thu, 11 Sep 2025 12:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757593816; cv=none; b=kaH2sCL7huCoTtb5DYdry5bu8YMrWeAi7V5Wbhyze/uXRRSFbjodHK85yuQUoSP+HXnrh1hBjJdcZvpxrZ1vc9Sklz+PlYclMoCN3qdMzRJ+CR+rTNeELn0r4qRilb8l+3xhNgCvCLScmbOkkhpX2MZ8wfuR10RY694R8sZNiL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757593816; c=relaxed/simple; bh=gZ1dZ/ElhQhLoCMCCotria6+48Ot75ZaRc+i3BwpA5E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LYfaIISIJ3EdK+UpuLmQJ6urY6rqekr1n65MQ9aVoQrrlPwYAoRL9UklFjnb70TkBZRWzki8xkg0Fd23uTWmZFGgLUBOzga6Jj+g5Fo1oPawLvF9jTb4lr8bC8BxGIe1iRSyD6bJcFjOJhAhy9PdZ3odmHsKYl2h9JUslY33hV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JdOhMc8s; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JdOhMc8s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 969A5C4CEF0; Thu, 11 Sep 2025 12:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757593815; bh=gZ1dZ/ElhQhLoCMCCotria6+48Ot75ZaRc+i3BwpA5E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JdOhMc8stCim9HV3ZLDrTlgni74zo23htGVDKm4/Fy1BopuclwCWvaPgeTeP6E5iW 97ReJt5nw8C662GsFS8BQ6EmQ7NYBfghxkejoozfA+fHz5TTtOv9kd8GXHu56PNwBF hf7mwbobaqOrAclEY6DvyJSL3Hv5UKhDQATbFtfS3hOPg2IYBGPLy+0EqYxnlq4aQW 84SCDwAFPYu7LnWnxTj+iyJ1jOQV3omXtQVK6OeN+/Iv90sF7dYUAxreTr0KLnG4aZ OJ5benKi4btjtOvvcjo/dpQV7ykocacn3gEM8hu1C3uScA8hPQJDMg4eKAmw+R4T6H t1cce+LKipgUg== Date: Thu, 11 Sep 2025 13:30:08 +0100 From: Simon Horman To: Fan Gong Cc: Zhu Yikai , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , linux-doc@vger.kernel.org, Jonathan Corbet , Bjorn Helgaas , luosifu , Xin Guo , Shen Chenyang , Zhou Shuai , Wu Like , Shi Jing , Luo Yang , Meny Yossefi , Gur Stavi , Lee Trager , Michael Ellerman , Vadim Fedorenko , Suman Ghosh , Przemek Kitszel , Joe Damato , Christophe JAILLET Subject: Re: [PATCH net-next v05 09/14] hinic3: Queue pair context initialization Message-ID: <20250911123008.GF30363@horms.kernel.org> References: <8323dc5ce83f9d442c00824dd7dd24e55ddfb666.1757401320.git.zhuyikai1@h-partners.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8323dc5ce83f9d442c00824dd7dd24e55ddfb666.1757401320.git.zhuyikai1@h-partners.com> On Tue, Sep 09, 2025 at 03:33:34PM +0800, Fan Gong wrote: > Initialize queue pair context of hardware interaction. > > Co-developed-by: Zhu Yikai > Signed-off-by: Zhu Yikai > Signed-off-by: Fan Gong The nit below notwithstanding, this looks good to me. ... > diff --git a/drivers/net/ethernet/huawei/hinic3/hinic3_nic_io.c b/drivers/net/ethernet/huawei/hinic3/hinic3_nic_io.c ... > +static int clean_qp_offload_ctxt(struct hinic3_nic_dev *nic_dev) > +{ > + /* clean LRO/TSO context space */ > + return (clean_queue_offload_ctxt(nic_dev, HINIC3_QP_CTXT_TYPE_SQ) || > + clean_queue_offload_ctxt(nic_dev, HINIC3_QP_CTXT_TYPE_RQ)); nit: unnecessary outer parentheses > +} ...