]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix work-quanta to be a reasonable value
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 18 Jan 2016 17:44:52 +0000 (09:44 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 18 Jan 2016 17:44:52 +0000 (09:44 -0800)
commit4543bbb45ed250f2a6e63ada7d248e2167d02c66
tree0bea12f924f412e779916c7d336c71af41068e83
parent9b1be336fabce8de6460f02b937740ba553d5267
bgpd: Fix work-quanta to be a reasonable value

The work-quanta that a user can specify is ~4billion.  If a user
specifies such a large value this translates into processing 4billion
outgoing packets before moving onto the next interface.  This makes
no sense.  Reduce the value of allowed work quanta's to be between
1 and 10000.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
bgpd/bgp_vty.c