Skip to content
Commit ad30c54e authored by Zahed Hossain's avatar Zahed Hossain Committed by Deepak Kodihalli
Browse files

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: default avatarZahed Hossain <zahzahed@in.ibm.com>
parent 223a73d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment