-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TLV to the ICMP payload #11
Conversation
in general, can we get better description for the pr? |
5479758
to
da05b00
Compare
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Updated, thanks! |
f2fd3b4
to
c062704
Compare
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
1a2520e
to
7edbd5e
Compare
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
icmpPayload->command = htonl(static_cast<uint32_t> (Command::COMMAND_NONE)); | ||
computeChecksum(icmpHeader, sizeof(icmphdr) + sizeof(*icmpPayload)); | ||
resetTxBufferTlv(); | ||
appendTlvSentinel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we only append TlvCommand when it's COMMAND_SWITCH_ACTIVE instead of having it in every heartbeat (COMMAND_NONE)? Shouldn't we have it in every heartbeat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, currently the logic is to put command tlv only if there is need to send COMMAND_SWITCH_ACTIVE
. Since now we remove the fixed command field from IcmpPayload
and wrap it as a TLV, no TlvCommand
is the same a TlvCommand
with COMMAND_NONE
.
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
This reverts commit 12b9951.
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Description of PR
Summary:
Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
Add TLV support for the ICMP payload.
How did you do it?
This PR introduces a few changes to
IcmpPayload
IcmpPayload
format as:TlvCommand
andTlvSentinel
TlvCommand
is used for signaling peer ToR to switch statusTlvSentinel
is used for marking the end of the ICMP packetHow did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation