Skip to content

update orm_json to show sockets in SYN_RECV state#308

Open
okt-kosovnn wants to merge 2 commits intoXilinx-CNS:masterfrom
okt-kosovnn:user/okt-kosovnn/orm_json_log_SYN_RECV
Open

update orm_json to show sockets in SYN_RECV state#308
okt-kosovnn wants to merge 2 commits intoXilinx-CNS:masterfrom
okt-kosovnn:user/okt-kosovnn/orm_json_log_SYN_RECV

Conversation

@okt-kosovnn
Copy link
Copy Markdown

There is no CI_TCP_SYN_RECV state in Onload. As said in Onload:

For each listening socket we have a list of SYNRECV buffs, one for each
SYN we've received for which there hasn't yet been an ACK. i.e. on
receipt of SYN we make a synrecv buf, then send the SYNACK. The on
receipt of the ACK of the SYNACK, we 'promote' the synrecv buffer to a
fully fledged end-point. We call this list the listenq.

However information from this list was not logged in output of orm_json.
Therefore there was no information in orm_json output about sockets in
TCP_SYN_RECV state.

The situation is close to how onload_stackdump netstat shows sockets in SYN_RECV state.

Here is the example of new output (only tcp_listenq_bucket is new JSON object)
orm_json_all.json

This function is needed to log information of TCP_SYN_RECV sockets
in orm_json.

Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
There is no CI_TCP_SYN_RECV state in Onload. As said in Onload:

For each listening socket we have a list of SYNRECV buffs, one for each
SYN we've received for which there hasn't yet been an ACK.  i.e. on
receipt of SYN we make a synrecv buf, then send the SYNACK.  The on
receipt of the ACK of the SYNACK, we 'promote' the synrecv buffer to a
fully fledged end-point.  We call this list the listenq.

However information from this list was not logged in output of orm_json.
Therefore there was no information in orm_json output about sockets in
TCP_SYN_RECV state.

Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
@okt-kosovnn okt-kosovnn requested a review from a team as a code owner November 7, 2025 15:48
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 4, 2025
TCP_SYN_RECV is added to orm_json output in
Xilinx-CNS/onload#308

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 5, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 5, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 5, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
Reviewed-by: Yurij Plotnikov <yurij.plotnikov@arknetworks.am>
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 8, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
Reviewed-by: Yurij Plotnikov <yurij.plotnikov@arknetworks.am>
okt-kosovnn added a commit to okt-kosovnn/cns-sapi-ts that referenced this pull request Dec 9, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
Reviewed-by: Yurij Plotnikov <yurij.plotnikov@arknetworks.am>
okt-yurijp pushed a commit to Xilinx-CNS/cns-sapi-ts that referenced this pull request Dec 9, 2025
TCP_SYN_RECV should be added to the orm_json output in
Xilinx-CNS/onload#308.
Once this change is merged, the tcp_get_state_from_tool() call
with "te_onload_stdump netstat" in tcp_get_state() in
talib_sockapi_ts/rpc.c can be removed.

AMD-Jira-ID: ST-2731
Signed-off-by: Nikolai Kosovskii <nikolai.kosovskii@arknetworks.am>
Reviewed-by: Yurij Plotnikov <yurij.plotnikov@arknetworks.am>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant