aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2021-06-11 13:48:28 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-06-11 13:51:05 +0000
commitca81bcbbf1182b725d2f7c1eada932731a9d6432 (patch)
tree666fcb5aa865b917141bb5c87e355b035bca86bf
parent043f204985261d6daae69538c4609b3e143ee444 (diff)
downloadsrc-ca81bcbbf1182b725d2f7c1eada932731a9d6432.tar.gz
src-ca81bcbbf1182b725d2f7c1eada932731a9d6432.zip
Add missing chunks after cherry-picking 9ca874cf740ee68c5742df8b5f9e20910085c011
from main to stable/13: Add TCP LRO support for VLAN and VxLAN. Make sure all counters are allocated. This is a direct commit. Reported by: Herbert J. Skuhra <herbert@gojira.at> Sponsored by: Mellanox Technologies // NVIDIA Networking
-rw-r--r--sys/netinet/tcp_subr.c4
-rw-r--r--sys/netinet/tcp_var.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index bb2c35c76fde..ec162d889902 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1509,6 +1509,10 @@ tcp_init(void)
tcp_inp_lro_wokeup_queue = counter_u64_alloc(M_WAITOK);
tcp_inp_lro_compressed = counter_u64_alloc(M_WAITOK);
tcp_inp_lro_locks_taken = counter_u64_alloc(M_WAITOK);
+ tcp_extra_mbuf = counter_u64_alloc(M_WAITOK);
+ tcp_would_have_but = counter_u64_alloc(M_WAITOK);
+ tcp_comp_total = counter_u64_alloc(M_WAITOK);
+ tcp_uncomp_total = counter_u64_alloc(M_WAITOK);
#ifdef TCPPCAP
tcp_pcap_init();
#endif
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 7b51afbb42b6..1858d0146ce5 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1010,6 +1010,10 @@ extern counter_u64_t tcp_inp_lro_direct_queue;
extern counter_u64_t tcp_inp_lro_wokeup_queue;
extern counter_u64_t tcp_inp_lro_compressed;
extern counter_u64_t tcp_inp_lro_locks_taken;
+extern counter_u64_t tcp_extra_mbuf;
+extern counter_u64_t tcp_would_have_but;
+extern counter_u64_t tcp_comp_total;
+extern counter_u64_t tcp_uncomp_total;
#ifdef NETFLIX_EXP_DETECTION
/* Various SACK attack thresholds */