diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-05 20:14:47 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-11-30 16:18:00 -0500 | 
| commit | 555e09d4a2f138ae12848b1fb4f19930c9527685 (patch) | |
| tree | 02b374eaa99592b9ce0f0a7a48b5fdf27771bc4f /bgpd/bgp_packet.h | |
| parent | 9eb217ff69bb8c74191f9347b73959bc17ebe7df (diff) | |
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_packet.h')
| -rw-r--r-- | bgpd/bgp_packet.h | 1 | 
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h index 502dbbdeed..62c3fe671b 100644 --- a/bgpd/bgp_packet.h +++ b/bgpd/bgp_packet.h @@ -24,7 +24,6 @@  #define BGP_NLRI_LENGTH       1U  #define BGP_TOTAL_ATTR_LEN    2U  #define BGP_UNFEASIBLE_LEN    2U -#define BGP_WRITE_PACKET_MAX 10U  /* When to refresh */  #define REFRESH_IMMEDIATE 1  | 
