aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_forward.c
AgeCommit message (Expand)AuthorFilesLines
2021-11-10ip: always set ip rx_sw_if_indexFlorin Coras1-3/+5
2021-10-21ip: Add ip46-local node for local swif[rx]Nathan Skrzypczak1-21/+60
2021-09-24ip: set error number on failed intf addrMatthew Smith1-1/+4
2021-09-16vxlan: improve to use the hardware offloadMohsin Kazmi1-1/+2
2021-09-13interface: fix init fib_index_by_sw_if_indexNathan Skrzypczak1-8/+9
2021-08-14ip: Fix crash in ip address add on sub-int without exact-matchPim van Pelt1-6/+3
2021-08-10ip: Use the IP4 lookup functionsNeale Ranns1-27/+5
2021-08-10ip: Remove the 'test lookup' CLI commandNeale Ranns1-97/+0
2021-07-15misc: replace CLIB_PREFETCH with clib_prefetch_{load,store}Damjan Marion1-6/+6
2021-06-07pg: Reduce the inclusion of pg.hNeale Ranns1-0/+1
2021-05-05vlib: move offload flags to 1st cacheline in vlib_buffer_tMohsin Kazmi1-2/+2
2021-04-22ip: remove unnecesary inlining in ip4-rewrite nodeDamjan Marion1-16/+3
2021-02-15vlib: refactor checksum offload supportMohsin Kazmi1-4/+5
2021-01-21ip: use IPv6 flowlabel in flow hash computationAhmed Abdelsalam1-21/+7
2020-12-14misc: move to new pool_foreach macrosDamjan Marion1-3/+3
2020-12-11ip: ip4 rewrite prefetch optimizationPiotrX Kleski1-2/+5
2020-12-08fib: Adjacency flag for midchain to perfom flow hash (on inner packet)Neale Ranns1-4/+4
2020-12-08fib: Source Address SelectionNeale Ranns1-89/+49
2020-09-23ip: use main heap for mtrie, part 2 (remove args)Damjan Marion1-26/+0
2020-09-01ip: fix ip zero checksum verificationBenoƮt Ganne1-2/+2
2020-06-12ip: allocate ip4 mtrie pages in htlb memoryDave Barach1-0/+3
2020-06-08vxlan: Fixed checksum caclculation offsetVladimir Isaev1-8/+4
2020-05-27ethernet: fix DMAC check and skip unnecessary ones (VPP-1868)John Lo1-0/+7
2020-05-21ip: Dual loop error in midchain chksumNeale Ranns1-1/+1
2020-05-14ip: fix interface ip address del sw_if_index checkyedg1-1/+4
2020-05-04fib: midchain adjacency optimisationsNeale Ranns1-31/+55
2020-04-23ip: Replace Sematics for Interface IP addressesNeale Ranns1-15/+80
2020-04-15misc: refactor calc_checksumsDave Barach1-4/+12
2020-04-14urpf: Unicast reverse Path Forwarding (plugin)Neale Ranns1-14/+0
2020-04-08ip: do not clear the locally-originated flagNeale Ranns1-8/+2
2020-03-17fib: Always install all routers mcast addressesNeale Ranns1-0/+3
2020-02-11ip: fix ip-local errorsFlorin Coras1-1/+3
2020-01-14classify: Reduce the include dependencies on vnet_classify.hNeale Ranns1-0/+1
2020-01-11ip: avoid fib lookup for consecutive pkts having same source IPNitin Saxena1-5/+5
2019-12-17ip: Protocol Independent IP NeighborsNeale Ranns1-343/+0
2019-12-04gso: remove the interface countMohsin Kazmi1-15/+7
2019-12-03fib: constify the adjacency in the rewrite nodesNeale Ranns1-1/+1
2019-11-11ip: functional interface to ip fragmentationOle Troan1-8/+8
2019-11-05ip: Fragmentation fixesNeale Ranns1-96/+121
2019-10-10tcp: custom checksum calculations for Ipv4/Ipv6Srikanth A1-43/+3
2019-09-25ip: refactor reassemblyKlement Sekera1-1/+1
2019-09-16api: autogenerate api trace print/endianOle Troan1-1/+3
2019-09-11ip: apply dual loop unrolling in ip4_rewriteLijian.Zhang1-0/+131
2019-09-07ip: fix udp/tcp checksum corner casesDave Barach1-3/+15
2019-08-19ip: leverage existing vlib_buffer_advanceZhiyong Yang1-6/+3
2019-08-12ip: allow addrs from the same prefix on intfMatthew Smith1-79/+234
2019-08-03ip: fix ip6/udp checksum for pkts using buffer chainingJohn Lo1-0/+3
2019-07-19ip: admin change affects intf IPv4 addr routesMatthew G Smith1-7/+53
2019-07-08ip: retain local interface address adjacencyMatthew Smith1-6/+24
2019-06-28ip: ip-lookup - remove the dead codeNeale Ranns1-4/+1
span>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: */