summaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Expand)AuthorFilesLines
2018-10-19vppinfra: add atomic macros for __sync builtinsSirshak Das1-2/+2
2018-10-18Update version (18.10) for API changes scriptMarco Varlese1-2/+2
2018-10-03LISP ONLY: maintain the make-plugin.sh scriptDave Barach1-3/+14
2018-10-03LISP ONLY: maintain the emacs lisp plugin generatorDave Barach8-98/+70
2018-10-03jvppgen: update headersBernhard M. Wiedemann1-2/+2
2018-10-02Fix JVPP enum _host_to_net_ translation (VPP-1438)Michal Cmarada1-2/+2
2018-10-01Fix the path error inside vcl socket_test.shYalei Wang1-2/+2
2018-09-29vom: Fix the l2 port type in bridge domainMohsin Kazmi5-35/+105
2018-09-27Revert "japi: Move Java API binding to cmake"Damjan Marion6-218/+384
2018-09-27libmemif: external region bugfixJakub Grajciar2-2/+5
2018-09-27vom: Add ip punt redirectMohsin Kazmi5-0/+585
2018-09-26japi: Move Java API binding to cmakeMohsin Kazmi6-384/+218
2018-09-26rpm: Fix the spec file to look into right directoriesMohsin Kazmi2-4/+4
2018-09-25L2 BD: introduce a BD interface on which to send UU packetsNeale Ranns1-2/+4
2018-09-21Fixed japi/java/Makefile.am so the JAR for NSH plugin builds as well.Tibor Král2-1/+21
2018-09-20rename vpp-dpdk-dev to vpp-ext-depsDamjan Marion1-1/+1
2018-09-14cpack: add deb/rpm packaging to VPP moduleDamjan Marion2-0/+8
2018-09-14cmake: use VPP package in VOMDamjan Marion2-7/+9
2018-09-13Fix: vppapigen make build fails on fresh installPaul Vinciguerra1-2/+2
2018-09-12Always use 'lib' instead of 'lib64'Damjan Marion9-29/+21
2018-09-11GBP Endpoint UpdatesNeale Ranns7-64/+104
2018-09-09cmake: Move VOM to cmakeMohsin Kazmi5-263/+274
2018-09-07update regex used by rpm build to find lib filesMatthew Smith1-1/+1
2018-09-07libmemif: slave connecting bugfixJakub Grajciar3-48/+70
2018-09-04Add JVPP for NSH pluginHongjun Ni3-0/+149
2018-09-02Switch to cmakeDamjan Marion2-8/+0
2018-08-31Introduce a mac_address_t on the API and in VPPNeale Ranns5-2/+171
2018-08-30SUSE: fix spec to generate RPMsMarco Varlese1-27/+27
2018-08-30libmemif: external region supportJakub Grajciar9-123/+1460
2018-08-27VOM: Add support bridge domain arp entry dumpMohsin Kazmi3-0/+102
2018-08-21SUSE: rpm-packaging fixesMarco Varlese2-2/+9
2018-08-20Add Dockerfiles for run/build.Ed Warnicke6-0/+68
2018-08-14Make vagrant work behind a proxyKyle Mestery6-13/+17
2018-08-11emacs skeletons: add quad/single, avx2/avx512 supportDave Barach6-6/+329
2018-08-07PAPI: Move unit tests to fix packaging issues.Ole Troan1-1/+0
2018-08-03PAPI: Union pad at the end of short fields instead of at head.Ole Troan1-0/+1
2018-08-02Temporrary disable japi packaging for opensuseDamjan Marion1-26/+26
2018-08-02vcl: fix debug messages output before heap cfgFlorin Coras1-0/+20
2018-08-01Move java api to extras/Damjan Marion116-6/+10191
2018-07-30Update Release Notes for 18.07 ReleaseEd Warnicke1-2/+2
2018-07-17VOM: support for pipesNeale Ranns80-300/+886
2018-07-11memif: fix max number of ringsDamjan Marion1-1/+1
2018-07-11vom: Add TAPv2 supportMohsin Kazmi11-176/+383
2018-07-10openSUSE: spec file update to reflect latest depsMarco Varlese1-5/+13
2018-07-03vom: Add cross connect supportMohsin Kazmi5-0/+698
2018-06-28libmemif: fixing head/tail arithmetics & queue reallocationMilan Lenco2-11/+6
2018-06-22Python API: Add enum and union support.Ole Troan2-2/+2
2018-06-18Revert "Python API: Add enum and union support."Ole Trøan2-2/+2
2018-06-17Python API: Add enum and union support.Ole Troan2-2/+2
2018-06-11vom: Add support for af-packet dumpMohsin Kazmi5-9/+102
an>lm->token_buffer) = 0; /* Rescan the character which terminated the keyword/word. */ lm->current_index--; return; } case VLIB_LEX_RETURN_AND_RESCAN: ASSERT (lm->current_index); lm->current_index--; /* note flow-through */ case VLIB_LEX_RETURN: rv->token = e->token; rv->value.as_uword = lm->current_token_value; lm->current_token_value = ~0; if (LEX_DEBUG > 0) { clib_warning ("table %s char '%c'(0x%02x) next table %s return %s", t->name, c, c, lm->lex_tables[e->next_table_index].name, lm->lex_token_names[e->token]); if (rv->token == VLIB_LEX_number) clib_warning (" numeric value 0x%x (%d)", rv->value, rv->value); } return; } } } u16 vlib_lex_add_token (vlib_lex_main_t * lm, char *token_name) { uword *p; u16 rv; p = hash_get_mem (lm->lex_tokens_by_name, token_name); if (p) return p[0]; rv = vec_len (lm->lex_token_names); hash_set_mem (lm->lex_tokens_by_name, token_name, rv); vec_add1 (lm->lex_token_names, token_name); return rv; } static u16 add_keyword (vlib_lex_main_t * lm, char *keyword, char *token_name) { uword *p; u16 token; p = hash_get_mem (lm->lex_keywords, keyword); ASSERT (p == 0); token = vlib_lex_add_token (lm, token_name); hash_set_mem (lm->lex_keywords, keyword, token); return token; } u16 vlib_lex_find_or_add_keyword (vlib_lex_main_t * lm, char *keyword, char *token_name) { uword *p = hash_get_mem (lm->lex_keywords, keyword); return p ? p[0] : add_keyword (lm, keyword, token_name); } void vlib_lex_set_action_range (u32 table_index, u8 lo, u8 hi, u16 action, u16 token, u32 next_table_index) { int i; vlib_lex_main_t *lm = &vlib_lex_main; vlib_lex_table_t *t = pool_elt_at_index (lm->lex_tables, table_index); for (i = lo; i <= hi; i++) { ASSERT (i < ARRAY_LEN (t->entries)); t->entries[i].action = action; t->entries[i].token = token; t->entries[i].next_table_index = next_table_index; } } u16 vlib_lex_add_table (char *name) { vlib_lex_main_t *lm = &vlib_lex_main; vlib_lex_table_t *t; uword *p; p = hash_get_mem (lm->lex_tables_by_name, name); ASSERT (p == 0); pool_get_aligned (lm->lex_tables, t, CLIB_CACHE_LINE_BYTES); t->name = name; hash_set_mem (lm->lex_tables_by_name, name, t - lm->lex_tables); vlib_lex_set_action_range (t - lm->lex_tables, 1, 0x7F, VLIB_LEX_IGNORE, ~0, t - lm->lex_tables); vlib_lex_set_action_range (t - lm->lex_tables, 0, 0, VLIB_LEX_RETURN, VLIB_LEX_eof, t - lm->lex_tables); return t - lm->lex_tables; } void vlib_lex_reset (vlib_lex_main_t * lm, u8 * input_vector) { if (lm->pushback_vector) _vec_len (lm->pushback_vector) = 0; lm->pushback_sp = -1; lm->input_vector = input_vector; lm->current_index = 0; } static clib_error_t * lex_onetime_init (vlib_main_t * vm) { vlib_lex_main_t *lm = &vlib_lex_main; lm->lex_tables_by_name = hash_create_string (0, sizeof (uword)); lm->lex_tokens_by_name = hash_create_string (0, sizeof (uword)); lm->lex_keywords = hash_create_string (0, sizeof (uword)); lm->pushback_sp = -1; #define _(f) { u16 tmp = vlib_lex_add_token (lm, #f); ASSERT (tmp == VLIB_LEX_##f); } foreach_vlib_lex_global_token; #undef _ vec_validate (lm->token_buffer, 127); _vec_len (lm->token_buffer) = 0; return 0; } VLIB_INIT_FUNCTION (lex_onetime_init); /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */