X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Fkw_ul.h;fp=src%2F5gnrrlc%2Fkw_ul.h;h=689eae6832a9975e4d924f4b4c675d1aef6176a4;hb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/kw_ul.h b/src/5gnrrlc/kw_ul.h new file mode 100755 index 000000000..689eae683 --- /dev/null +++ b/src/5gnrrlc/kw_ul.h @@ -0,0 +1,60 @@ +/******************************************************************************* +################################################################################ +# Copyright (c) [2017-2019] [Radisys] # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ +*******************************************************************************/ + +/********************************************************************20** + + Name: LTE RLC file for uplink and non real time tasks + + Type: C include file + + Desc: This file contains helper macros for RLC uplink + and non real time tasks + + File: kw_ul.h + +*********************************************************************21*/ +/** + * @file kw_ul.h + * @brief RLC uplink helper macros +*/ + +#ifndef __KW_ULH__ +#define __KW_ULH__ + +/** + * @def KW_MEAS_IS_UL_IP_MEAS_ON_FOR_RB + * + * This macro is used to check if UL IP throughput measurement is ON + * or off for the passed rb + * + * Returns TRUE(non-zero) if measurement is ON else FALSE (zero) + * + * @param[in] _gCb RLC UL Cb + * @param[in] _rbCb RLC uplink control block + * +*/ +#define KW_MEAS_IS_UL_IP_MEAS_ON_FOR_RB(_gCb, _rbCb) \ + ((_rbCb->rlcId.rbType == CM_LTE_DRB) && \ + (_gCb->u.ulCb->kwL2Cb.measOn[_rbCb->qci] & LKW_L2MEAS_UL_IP) && \ + (_rbCb->rbL2Cb.measOn & LKW_L2MEAS_UL_IP)) +#endif /* __KW_ULH__ */ + +/********************************************************************30** + + End of file +**********************************************************************/