Commit 9d6d8924 authored by Jeremy Harris's avatar Jeremy Harris

RPC: track descending XID sequence

parent 4f649d8c
......@@ -539,6 +539,7 @@ typedef struct tcb {
seqnum rpc_seq_lo;
seqnum rpc_seq_hi;
u_int rpc_xid;
u_int rpc_xid_direction;
u_int rpc_size;
u_int rpc_type;
u_int rpc_prog;
......
......@@ -2160,16 +2160,21 @@ nextrpc:
}
/* Out-of-sequence XIDs */
if (thisdir->rpc_xid != 0 && xid != thisdir->rpc_xid+1)
if (xid == thisdir->rpc_xid) {
plotter_temp_color(from_tsgpl, retrans_color);
plotter_text(from_tsgpl, current_time,
thisdir->rpc_seq_hi, "al", "XR");
} else {
plotter_temp_color(from_tsgpl, out_order_color);
plotter_text(from_tsgpl, current_time,
thisdir->rpc_seq_hi, "al", "XO");
}
if (thisdir->rpc_xid != 0)
if (thisdir->rpc_xid_direction > -5 && thisdir->rpc_xid_direction < +5)
if (xid == thisdir->rpc_xid+1) thisdir->rpc_xid_direction++;
else if (xid == thisdir->rpc_xid-1) thisdir->rpc_xid_direction--;
else if (xid != thisdir->rpc_xid +
(thisdir->rpc_xid_direction > 0) ? +1 : -1)
if (xid == thisdir->rpc_xid) {
plotter_temp_color(from_tsgpl, retrans_color);
plotter_text(from_tsgpl, current_time,
thisdir->rpc_seq_hi, "al", "XR");
} else {
plotter_temp_color(from_tsgpl, out_order_color);
plotter_text(from_tsgpl, current_time,
thisdir->rpc_seq_hi, "al", "XO");
}
thisdir->rpc_xid = xid;
}
if ( thisdir->rpc_size != (u_int) -1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment