]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix zclient return code damage in labelpool
authorPat Ruddy <pat@voltanet.io>
Wed, 16 Dec 2020 15:06:30 +0000 (15:06 +0000)
committerPat Ruddy <pat@voltanet.io>
Mon, 4 Jan 2021 14:29:44 +0000 (14:29 +0000)
commit3466e2a1eafe1c9ca122ac749a94d3e08445d5df
treec655c3d418a142b49c8eee88d5885b0d2ee439b2
parent78b351ddcd96640e5a0aeb4c8e3baf65a0e67fc2
bgpd: fix zclient return code damage in labelpool

The check for the return code for zclient_send_get_label_chunk is
reversed and therefore the pending count does not get incremented
for each successful label chunk request.
This has the effect of requesting a 50 label chunk per label request
from BGP i.e we request 50 times the labels we require.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
bgpd/bgp_labelpool.c