summaryrefslogtreecommitdiffstats
path: root/build/external/packages
AgeCommit message (Expand)AuthorFilesLines
2020-03-27quic: Check quicly version tag at compile timeMathiasRaoul1-2/+2
2020-03-12rdma: cleanup rdma-core buildBenoît Ganne1-12/+9
2020-02-26rdma: bunp rdma-core version to v28.0Damjan Marion1-1/+2
2020-02-26dpdk: bump dpdk version to 20.02Damjan Marion1-2/+2
2020-01-31quic: update quicly to v0.0.10-vppMathiasRaoul1-2/+2
2020-01-06quic: update quicly to v0.0.9-vppMathiasRaoul1-2/+2
2019-12-17quic: update quicly to v0.0.8-vppMathiasRaoul1-2/+2
2019-12-06quic: update quicly to v0.0.7-vppMathiasRaoul1-2/+2
2019-11-25quic: update quicly to v0.0.6-vppMathiasRaoul1-2/+2
2019-11-22crypto-ipsecmb: bump to intel-ipsec-mb version 0.53Fan Zhang1-2/+3
2019-11-14dpdk: Enable bnxt PMDAndy Gospodarek1-0/+1
2019-11-01build: bump rdma-core version to 26.0Damjan Marion1-3/+2
2019-10-31build: bump nasm version to 2.14.02Damjan Marion1-2/+2
2019-10-04quic: update quicly to v0.0.5MathiasRaoul1-4/+4
2019-09-30build: build-root/Makefile rm of install treeBurt Silverman1-0/+1
2019-08-21dpdk: bump DPDK version to 19.08Damjan Marion1-3/+2
2019-08-07rdma: add missing symbolsBenoît Ganne1-1/+4
2019-08-05rdma: bump rdma-core to 25.0Benoît Ganne1-2/+3
2019-07-22quic: update quicly libraryAloys Augustin1-2/+2
2019-05-30dpdk: remove bonding codeDamjan Marion1-1/+1
2019-05-30dpdk: bump to 19.05Damjan Marion1-1/+3
2019-05-14QUIC multi thread updateAloys Augustin1-2/+2
2019-05-14Build packages for generic Arm architectureLijian.Zhang1-1/+8
2019-04-23Bump to intel-ipsec-mb version 0.52Damjan Marion1-10/+10
2019-04-17crypto-ipsecmb: enable GCMNeale Ranns1-1/+2
2019-04-09rdma-core: add debug build optionBenoît Ganne1-1/+8
2019-04-08rdma: fix DPDK MLX driver conflictBenoît Ganne2-3/+2
2019-04-05rdma: more batching, compile rdma-core in release modeBenoît Ganne1-1/+1
2019-04-05QUIC: Build cleanupDave Wallace1-6/+0
2019-04-03Fix problem building rdma-core.Thomas F Herbert1-2/+2
2019-04-03QUIC: Build system updateAloys Augustin1-0/+50
2019-03-29revert quicly related build/external changesDamjan Marion1-42/+0
2019-03-29Integrate first QUIC protocol implementationNathan Skrzypczak1-0/+42
2019-03-28Add RDMA ibverb driver pluginBenoît Ganne2-32/+74
2019-03-01dpdk: update mlx[45] linking optionsMatthew Smith1-3/+2
2019-02-14make install-ext-deps broken.Paul Vinciguerra1-1/+1
2019-02-02dpdk: bump to dpdk 19.02Damjan Marion1-2/+2
2018-11-29dpdk: bump to DPDK 18.11Damjan Marion1-2/+2
2018-11-05dpdk: enable gso when the tap PMD is enabledMatthew Smith1-1/+1
2018-10-24dpdk: disable unused rxtx callbacks in ethdevStephen Hemminger1-0/+1
2018-10-20dpdk: turn off unused DPDK componentsStephen Hemminger1-0/+17
2018-10-15dpdk: drop no longer used config optionsStephen Hemminger1-6/+0
2018-10-01dpdk: updated makefile to enable QAT cryptodevRadu Nicolau1-0/+1
2018-09-27dpdk_plugin: fix mlx5 build and runtime issuesSirshak Das1-1/+2
2018-09-21add: nasm and ipsec-mb into vpp-ext-deps packagingDamjan Marion3-0/+346
span> vec_len (cm->start_node_indices); i++) { u32 tmp; tmp = vlib_node_add_next (vm, cm->start_node_indices[i], this_node_index); if (ni == ~0) ni = tmp; /* Start nodes to first must agree on next indices. */ ASSERT (ni == tmp); } return ni; } static vnet_config_t * find_config_with_features (vlib_main_t * vm, vnet_config_main_t * cm, vnet_config_feature_t * feature_vector) { u32 last_node_index = ~0; vnet_config_feature_t *f; u32 *config_string; uword *p; vnet_config_t *c; config_string = cm->config_string_temp; cm->config_string_temp = 0; if (config_string) _vec_len (config_string) = 0; vec_foreach (f, feature_vector) { /* Connect node graph. */ f->next_index = add_next (vm, cm, last_node_index, f->node_index); last_node_index = f->node_index; /* Store next index in config string. */ vec_add1 (config_string, f->next_index); /* Store feature config. */ vec_add (config_string, f->feature_config, vec_len (f->feature_config)); } /* Terminate config string with next for end node. */ if (last_node_index == ~0 || last_node_index != cm->end_node_index) { u32 next_index = add_next (vm, cm, last_node_index, cm->end_node_index); vec_add1 (config_string, next_index); } /* See if config string is unique. */ p = hash_get_mem (cm->config_string_hash, config_string); if (p) { /* Not unique. Share existing config. */ cm->config_string_temp = config_string; /* we'll use it again later. */ free_feature_vector (feature_vector); c = pool_elt_at_index (cm->config_pool, p[0]); } else { u32 *d; pool_get (cm->config_pool, c); c->index = c - cm->config_pool; c->features = feature_vector; c->config_string_vector = config_string; /* Allocate copy of config string in heap. VLIB buffers will maintain pointers to heap as they read out configuration data. */ c->config_string_heap_index = heap_alloc (cm->config_string_heap, vec_len (config_string) + 1, c->config_string_heap_handle); /* First element in heap points back to pool index. */ d = vec_elt_at_index (cm->config_string_heap, c->config_string_heap_index); d[0] = c->index; clib_memcpy (d + 1, config_string, vec_bytes (config_string)); hash_set_mem (cm->config_string_hash, config_string, c->index); c->reference_count = 0; /* will be incremented by caller. */ } return c; } void vnet_config_init (vlib_main_t * vm, vnet_config_main_t * cm, char *start_node_names[], int n_start_node_names, char *feature_node_names[], int n_feature_node_names) { vlib_node_t *n; u32 i; clib_memset (cm, 0, sizeof (cm[0])); cm->config_string_hash = hash_create_vec (0, STRUCT_SIZE_OF (vnet_config_t, config_string_vector[0]), sizeof (uword)); ASSERT (n_feature_node_names >= 1); vec_resize (cm->start_node_indices, n_start_node_names); for (i = 0; i < n_start_node_names; i++) { n = vlib_get_node_by_name (vm, (u8 *) start_node_names[i]); /* Given node name must exist. */ ASSERT (n != 0); cm->start_node_indices[i] = n->index; } vec_resize (cm->node_index_by_feature_index, n_feature_node_names); for (i = 0; i < n_feature_node_names; i++) { if (!feature_node_names[i]) cm->node_index_by_feature_index[i] = ~0; else { n = vlib_get_node_by_name (vm, (u8 *) feature_node_names[i]); /* Given node may exist in plug-in library which is not present */ if (n) { if (i + 1 == n_feature_node_names) cm->end_node_index = n->index; cm->node_index_by_feature_index[i] = n->index; } else cm->node_index_by_feature_index[i] = ~0; } } } static void remove_reference (vnet_config_main_t * cm, vnet_config_t * c) { ASSERT (c->reference_count > 0); c->reference_count -= 1; if (c->reference_count == 0) { hash_unset (cm->config_string_hash, c->config_string_vector); vnet_config_free (cm, c); pool_put (cm->config_pool, c); } } static int feature_cmp (void *a1, void *a2) { vnet_config_feature_t *f1 = a1; vnet_config_feature_t *f2 = a2; return (int) f1->feature_index - f2->feature_index; } always_inline u32 * vnet_get_config_heap (vnet_config_main_t * cm, u32 ci) { return heap_elt_at_index (cm->config_string_heap, ci); } u32 vnet_config_modify_end_node (vlib_main_t * vm, vnet_config_main_t * cm, u32 config_string_heap_index, u32 end_node_index) { vnet_config_feature_t *new_features; vnet_config_t *old, *new; if (end_node_index == ~0) // feature node does not exist return ~0; if (config_string_heap_index == ~0) { old = 0; new_features = 0; } else { u32 *p = vnet_get_config_heap (cm, config_string_heap_index); old = pool_elt_at_index (cm->config_pool, p[-1]); new_features = old->features; if (new_features) new_features = duplicate_feature_vector (new_features); } if (vec_len (new_features)) { /* is the last feature the cuurent end node */ u32 last = vec_len (new_features) - 1; if (new_features[last].node_index == cm->end_node_index) { vec_free (new_features->feature_config); _vec_len (new_features) = last; } } if (old) remove_reference (cm, old); cm->end_node_index = end_node_index; new = find_config_with_features (vm, cm, new_features); new->reference_count += 1; /* * User gets pointer to config string first element * (which defines the pool index * this config string comes from). */ vec_validate (cm->config_pool_index_by_user_index, new->config_string_heap_index + 1); cm->config_pool_index_by_user_index[new->config_string_heap_index + 1] = new - cm->config_pool; return new->config_string_heap_index + 1; } u32 vnet_config_add_feature (vlib_main_t * vm, vnet_config_main_t * cm, u32 config_string_heap_index, u32 feature_index, void *feature_config, u32 n_feature_config_bytes) { vnet_config_t *old, *new; vnet_config_feature_t *new_features, *f; u32 n_feature_config_u32s; u32 node_index = vec_elt (cm->node_index_by_feature_index, feature_index); if (node_index == ~0) // feature node does not exist return ~0; if (config_string_heap_index == ~0) { old = 0; new_features = 0; } else { u32 *p = vnet_get_config_heap (cm, config_string_heap_index); old = pool_elt_at_index (cm->config_pool, p[-1]); new_features = old->features; if (new_features) new_features = duplicate_feature_vector (new_features); } vec_add2 (new_features, f, 1); f->feature_index = feature_index; f->node_index = node_index; n_feature_config_u32s = round_pow2 (n_feature_config_bytes, sizeof (f->feature_config[0])) / sizeof (f->feature_config[0]); vec_add (f->feature_config, feature_config, n_feature_config_u32s); /* Sort (prioritize) features. */ if (vec_len (new_features) > 1) vec_sort_with_function (new_features, feature_cmp); if (old) remove_reference (cm, old); new = find_config_with_features (vm, cm, new_features); new->reference_count += 1; /* * User gets pointer to config string first element * (which defines the pool index * this config string comes from). */ vec_validate (cm->config_pool_index_by_user_index, new->config_string_heap_index + 1); cm->config_pool_index_by_user_index[new->config_string_heap_index + 1] = new - cm->config_pool; return new->config_string_heap_index + 1; } u32 vnet_config_del_feature (vlib_main_t * vm, vnet_config_main_t * cm, u32 config_string_heap_index, u32 feature_index, void *feature_config, u32 n_feature_config_bytes) { vnet_config_t *old, *new; vnet_config_feature_t *new_features, *f; u32 n_feature_config_u32s; { u32 *p = vnet_get_config_heap (cm, config_string_heap_index); old = pool_elt_at_index (cm->config_pool, p[-1]); } n_feature_config_u32s = round_pow2 (n_feature_config_bytes, sizeof (f->feature_config[0])) / sizeof (f->feature_config[0]); /* Find feature with same index and opaque data. */ vec_foreach (f, old->features) { if (f->feature_index == feature_index && vec_len (f->feature_config) == n_feature_config_u32s && (n_feature_config_u32s == 0 || !memcmp (f->feature_config, feature_config, n_feature_config_bytes))) break; } /* Feature not found. */ if (f >= vec_end (old->features)) return ~0; new_features = duplicate_feature_vector (old->features); f = new_features + (f - old->features); vnet_config_feature_free (f); vec_delete (new_features, 1, f - new_features); /* must remove old from config_pool now as it may be expanded and change memory location if the following function find_config_with_features() adds a new config because none of existing config's has matching features and so can be reused */ remove_reference (cm, old); new = find_config_with_features (vm, cm, new_features); new->reference_count += 1; vec_validate (cm->config_pool_index_by_user_index, new->config_string_heap_index + 1); cm->config_pool_index_by_user_index[new->config_string_heap_index + 1] = new - cm->config_pool; return new->config_string_heap_index + 1; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */