X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fgbp%2Fgbp_endpoint.h;h=3155e7be4e01555cb80983d9279f058ab0962964;hb=59f71132e;hp=a0d354ab8ab5dc0d73eb8f64e20d403f81850afa;hpb=36abbf10045ba81733410f50a3f5a9463f7137d1;p=vpp.git diff --git a/src/plugins/gbp/gbp_endpoint.h b/src/plugins/gbp/gbp_endpoint.h index a0d354ab8ab..3155e7be4e0 100644 --- a/src/plugins/gbp/gbp_endpoint.h +++ b/src/plugins/gbp/gbp_endpoint.h @@ -17,6 +17,7 @@ #define __GBP_ENDPOINT_H__ #include +#include #include #include @@ -58,11 +59,13 @@ extern u8 *format_gbp_endpoint_flags (u8 * s, va_list * args); /** * Sources of Endpoints in priority order. The best (lowest value) source - * provides the forwarding information + * provides the forwarding information. + * Data-plane takes preference because the CP data is not always complete, + * it may not have the sclass. */ #define foreach_gbp_endpoint_src \ - _(CP, "control-plane") \ _(DP, "data-plane") \ + _(CP, "control-plane") \ _(RR, "recursive-resolution") typedef enum gbp_endpoint_src_t_ @@ -120,7 +123,7 @@ typedef struct gbp_endpoint_loc_t_ /** * The interface on which the EP is connected */ - u32 gel_sw_if_index; + gbp_itf_hdl_t gel_itf; /** * Endpoint flags @@ -156,7 +159,7 @@ typedef struct gbp_endpoint_fwd_t_ /** * The interface on which the EP is connected */ - index_t gef_itf; + gbp_itf_hdl_t gef_itf; /** * The L3 adj, if created