diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-05 22:14:47 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-11-30 22:18:00 +0100 |
commit | 555e09d4a2f138ae12848b1fb4f19930c9527685 (patch) | |
tree | 02b374eaa99592b9ce0f0a7a48b5fdf27771bc4f /bgpd/bgp_vty.h | |
parent | bgpd: batched i/o (diff) | |
download | frr-555e09d4a2f138ae12848b1fb4f19930c9527685.tar.xz frr-555e09d4a2f138ae12848b1fb4f19930c9527685.zip |
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>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r-- | bgpd/bgp_vty.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h index 59bc01266..e456f7cae 100644 --- a/bgpd/bgp_vty.h +++ b/bgpd/bgp_vty.h @@ -48,6 +48,7 @@ extern const char *afi_safi_print(afi_t, safi_t); extern const char *afi_safi_json(afi_t, safi_t); extern void bgp_config_write_update_delay(struct vty *, struct bgp *); extern void bgp_config_write_wpkt_quanta(struct vty *vty, struct bgp *bgp); +extern void bgp_config_write_rpkt_quanta(struct vty *vty, struct bgp *bgp); extern void bgp_config_write_listen(struct vty *vty, struct bgp *bgp); extern void bgp_config_write_coalesce_time(struct vty *vty, struct bgp *bgp); extern int bgp_vty_return(struct vty *vty, int ret); |