Skip to content
Commit b11c8173 authored by Ravi Gunasekaran's avatar Ravi Gunasekaran Committed by Jakub Kicinski
Browse files

net: hsr: hsr_slave: Fix the promiscuous mode in offload mode



commit e748d0fd ("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: e748d0fd ("net: hsr: Disable promiscuous mode in offload mode")
Signed-off-by: default avatarRavi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240322100447.27615-1-r-gunasekaran@ti.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3a38a829
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment