Re: [PATCH net] net: hsr: hsr_slave: Fix the promiscuous mode in offload mode

From: Jiri Pirko
Date: Fri Mar 22 2024 - 07:10:21 EST


Fri, Mar 22, 2024 at 11:04:47AM CET, r-gunasekaran@xxxxxx wrote:
>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@xxxxxx>

Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>