]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hsr: hsr_slave: Fix the promiscuous mode in offload mode
authorRavi Gunasekaran <r-gunasekaran@ti.com>
Fri, 22 Mar 2024 10:04:47 +0000 (15:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:30:00 +0000 (16:30 +0200)
commit2eaf0c0fb79bc644ab74f62dfdbdf7a16652d18e
tree621249a22512323d14e1cdb408577f0f2f9487ef
parentfa725a427d07f6abeb01f27e735041f03288cfe5
net: hsr: hsr_slave: Fix the promiscuous mode in offload mode

commit b11c81731c810efe592e510bb0110e0db6877419 upstream.

commit e748d0fd66ab ("net: hsr: Disable promiscuous mode in
offload mode") disables promiscuous mode of slave devices
while creating an HSR interface. But while deleting the
HSR interface, it does not take care of it. It decreases the
promiscuous mode count, which eventually enables promiscuous
mode on the slave devices when creating HSR interface again.

Fix this by not decrementing the promiscuous mode count while
deleting the HSR interface when offload is enabled.

Fixes: e748d0fd66ab ("net: hsr: Disable promiscuous mode in offload mode")
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240322100447.27615-1-r-gunasekaran@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/hsr/hsr_slave.c