Bug 200321

Summary: [ip] [pf] pfSync generates demotion events to carp when not needed
Product: Base System Reporter: Ermal Luçi <eri>
Component: kernAssignee: Ermal Luçi <eri>
Status: New ---    
Severity: Affects Only Me CC: babak, garga, gnn, net
Priority: --- Keywords: patch
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.