Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 20aa3e0 commit moved the setHostFirmwarecondition() function call prior to the code that connects to the mctp socket. - That led us to fail in sending the message with ENOTCONN Errno, as demonstrated by the below strace log. ------ 23:16:50.596833 connect(3, {sa_family=AF_UNIX, sun_path=@"mctp-mux"}, 11) = 0 Change-Id: Icd3a20e4bb0218517d44d14a57c0407c7b7702e2 --- 23:16:50.593800 sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\t\1", iov_len=2}, {iov_base="\200\0\3\0\0\0\0\1\0", iov_len=9}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = -1 ENOTCONN ----- - Without this change , we would get ENOTCONN(107 errono) for the getPLDMVersion command that pldm sends at the begining to discover the host state. TestedBy: 1. when host is off : Response not received for the request, instance ID expired. EID = 9 INSTANCE_ID = 0 TYPE = 0 COMMAND = 3 Failed to receive response for getPLDMVersion command, Host seems to be off 2. when host is Running : Sending Msg 80 00 03 00 00 00 00 01 00 Received Msg 09 01 00 00 03 00 00 00 00 00 05 f1 f1 f0 00 Getting the response. PLDM RC = 0 Signed-off-by: Manojkiran Eda <[email protected]> Change-Id: I5c7c3bc92c8654016db90855de49b7c30f161275
- Loading branch information