Page MenuHomeFreeBSD

Avoid calling protocol drain routines more than once
ClosedPublic

Authored by jtl on Apr 14 2020, 3:11 PM.
Tags
None
Referenced Files
F168211689: D24418.id.diff
Wed, Aug 26, 10:23 PM
F168202730: D24418.id70655.diff
Wed, Aug 26, 9:05 PM
F168198357: D24418.diff
Wed, Aug 26, 8:29 PM
Unknown Object (File)
Fri, Aug 14, 6:55 PM
Unknown Object (File)
Wed, Aug 12, 2:19 AM
Unknown Object (File)
Mon, Aug 10, 4:36 PM
Unknown Object (File)
Mon, Aug 10, 3:18 PM
Unknown Object (File)
Mon, Aug 10, 8:00 AM
Subscribers

Details

Summary

mb_reclaim() calls the protocol drain routines for each protocol in each domain. Some protocols exist in more than one domain and share drain routines. In the case of SCTP, it also uses the same drain routine for its SOCK_SEQPACKET and SOCK_STREAM entries in the same domain.

On systems with INET, INET6, and SCTP all defined, mb_reclaim() calls sctp_drain() four times. On systems with INET and INET6 defined, mb_reclaim() calls tcp_drain() twice.

Eliminate this duplication by ensuring that each pr_drain routine is only specified for one protocol entry in one domain.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable