From: Jinjie Ruan <ruanjinjie@huawei.com>
To: Paolo Abeni <pabeni@redhat.com>, <cai.huoqing@linux.dev>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@kernel.org>, <kuba@kernel.org>,
<netdev@vger.kernel.org>
Subject: Re: [PATCH net v2 2/2] net: hinic: Zero-initialise the VLAN filter request
Date: Wed, 2 Dec 2026 14:35:35 +0800 [thread overview]
Message-ID: <b959cc4b-124e-4e9b-b988-8581a18eef48@huawei.com> (raw)
In-Reply-To: <a9514378-c467-4045-8357-2579b4b654ea@redhat.com>
Hi Paolo,
在 2026/12/1 22:17, Paolo Abeni 写道:
> On 11/24/26 04:09, Jinjie Ruan wrote:
>> struct hinic_vlan_filter is filled in only in part: func_idx and enable
>> are set, while status, version and both reserved arrays keep whatever the
>> stack held. The whole structure is passed to the device as buf_in, so
>> those bytes are sent to firmware.
>>
>> Initialise it to zero. Requesting a VLAN filter change is rare, so the
>> cost is irrelevant, and it keeps reserved fields from carrying garbage
>> across the management channel.
>>
>> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
>
> This one is really net-next material. Applying the same series half
> to net and half to net-next foul our tools quite a bit.
>
> Please resubmit this one for net-next.
Make sense for me
Thanks,
Jinjie
>
> /P
next prev parent reply other threads:[~2026-12-02 6:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 3:09 [PATCH net v2 0/2] net: hinic: Don't fail probe when firmware lacks rx-vlan-filter Jinjie Ruan
2026-11-24 3:09 ` [PATCH net v2 1/2] " Jinjie Ruan
2026-11-24 3:09 ` [PATCH net v2 2/2] net: hinic: Zero-initialise the VLAN filter request Jinjie Ruan
2026-12-01 14:17 ` Paolo Abeni
2026-12-02 6:35 ` Jinjie Ruan [this message]
2026-12-01 14:20 ` [PATCH net v2 0/2] net: hinic: Don't fail probe when firmware lacks rx-vlan-filter patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b959cc4b-124e-4e9b-b988-8581a18eef48@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=andrew+netdev@lunn.ch \
--cc=cai.huoqing@linux.dev \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox