X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_test.h;h=53697cb62aee104499aed62af20aad2d02452639;hb=d78349109fdb98fa0ba5f5aff779be700ff78357;hp=b98680bf6838c4d04ef4ebe752a62d334fcacee1;hpb=0f26c5a0138ac86d7ebd197c31a09d8d624c35fe;p=vpp.git diff --git a/src/vnet/fib/fib_test.h b/src/vnet/fib/fib_test.h index b98680bf683..53697cb62ae 100644 --- a/src/vnet/fib/fib_test.h +++ b/src/vnet/fib/fib_test.h @@ -17,15 +17,25 @@ #define __FIB_TEST_H__ #include +#include +#include +#include +#include +#include +#include typedef enum fib_test_lb_bucket_type_t_ { FT_LB_LABEL_O_ADJ, FT_LB_LABEL_STACK_O_ADJ, FT_LB_LABEL_O_LB, FT_LB_O_LB, - FT_LB_SPECIAL, - FT_LB_ADJ, + FT_LB_MPLS_DISP_O_ADJ, FT_LB_INTF, + FT_LB_L2, + FT_LB_BIER_TABLE, + FT_LB_BIER_FMASK, + FT_LB_DROP, + FT_LB_ADJ, } fib_test_lb_bucket_type_t; typedef struct fib_test_lb_bucket_t_ { @@ -67,11 +77,19 @@ typedef struct fib_test_lb_bucket_t_ { { index_t adj; } special; + struct + { + union { + index_t table; + index_t fmask; + }; + } bier; }; } fib_test_lb_bucket_t; typedef enum fib_test_rep_bucket_type_t_ { FT_REP_LABEL_O_ADJ, + FT_REP_DISP_MFIB_LOOKUP, FT_REP_INTF, } fib_test_rep_bucket_type_t; @@ -97,15 +115,20 @@ typedef struct fib_test_rep_bucket_t_ { extern int fib_test_validate_rep_v(const replicate_t *rep, u16 n_buckets, - va_list ap); + va_list *ap); extern int fib_test_validate_lb_v(const load_balance_t *lb, u16 n_buckets, - va_list ap); + va_list *ap); + +extern int fib_test_validate_lb(const dpo_id_t *dpo, + u16 n_buckets, + ...); extern int fib_test_validate_entry(fib_node_index_t fei, fib_forward_chain_type_t fct, - u16 n_buckets, + int n_buckets, ...); + #endif