]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: packet fifo init in interface create 2211/head
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 1 May 2018 14:36:53 +0000 (07:36 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 11 May 2018 00:45:43 +0000 (17:45 -0700)
commit4fc8a85288f48f607b13f7bb36c5055fda92a639
tree9562405e6e925aec0d55c4410c6937c403f8c533
parent3dc755e492093c42d0983620da810893c413c533
ospfd: packet fifo init in interface create

Currently, interface packet transmit queue is created/deleted
as part of Interface UP/Down event. This results in
a rare condition where port came up but queue
was not created. The creation of queue occupies only few bytes.

Moving fifo queue creation to interface create
would add few bytes of fifo creation but at least it guaranteed
to be available during Up/down -->Up event.

Initialize ospf packet fifo queue during ospf
interface creation.

Drain queue during interface down event.

Drained and free the queue as part of the interface
delete/cleanup.

Ticket:CM-20744
Testing Done:

Bring up ospfv2 topology with multiple neighbors.
1) Trigger multiple shut/no shut events and validate
all queues are freed.
2) configure/deconfigure router ospf and validate
all ospf instance and interface underneath are freed.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_interface.c