Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Renaming GET_UE_IDX to GET_UE_ID in 5gnrmac [Issue-ID: ODUHIGH-401]"
[o-du/l2.git]
/
src
/
5gnrmac
/
lwr_mac_phy.h
diff --git
a/src/5gnrmac/lwr_mac_phy.h
b/src/5gnrmac/lwr_mac_phy.h
index
ee1d65f
..
456d8c5
100644
(file)
--- a/
src/5gnrmac/lwr_mac_phy.h
+++ b/
src/5gnrmac/lwr_mac_phy.h
@@
-33,7
+33,6
@@
typedef enum
}ErrorCode;
#ifdef INTEL_WLS_MEM
}ErrorCode;
#ifdef INTEL_WLS_MEM
-#define WLS_MEM_FREE_PRD 10 /* Free memory after 10 slot ind */
#define LWR_MAC_WLS_BUF_SIZE 32000 /* Size of WLS memory block */
#define EVT_START_WLS_RCVR 1
#define LWR_MAC_WLS_BUF_SIZE 32000 /* Size of WLS memory block */
#define EVT_START_WLS_RCVR 1
@@
-51,7
+50,10
@@
typedef enum
/* free a static buffer from WLS memory*/
#define WLS_MEM_FREE(_datPtr, _size) \
if(_datPtr) \
/* free a static buffer from WLS memory*/
#define WLS_MEM_FREE(_datPtr, _size) \
if(_datPtr) \
- SPutSBufWls(0, 0, (Data *)_datPtr, _size);
+ { \
+ SPutSBufWls(0, 0, (Data *)_datPtr, _size); \
+ _datPtr = NULLP; \
+ }
typedef struct wlsBlockToFree
{
typedef struct wlsBlockToFree
{
@@
-60,7
+62,6
@@
typedef struct wlsBlockToFree
}WlsBlockToFree;
CmLListCp wlsBlockToFreeList[WLS_MEM_FREE_PRD];
}WlsBlockToFree;
CmLListCp wlsBlockToFreeList[WLS_MEM_FREE_PRD];
-uint8_t slotIndIdx;
void freeWlsBlockList(uint8_t idx);
void LwrMacEnqueueWlsBlock();
void freeWlsBlockList(uint8_t idx);
void LwrMacEnqueueWlsBlock();