diff options
author | Ravi Gunasekaran | 2024-03-22 15:34:47 +0530 |
---|---|---|
committer | Jakub Kicinski | 2024-03-25 19:51:56 -0700 |
commit | b11c81731c810efe592e510bb0110e0db6877419 (patch) | |
tree | 077b301c58737f55e9c617ef05ee9b6c7e64259a /include/net | |
parent | 3a38a829c8bc27d78552c28e582eb1d885d07d11 (diff) |
net: hsr: hsr_slave: Fix the promiscuous mode in offload mode
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>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions