Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151448196
D47925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47925.diff
View Options
diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c
--- a/sys/netinet/tcp_hpts.c
+++ b/sys/netinet/tcp_hpts.c
@@ -1374,24 +1374,20 @@
* cause a call to output if it is needed so we do
* not need a second call to tcp_output(). So we do
* one or the other but not both.
+ *
+ * XXXGL: some KPI abuse here. tfb_do_queued_segments
+ * returns unlocked with positive error (always 1) and
+ * tcp_output returns unlocked with negative error.
*/
tp->t_flags2 |= TF2_HPTS_CALLS;
if ((tp->t_flags2 & TF2_SUPPORTS_MBUFQ) &&
- !STAILQ_EMPTY(&tp->t_inqueue)) {
- error = (*tp->t_fb->tfb_do_queued_segments)(tp, 0);
- /*
- * A non-zero return for input queue processing
- * is the lock is released and most likely the
- * inp is gone.
- */
- if (error)
- goto skip_pacing;
- } else
+ !STAILQ_EMPTY(&tp->t_inqueue))
+ error = -(*tp->t_fb->tfb_do_queued_segments)(tp,
+ 0);
+ else
error = tcp_output(tp);
- if (error < 0)
- goto skip_pacing;
- INP_WUNLOCK(inp);
- skip_pacing:
+ if (__predict_true(error >= 0))
+ INP_WUNLOCK(inp);
CURVNET_RESTORE();
}
if (seen_endpoint) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 11:39 AM (8 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31155401
Default Alt Text
D47925.diff (1 KB)
Attached To
Mode
D47925: tcp_hpts: refactor the per tcpcb call to either input/output method
Attached
Detach File
Event Timeline
Log In to Comment