Separate LTE and NR (n)FAPI headers
Update NR P5 and P7 nFAPI headers to have 32-bit message_length In the NR functions, this causes the header parameters following message_length to have their position shifted by 2 bytes, due to the increase in message_length size. Change needed to accommodate SCF222.10.02 Table 3-3 Separates nfapi_p4_p5_message_header_t and nfapi_nr_p4_p5_message_header_t Change the callbacks signature to accept/return void* intead of expecting a particular header type, being the NR/LTE distinction done inside the callback functions. Create NR related functions for nFAPI transmit timestamp and checksum calculation. Move nfapi_p7_codec_config_t and nfapi_p4_p5_codec_config_t to separate header to be shared between LTE and NR VNF/PNF Move nfapi_nr_timing_info_t into NR header. Move NR specific function declarations to NR header.
This commit is contained in:
committed by
Robert Schmidt
parent
434a6b5e84
commit
4e5b841a16
@@ -305,19 +305,19 @@ typedef struct nfapi_pnf_config
|
||||
* \param msg A pointer to the decode P4/P5 message
|
||||
* \return not current used
|
||||
*/
|
||||
int (*vendor_ext)(nfapi_pnf_config_t* config, nfapi_p4_p5_message_header_t* msg);
|
||||
int (*vendor_ext)(nfapi_pnf_config_t* config, void* msg);
|
||||
|
||||
/*! A callback to allocate vendor extension message
|
||||
* \param message_id The message id from the decode P4/P5 message header
|
||||
* \param msg_size A pointer a the size of the allocated message structure. The callee should set this
|
||||
* \return A pointer to a allocated P4/P5 message structure
|
||||
*/
|
||||
nfapi_p4_p5_message_header_t* (*allocate_p4_p5_vendor_ext)(uint16_t message_id, uint16_t* msg_size);
|
||||
void* (*allocate_p4_p5_vendor_ext)(uint16_t message_id, uint16_t* msg_size);
|
||||
|
||||
/*! A callback to deallocate vendor extension message
|
||||
* \param header A pointer to an P4/P5 message structure
|
||||
*/
|
||||
void (*deallocate_p4_p5_vendor_ext)(nfapi_p4_p5_message_header_t* header);
|
||||
void (*deallocate_p4_p5_vendor_ext)(void* header);
|
||||
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@ typedef struct nfapi_pnf_p7_config
|
||||
* \param msg A pointer to a decode vendor extention message
|
||||
* \return not currently used
|
||||
*/
|
||||
int (*vendor_ext)(nfapi_pnf_p7_config_t* config, nfapi_p7_message_header_t* msg);
|
||||
int (*vendor_ext)(nfapi_pnf_p7_config_t* config, void* msg);
|
||||
|
||||
/*! A callback to allocate vendor extension message
|
||||
* \param message_id The vendor extention message id from the decode message header
|
||||
@@ -720,12 +720,12 @@ typedef struct nfapi_pnf_p7_config
|
||||
*
|
||||
*
|
||||
*/
|
||||
nfapi_p7_message_header_t* (*allocate_p7_vendor_ext)(uint16_t message_id, uint16_t* msg_size);
|
||||
void* (*allocate_p7_vendor_ext)(uint16_t message_id, uint16_t* msg_size);
|
||||
|
||||
/*! A callback to deallocate vendor extension message
|
||||
* \param header A pointer to a p7 vendor extention message
|
||||
*/
|
||||
void (*deallocate_p7_vendor_ext)(nfapi_p7_message_header_t* header);
|
||||
void (*deallocate_p7_vendor_ext)(void* header);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user