aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2024-08-05 09:17:30 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2024-08-05 09:17:30 +0000
commit093d9b46f4720392e53c171eaabfd7a6a8101170 (patch)
tree730083d1bbd9e8dd03443ad6b3216e336705089f /sys/netinet/tcp_usrreq.c
parent3d3bae9b95388169d396adc8007585699c5a23e0 (diff)
downloadsrc-093d9b46f4720392e53c171eaabfd7a6a8101170.tar.gz
src-093d9b46f4720392e53c171eaabfd7a6a8101170.zip
ddb: update printing of t_flags and tflags2
Update the ddb printing of t_flags and t_flags2 to the current state of definitions in tcp_var.h. Reviewed by: cc MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D46222
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c92
1 files changed, 84 insertions, 8 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 2ff7737a573b..8326c67cf085 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -2876,6 +2876,14 @@ db_print_tflags(u_int t_flags)
db_printf("%sTF_PREVVALID", comma ? ", " : "");
comma = 1;
}
+ if (t_flags & TF_WAKESOR) {
+ db_printf("%sTF_WAKESOR", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_GPUTINPROG) {
+ db_printf("%sTF_GPUTINPROG", comma ? ", " : "");
+ comma = 1;
+ }
if (t_flags & TF_MORETOCOME) {
db_printf("%sTF_MORETOCOME", comma ? ", " : "");
comma = 1;
@@ -2896,18 +2904,10 @@ db_print_tflags(u_int t_flags)
db_printf("%sTF_FASTRECOVERY", comma ? ", " : "");
comma = 1;
}
- if (t_flags & TF_CONGRECOVERY) {
- db_printf("%sTF_CONGRECOVERY", comma ? ", " : "");
- comma = 1;
- }
if (t_flags & TF_WASFRECOVERY) {
db_printf("%sTF_WASFRECOVERY", comma ? ", " : "");
comma = 1;
}
- if (t_flags & TF_WASCRECOVERY) {
- db_printf("%sTF_WASCRECOVERY", comma ? ", " : "");
- comma = 1;
- }
if (t_flags & TF_SIGNATURE) {
db_printf("%sTF_SIGNATURE", comma ? ", " : "");
comma = 1;
@@ -2920,6 +2920,30 @@ db_print_tflags(u_int t_flags)
db_printf("%sTF_TSO", comma ? ", " : "");
comma = 1;
}
+ if (t_flags & TF_TOE) {
+ db_printf("%sTF_TOE", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_CLOSED) {
+ db_printf("%sTF_CLOSED", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_SENTSYN) {
+ db_printf("%sTF_SENTSYN", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_LRD) {
+ db_printf("%sTF_LRD", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_CONGRECOVERY) {
+ db_printf("%sTF_CONGRECOVERY", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags & TF_WASCRECOVERY) {
+ db_printf("%sTF_WASCRECOVERY", comma ? ", " : "");
+ comma = 1;
+ }
if (t_flags & TF_FASTOPEN) {
db_printf("%sTF_FASTOPEN", comma ? ", " : "");
comma = 1;
@@ -2968,10 +2992,62 @@ db_print_tflags2(u_int t_flags2)
db_printf("%sTF2_ACE_PERMIT", comma ? ", " : "");
comma = 1;
}
+ if (t_flags2 & TF2_HPTS_CPU_SET) {
+ db_printf("%sTF2_HPTS_CPU_SET", comma ? ", " : "");
+ comma = 1;
+ }
if (t_flags2 & TF2_FBYTES_COMPLETE) {
db_printf("%sTF2_FBYTES_COMPLETE", comma ? ", " : "");
comma = 1;
}
+ if (t_flags2 & TF2_ECN_USE_ECT1) {
+ db_printf("%sTF2_ECN_USE_ECT1", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_TCP_ACCOUNTING) {
+ db_printf("%sTF2_TCP_ACCOUNTING", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_HPTS_CALLS) {
+ db_printf("%sTF2_HPTS_CALLS", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_MBUF_L_ACKS) {
+ db_printf("%sTF2_MBUF_L_ACKS", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_MBUF_ACKCMP) {
+ db_printf("%sTF2_MBUF_ACKCMP", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_SUPPORTS_MBUFQ) {
+ db_printf("%sTF2_SUPPORTS_MBUFQ", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_MBUF_QUEUE_READY) {
+ db_printf("%sTF2_MBUF_QUEUE_READY", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_DONT_SACK_QUEUE) {
+ db_printf("%sTF2_DONT_SACK_QUEUE", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_CANNOT_DO_ECN) {
+ db_printf("%sTF2_CANNOT_DO_ECN", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_PROC_SACK_PROHIBIT) {
+ db_printf("%sTF2_PROC_SACK_PROHIBIT", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_IPSEC_TSO) {
+ db_printf("%sTF2_IPSEC_TSO", comma ? ", " : "");
+ comma = 1;
+ }
+ if (t_flags2 & TF2_NO_ISS_CHECK) {
+ db_printf("%sTF2_NO_ISS_CHECK", comma ? ", " : "");
+ comma = 1;
+ }
}
static void