Bug 200321

Summary: [ip] [pf] pfSync generates demotion events to carp when not needed
Product: Base System Reporter: Ermal Luçi <eri>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: New ---    
Severity: Affects Only Me CC: babak, garga, gnn, net
Priority: ---    
Version: 10.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Prevent pfsync/carp demotions when value is 0 none

Description Ermal Luçi 2015-05-19 08:36:03 UTC
Created attachment 156929 [details]
Prevent pfsync/carp demotions when value is 0

pfSync generates demotion events even when net.pfsync.carp_demotion_factor is 0.
The same applies to the carp net.inet.carp.senderr_demotion_factor is 0.

This triggers unneeded events on the system which might impact availability of the carp ip.

Attached patch just skips these events in case the values are 0, meaning administratively disable the event.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2024-01-05 04:38:09 UTC
^Triage: commit bit was taken in for safekeeping.