[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260128065038.1381-1-gongfan1@huawei.com>
Date: Wed, 28 Jan 2026 14:50:37 +0800
From: Fan Gong <gongfan1@...wei.com>
To: <horms@...nel.org>
CC: <andrew+netdev@...n.ch>, <davem@...emloft.net>, <edumazet@...gle.com>,
<gongfan1@...wei.com>, <guoxin09@...wei.com>, <kuba@...nel.org>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<luosifu@...wei.com>, <luoyang82@...artners.com>, <netdev@...r.kernel.org>,
<pabeni@...hat.com>, <shijing34@...wei.com>, <wulike1@...wei.com>,
<zhoushuai28@...wei.com>, <zhuyikai1@...artners.com>
Subject: Re: [PATCH net-next v02 2/4] hinic3: Remove redundant defensive code
On 1/28/2026 12:25 AM, Simon Horman wrote:
> On Mon, Jan 26, 2026 at 09:03:32AM +0800, Fan Gong wrote:
>> According to comment of patch 03, check codes that were merged and
>> remove redundant defensive codes.
>>
>> Co-developed-by: Zhu Yikai <zhuyikai1@...artners.com>
>> Signed-off-by: Zhu Yikai <zhuyikai1@...artners.com>
>> Signed-off-by: Fan Gong <gongfan1@...wei.com>
>
> Hi,
>
> I agree that defensive coding is unnecessary in Networking drivers.
> But I'm unsure what "codes that were merged" and "patch 03" refers to.
> Could you clarify this?
>
> Likewise in patch 3/4 of this series.
>
Our negligence did not explain this clearly.
Patch 03 points to the mergeed patch "net: hinic3: Add a driver for Huawei 3rd
gen NIC - sw and hw initialization".
"codes that were merged" means that we review the code already merged into
Linux based on Jakub's review comments.
https://lore.kernel.org/netdev/20250902180843.5ba05bf2@kernel.org/
At that time, "patch 03" could only modify the parts where the code was to be
merged. Therefore, after we checked the previous codes ,the codes already
merged are modified in this current patchset.
Thanks,
Fan gong
Powered by blists - more mailing lists