This function packs P7 messages. At least RX_data.indication messages might be much bigger than the global buffer that is used here. Allocate the buffer on the stack, and make it bigger. Do not use the global buffer, it's simply not necessary; increasing the global tx buffer size might have negative effects elsewhere in the code. That change might make the function reentrant. The mutex seems to only guards the codec config. However, leave it to not introduce any regressions as of now.
This directory contains the NFAPI code.
It comes in two parts:
1 - open-nFAPI
This is a clone of the github repository
(https://github.com/cisco/open-nFAPI,
commit b3bc579b1697eab829d5d8a2de59c93a61b88fa4).
The patch open-nfapi.oai.patch has then been applied.
2 - oai_integration
This is code written by David Price from Cisco to integrate
open-nFAPI into OpenAirInterface.