qcacmn: Add qdf wrapper for hash_for_each_safe

Add qdf wrapper API for hash_for_each_safe which iterates over a
hashtable safe against removal of hash entry

Change-Id: I89d8b6520a4bee583d44a771b4359ed287d0c2fa
CRs-Fixed: 2528484
This commit is contained in:
Sourav Mohapatra
2019-09-16 17:32:56 +05:30
committed by nshrivas
parent 4ad877f928
commit 20bc724ca1
2 changed files with 16 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -47,4 +47,7 @@ do { \
break; \
} while (false)
#define __qdf_ht_for_each_safe(table, i, tmp, cursor, entry_field) \
hash_for_each_safe(table, i, tmp, cursor, entry_field)
#endif /* __I_QDF_HASHTABLE_H */