]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_io.c
bgpd: atomize write-quanta, add read-quanta
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 5 Jun 2017 20:14:47 +0000 (20:14 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 30 Nov 2017 21:18:00 +0000 (16:18 -0500)
commit555e09d4a2f138ae12848b1fb4f19930c9527685
tree02b374eaa99592b9ce0f0a7a48b5fdf27771bc4f
parent9eb217ff69bb8c74191f9347b73959bc17ebe7df
bgpd: atomize write-quanta, add read-quanta

bgpd supports setting a write-quanta that serves as a hint on how many
packets to write per I/O cycle. Now that input is buffered, it makes
sense to add the equivalent parameter for how many packets are processed
per cycle. This is *not* how many packets are read off the wire per I/O
cycle; rather it is how many packets are processed from the input buffer
in a given cycle after having been read off the wire and sanitized.

Since these values must be used from multiple threads, they have also
been made atomic.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_io.c
bgpd/bgp_io.h
bgpd/bgp_packet.c
bgpd/bgp_packet.h
bgpd/bgp_vty.c
bgpd/bgp_vty.h
bgpd/bgpd.c
bgpd/bgpd.h