Thread (15 messages) 15 messages, 3 authors, 2025-07-08

Re: [PATCH net 1/4] net: hns3: fix concurrent setting vlan filter issue

From: Jijie Shao <shaojijie@huawei.com>
Date: 2025-07-08 09:50:57
Also in: lkml

on 2025/7/4 23:52, Simon Horman wrote:
On Wed, Jul 02, 2025 at 09:08:58PM +0800, Jijie Shao wrote:
quoted
From: Jian Shen <shenjian15@huawei.com>

The vport->req_vlan_fltr_en may be changed concurrently by function
hclge_sync_vlan_fltr_state() called in periodic work task and
function hclge_enable_vport_vlan_filter() called by user configuration.
It may cause the user configuration inoperative. Fixes it by protect
the vport->req_vlan_fltr by vport_lock.

Fixes: fa6a262a2550 ("net: hns3: add support for VF modify VLAN filter state")
I think the commit sited above is for the VF driver, whereas this
patch addresses PF driver code. I think the following is the
correct tag:
Yeah, I will fix it in v2.

Thanks,
Jijie Shao
Fixes: 2ba306627f59 ("net: hns3: add support for modify VLAN filter state")
quoted
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Otherwise, this looks good to me.

Reviewed-by: Simon Horman <horms@kernel.org>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help