Page MenuHomeFreeBSD

pfsync: Unconditionally push packets when requesting state updates
ClosedPublic

Authored by kp on Mar 15 2021, 6:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 8:27 AM
Unknown Object (File)
Jan 29 2024, 7:58 PM
Unknown Object (File)
Dec 25 2023, 8:48 AM
Unknown Object (File)
Dec 20 2023, 5:07 AM
Unknown Object (File)
Dec 4 2023, 9:02 PM
Unknown Object (File)
Nov 21 2023, 1:24 AM
Unknown Object (File)
Oct 6 2023, 3:55 PM
Unknown Object (File)
Sep 26 2023, 6:48 AM

Details

Summary

When we request a bulk sync we need to ensure we actually send out that
request, not just buffer it until we have enough data to send a full
packet.

PR: 254236
Submitted by: topical AT gmx.net
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Mar 15 2021, 6:26 PM

I would suggest to change pfsync_request_update() to unconditionally make pfsync_push() on the bucket, regardless of request type (bulk or a single state). This will allow for some batching and shorten stuff executed from the callout context. After this change the call to pfsync_sendout() from the pfsync_request_update() can be changed to 0 in first arguemnt.

kp retitled this revision from pfsync: Flush all buckets when requesting a bulk sync to pfsync: Unconditionally push packets when requesting state updates.

I would suggest to change pfsync_request_update() to unconditionally make pfsync_push() on the bucket, regardless of request type (bulk or a single state). This will allow for some batching and shorten stuff executed from the callout context. After this change the call to pfsync_sendout() from the pfsync_request_update() can be changed to 0 in first arguemnt.

Yeah, that makes sense too. Requesting state updates should be very rare anyway, so not buffering them should be safe.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 17 2021, 7:22 PM
This revision was automatically updated to reflect the committed changes.