Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106963306
D43727.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D43727.diff
View Options
diff --git a/sys/netinet/tcp_lro_hpts.c b/sys/netinet/tcp_lro_hpts.c
--- a/sys/netinet/tcp_lro_hpts.c
+++ b/sys/netinet/tcp_lro_hpts.c
@@ -50,6 +50,7 @@
#include <net/pfil.h>
#include <netinet/in.h>
+#include <netinet/in_kdtrace.h>
#include <netinet/ip6.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
@@ -281,22 +282,64 @@
case LRO_TYPE_IPV4_TCP:
tcp_hdr_offset -= sizeof(*le->outer.ip4);
m->m_pkthdr.lro_etype = ETHERTYPE_IP;
+ IP_PROBE(receive, NULL, NULL, le->outer.ip4, lc->ifp,
+ le->outer.ip4, NULL);
break;
case LRO_TYPE_IPV6_TCP:
tcp_hdr_offset -= sizeof(*le->outer.ip6);
m->m_pkthdr.lro_etype = ETHERTYPE_IPV6;
+ IP_PROBE(receive, NULL, NULL, le->outer.ip6, lc->ifp,
+ NULL, le->outer.ip6);
break;
default:
goto compressed;
}
break;
case LRO_TYPE_IPV4_TCP:
+ switch (le->outer.data.lro_type) {
+ case LRO_TYPE_IPV4_UDP:
+ IP_PROBE(receive, NULL, NULL, le->outer.ip4, lc->ifp,
+ le->outer.ip4, NULL);
+ UDP_PROBE(receive, NULL, NULL, le->outer.ip4, NULL,
+ le->outer.udp);
+ break;
+ case LRO_TYPE_IPV6_UDP:
+ IP_PROBE(receive, NULL, NULL, le->outer.ip6, lc->ifp,
+ NULL, le->outer.ip6);
+ UDP_PROBE(receive, NULL, NULL, le->outer.ip6, NULL,
+ le->outer.udp);
+ break;
+ default:
+ __assert_unreachable();
+ break;
+ }
tcp_hdr_offset -= sizeof(*le->outer.ip4);
m->m_pkthdr.lro_etype = ETHERTYPE_IP;
+ IP_PROBE(receive, NULL, NULL, le->inner.ip4, NULL,
+ le->inner.ip4, NULL);
break;
case LRO_TYPE_IPV6_TCP:
+ switch (le->outer.data.lro_type) {
+ case LRO_TYPE_IPV4_UDP:
+ IP_PROBE(receive, NULL, NULL, le->outer.ip4, lc->ifp,
+ le->outer.ip4, NULL);
+ UDP_PROBE(receive, NULL, NULL, le->outer.ip4, NULL,
+ le->outer.udp);
+ break;
+ case LRO_TYPE_IPV6_UDP:
+ IP_PROBE(receive, NULL, NULL, le->outer.ip6, lc->ifp,
+ NULL, le->outer.ip6);
+ UDP_PROBE(receive, NULL, NULL, le->outer.ip6, NULL,
+ le->outer.udp);
+ break;
+ default:
+ __assert_unreachable();
+ break;
+ }
tcp_hdr_offset -= sizeof(*le->outer.ip6);
m->m_pkthdr.lro_etype = ETHERTYPE_IPV6;
+ IP_PROBE(receive, NULL, NULL, le->inner.ip6, NULL, NULL,
+ le->inner.ip6);
break;
default:
goto compressed;
@@ -313,6 +356,7 @@
th->th_sum = 0; /* TCP checksum is valid. */
tcp_fields_to_host(th);
+ TCP_PROBE5(receive, NULL, tp, m, tp, th);
/* Check if ACK can be compressed */
can_compress = tcp_lro_ack_valid(m, th, &ts_ptr, &other_opts);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 4:10 AM (1 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15729315
Default Alt Text
D43727.diff (2 KB)
Attached To
Mode
D43727: TCP LRO: add dtrace probe points
Attached
Detach File
Event Timeline
Log In to Comment