Optimised PLDM daemon to use vectored IO
The pldm daemon currently receives a PLDM response message as a
std::vector<uint8_t> from a command handler which then inserts MCTP
EID and Type (as required by the mctp demux daemon) at the beginning
of the vector which requires O(n) element moves. The code has been
refactored to now use scatter/gather which replaces the vector
inserts resulting in O(1). This is accomplished by using sendmsg()
instead of sendto() syscall.
Change-Id: I47a051ed267eadc3bc9566cca24431b45322205f
Signed-off-by:
Zahed Hossain <zahzahed@in.ibm.com>
Loading
Please register or sign in to comment