]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
lib, zebra: support label chunk requests for SRGB
authorEmanuele Di Pascale <emanuele@voltanet.io>
Wed, 12 Jun 2019 14:33:12 +0000 (16:33 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Wed, 10 Jul 2019 13:20:27 +0000 (15:20 +0200)
commit0e3b6a926a98a028fa9ed8a8a1d00b429f547c03
tree4a58e7bb2e5fe257dd998d7198b1f974c200edd7
parenta7001650c8b5f1bd37f5f678e82920710fd4a4b7
lib, zebra: support label chunk requests for SRGB

For SRGB, we need to support chunk requests starting at a
specific point in the label space, rather than just asking
for any sufficiently large chunk. To this purpose, we extend
the label manager api to request a chunk with a base value;
if the base is set to 0, the label manager will behave as it
currently does, i.e. fetching the first free chunk big enough
to satisfy the request.

update all the existing calls to get chunks from the label
manager so that they use MPLS_LABEL_BASE_ANY as the base
for the requested chunk

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
bgpd/bgp_labelpool.c
ldpd/lde.c
lib/mpls.h
lib/zclient.c
lib/zclient.h
tests/test_lblmgr.c
zebra/label_manager.c
zebra/label_manager.h
zebra/zapi_msg.c