google / seesaw

Seesaw v2 is a Linux Virtual Server (LVS) based load balancing platform.
Apache License 2.0
5.65k stars 511 forks source link

avoid processing unrelated vrrp packet #69

Closed liuyuan10 closed 4 years ago

liuyuan10 commented 4 years ago

currently VRRP is always sent to receive queue that is processed by the run loop even if it's not for this VRRP group. Because golang evaluate switch cases in order, theoretically a VRRP flood may stop failover because there is always packets to process.

The fix is to drop those packets early before it can interupt run loop.

anfernee commented 4 years ago

/lgtm