X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fplugins%2Fgbp%2Fgbp_route_domain.c;h=67b6915b46387c1459ad9a239774822290d6d5fe;hp=c030ee51ada8f9a1d3e30418aec7b1bad019024d;hb=b6a4795;hpb=b2bc03b3d055e601a5667c61a28f78520dd84d50 diff --git a/src/plugins/gbp/gbp_route_domain.c b/src/plugins/gbp/gbp_route_domain.c index c030ee51ada..67b6915b463 100644 --- a/src/plugins/gbp/gbp_route_domain.c +++ b/src/plugins/gbp/gbp_route_domain.c @@ -62,6 +62,12 @@ vlib_log_class_t grd_logger; #define GBP_BD_DBG(...) \ vlib_log_debug (grd_logger, __VA_ARGS__); +index_t +gbp_route_domain_index (const gbp_route_domain_t * grd) +{ + return (grd - gbp_route_domain_pool); +} + gbp_route_domain_t * gbp_route_domain_get (index_t i) { @@ -225,6 +231,16 @@ gbp_route_domain_unlock (index_t index) } } +u32 +gbp_route_domain_get_rd_id (index_t grdi) +{ + gbp_route_domain_t *grd; + + grd = gbp_route_domain_get (grdi); + + return (grd->grd_id); +} + int gbp_route_domain_delete (u32 rd_id) {