linux-stable/net/hsr
Ravi Gunasekaran c72c37eb30 net: hsr: hsr_slave: Fix the promiscuous mode in offload mode
[ Upstream commit b11c81731c ]

commit e748d0fd66 ("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: e748d0fd66 ("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: Sasha Levin <sashal@kernel.org>
2024-04-10 16:37:56 +02:00
..
Kconfig
Makefile
hsr_debugfs.c
hsr_device.c net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame() 2024-01-29 11:29:55 +00:00
hsr_device.h
hsr_forward.c net: hsr: Use correct offset for HSR TLV values in supervisory HSR frames 2024-02-29 10:42:46 +01:00
hsr_forward.h
hsr_framereg.c hsr: Fix uninit-value access in hsr_get_node() 2024-03-26 18:17:33 -04:00
hsr_framereg.h
hsr_main.c hsr: Handle failures in module init 2024-03-26 18:17:36 -04:00
hsr_main.h net: hsr: Add __packed to struct hsr_sup_tlv. 2023-09-18 08:26:19 +01:00
hsr_netlink.c
hsr_netlink.h
hsr_slave.c net: hsr: hsr_slave: Fix the promiscuous mode in offload mode 2024-04-10 16:37:56 +02:00
hsr_slave.h