]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: blackhole traffic when we are not DR for Stream received
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 15:41:46 +0000 (11:41 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 15:41:46 +0000 (11:41 -0400)
commitb5469d021cd8240bf08bce8f9f0d9e1e644ff05d
tree9c3c9215578071f3ecfa00ba348eb1519f95bf7e
parent90a084e4a1bbffc2de9a1192fdc3ab30c58a1b80
pimd: blackhole traffic when we are not DR for Stream received

Suppose we have a bridge with a host and two routers attached
to it.

r1     r2
|      |
--------
    |
  host

host is sending traffic.
r1 and r2 are pim neighbors and r2 is the DR.

Both r1 and r2 will receive data from the stream up the pim
kernel socket.  r1 will notice that it is not the DR and
stop processing in pim.  This code adds a bit more code to blackhole
the route when r1 detects it is not the DR in this scenario.

This is being done because the kernel is both keeping state and
sending data to the pim process to continue processing this.
Additionally if we happen to be running this on a asic, then
blackholing the route in the asic can save a significant amount
of cpu time handling this situation.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_mroute.c