Revision d14f8c3c nest/rt-attr.c

View differences:

nest/rt-attr.c
1279 1279
  rta_slab_[0] = sl_new(rta_pool, sizeof(rta));
1280 1280
  rta_slab_[1] = sl_new(rta_pool, sizeof(rta) + sizeof(u32));
1281 1281
  rta_slab_[2] = sl_new(rta_pool, sizeof(rta) + sizeof(u32)*2);
1282
  rta_slab_[3] = sl_new(rta_pool, sizeof(rta) + sizeof(u32)*NEXTHOP_MAX_LABEL_STACK);
1282
  rta_slab_[3] = sl_new(rta_pool, sizeof(rta) + sizeof(u32)*MPLS_MAX_LABEL_STACK);
1283 1283

  
1284 1284
  nexthop_slab_[0] = sl_new(rta_pool, sizeof(struct nexthop));
1285 1285
  nexthop_slab_[1] = sl_new(rta_pool, sizeof(struct nexthop) + sizeof(u32));
1286 1286
  nexthop_slab_[2] = sl_new(rta_pool, sizeof(struct nexthop) + sizeof(u32)*2);
1287
  nexthop_slab_[3] = sl_new(rta_pool, sizeof(struct nexthop) + sizeof(u32)*NEXTHOP_MAX_LABEL_STACK);
1287
  nexthop_slab_[3] = sl_new(rta_pool, sizeof(struct nexthop) + sizeof(u32)*MPLS_MAX_LABEL_STACK);
1288 1288

  
1289 1289
  rta_alloc_hash();
1290 1290
  rte_src_init();

Also available in: Unified diff