]> git.proxmox.com Git - mirror_frr.git/commit
zebra: add developer test functions for FPM code
authorAvneesh Sachdev <avneesh@sproute.com>
Fri, 11 Mar 2016 20:21:26 +0000 (12:21 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 16:12:17 +0000 (12:12 -0400)
commitb80f3b245caa3ff1cf40b5a0d7be47540ffd6d4c
tree6bc7514224f12293384f7b9f6bf984bab6000009
parent3b8282a8e8bdf97ab78cb11321f07063488640fa
zebra: add developer test functions for FPM code

Add test functions for the zebra code that interfaces with the
Forwarding Plane Manager. These functions can be invoked in a
development build via the recently-added 'invoke' command.

For example:

  # invoke zebra function zfpm_dt_benchmark_protobuf_encode 100000

Changes:

  * zebra/zebra_fpm_dt.c

    Add the following functions. Each function encodes or decodes a
    route in a particular FPM format a specified number of times.

    - zfpm_dt_benchmark_netlink_encode()
    - zfpm_dt_benchmark_protobuf_encode()
    - zfpm_dt_benchmark_protobuf_decode()

  * zebra/Makefile.am

    Compile zebra_fpm_dt when building a development build.

Signed-off-by: Avneesh Sachdev <avneesh@sproute.com>
zebra/Makefile.am
zebra/zebra_fpm_dt.c [new file with mode: 0644]