summaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2018-06-28libmemif: fixing head/tail arithmetics & queue reallocationMilan Lenco2-11/+6
2018-06-28reassembly: optimize bihash usageKlement Sekera2-45/+38
2018-06-28ip: vectorized ip checksumDamjan Marion3-69/+147
2018-06-27vcl: refactor debuggingFlorin Coras3-1800/+756
2018-06-27Tune pool_get / pool_putDave Barach2-7/+56
2018-06-27acl: fix for loop initial declarationFlorin Coras1-1/+2
2018-06-27avf: binary API and configurable RX/TX queue sizeJakub Grajciar10-13/+580
2018-06-27gcc8 and Wstringop-truncationMarco Varlese4-9/+13
2018-06-27jvpp: cleanup generation of swap functions for custom typesMarek Gradzki1-8/+5
2018-06-27make test: easy profiling via make test PROFILE=1Klement Sekera2-2/+25
2018-06-27jvpp: add support for unions (VPP-1322)Marek Gradzki6-50/+277
2018-06-27vppinfra: add vector horizontal add and byte swap (SSE4.2 & AVX2)Damjan Marion2-0/+31
2018-06-27acl-plugin: tm: avoid hash calculation dependency on a memory store operationAndrew Yourtchenko1-1/+9
2018-06-27acl-plugin: tm: add tuplemerge algorithm for relaxing the hashtable masksAndrew Yourtchenko3-5/+625
2018-06-26tcp/session: tx optimizationsFlorin Coras4-22/+53
2018-06-26dpdk: display rx/tx burst function name in "show hardware detail"Damjan Marion1-0/+20
2018-06-26Fix load_unaligned undefined and other possible build failuresSirshak Das1-26/+40
2018-06-26Fix assert issue in ip_csum_add_even()Hongjun Ni1-1/+2
2018-06-26tcp: avoid doing work in tcp_rcv_sacks for no sacksFlorin Coras1-2/+3
2018-06-26NAT44: fix nat44_ed_not_translate_output_feature (VPP-1329)Matus Fabian2-0/+30
2018-06-26Update to latest stable DPDK release (18.02.2)Marco Varlese1-3/+3
2018-06-26node functions cannot be always_inlineDamjan Marion7-18/+18
2018-06-26We don't have (yet) 128-bit unaligned load/store on ARMDamjan Marion1-2/+2
2018-06-26add backtrace in unix_signal_handlerKingwel Xie2-30/+63
2018-06-26L3DSR fix ip checksum issue and add testHongjun Ni2-9/+18
2018-06-26acl-plugin: tm: optimize multi-lookups and prepare to add tuplemergeAndrew Yourtchenko6-252/+456
2018-06-26Add negative tests for leaking across different VRFs - ip4/6Jan Gelety2-31/+172
2018-06-26Fix api trace replay of handler to pass vm parameterJohn Lo1-2/+2
2018-06-26tcp: cleanup functionsFlorin Coras4-263/+258
2018-06-26SIMD optimized linear search in clib_bitmap_first_setDamjan Marion1-2/+23
2018-06-25Add checks for bad ARP request packets in arp-termination nodeJohn Lo1-12/+9
2018-06-25tw: add light weight timer update functionFlorin Coras6-41/+183
2018-06-25dpdk: Enhancement to call crypto start api at initializationSachin Saxena1-0/+4
2018-06-25acl-plugin: remove the noisy debug outputAndrew Yourtchenko1-1/+1
2018-06-25MAP: Move MAP-E/T to a plugin.Ole Troan27-471/+677
2018-06-25VCL: Refactor VCL test (part 1)Dave Wallace6-338/+2171
2018-06-25make test: fix RETRIES when setUpClass throwsKlement Sekera2-2/+25
2018-06-25make test: fix broken interfaces #2Klement Sekera5-86/+84
2018-06-24Revert "Revert "make test: fix broken interfaces""Klement Sekera23-86/+61
2018-06-24Revert "Revert "ipsec: VPP-1316 calculate IP/TCP/UDP inner checksums""Klement Sekera19-769/+814
2018-06-23Tx feature node, for accounting purposesDave Barach3-136/+204
2018-06-22Revert "ipsec: VPP-1316 calculate IP/TCP/UDP inner checksums"Ole Troan19-814/+769
2018-06-22Revert "make test: fix broken interfaces"Ole Troan23-61/+86
2018-06-22make test: fix broken interfacesKlement Sekera23-86/+61
2018-06-22jvpp: add support for enums (VPP-1153)Marek Gradzki5-4/+244
2018-06-22session: improve session lookup speedsFlorin Coras1-57/+24
2018-06-22jvpp: cleanup JNI generation code (VPP-1153)Marek Gradzki3-168/+286
2018-06-22Python API: Add enum and union support.Ole Troan15-1521/+680
2018-06-22Update tapv2 documentationIan Wells1-1/+1
2018-06-21test:vxlan over ipv6 testsEyal Bari6-6/+213
class="p">(ip6_punt_policer_node, ip6_punt_policer); VNET_FEATURE_INIT (ip6_punt_policer_node, static) = { .arc_name = "ip6-punt", .node_name = "ip6-punt-policer", .runs_before = VNET_FEATURES("ip6-punt-redirect") }; /* *INDENT-ON* */ static uword ip6_drop (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { if (node->flags & VLIB_NODE_FLAG_TRACE) ip6_forward_next_trace (vm, node, frame, VLIB_TX); return ip_drop_or_punt (vm, node, frame, vnet_feat_arc_ip6_drop.feature_arc_index); } static uword ip6_not_enabled (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { if (node->flags & VLIB_NODE_FLAG_TRACE) ip6_forward_next_trace (vm, node, frame, VLIB_TX); return ip_drop_or_punt (vm, node, frame, vnet_feat_arc_ip6_drop.feature_arc_index); } static uword ip6_punt (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { if (node->flags & VLIB_NODE_FLAG_TRACE) ip6_forward_next_trace (vm, node, frame, VLIB_TX); return ip_drop_or_punt (vm, node, frame, vnet_feat_arc_ip6_punt.feature_arc_index); } /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip6_drop_node, static) = { .function = ip6_drop, .name = "ip6-drop", .vector_size = sizeof (u32), .format_trace = format_ip6_forward_next_trace, .n_next_nodes = 1, .next_nodes = { [0] = "error-drop", }, }; VLIB_NODE_FUNCTION_MULTIARCH (ip6_drop_node, ip6_drop); VLIB_REGISTER_NODE (ip6_not_enabled_node, static) = { .function = ip6_not_enabled, .name = "ip6-not-enabled", .vector_size = sizeof (u32), .format_trace = format_ip6_forward_next_trace, .n_next_nodes = 1, .next_nodes = { [0] = "error-drop", }, }; VLIB_NODE_FUNCTION_MULTIARCH (ip6_not_enabled_node, ip6_not_enabled); VLIB_REGISTER_NODE (ip6_punt_node, static) = { .function = ip6_punt, .name = "ip6-punt", .vector_size = sizeof (u32), .format_trace = format_ip6_forward_next_trace, .n_next_nodes = 1, .next_nodes = { [0] = "error-punt", }, }; VLIB_NODE_FUNCTION_MULTIARCH (ip6_punt_node, ip6_punt); VNET_FEATURE_INIT (ip6_punt_end_of_arc, static) = { .arc_name = "ip6-punt", .node_name = "error-punt", .runs_before = 0, /* not before any other features */ }; VNET_FEATURE_INIT (ip6_drop_end_of_arc, static) = { .arc_name = "ip6-drop", .node_name = "error-drop", .runs_before = 0, /* not before any other features */ }; /* *INDENT-ON */ void ip6_punt_policer_add_del (u8 is_add, u32 policer_index) { ip6_punt_policer_cfg.policer_index = policer_index; vnet_feature_enable_disable ("ip6-punt", "ip6-punt-policer", 0, is_add, 0, 0); } static clib_error_t * ip6_punt_police_cmd (vlib_main_t * vm, unformat_input_t * main_input, vlib_cli_command_t * cmd) { unformat_input_t _line_input, *line_input = &_line_input; clib_error_t *error = 0; u32 policer_index; u8 is_add = 1; policer_index = ~0; if (!unformat_user (main_input, unformat_line_input, line_input)) return 0; while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { if (unformat (line_input, "%d", &policer_index)) ; else if (unformat (line_input, "del")) is_add = 0; else if (unformat (line_input, "add")) is_add = 1; else { error = unformat_parse_error (line_input); goto done; } } if (is_add && ~0 == policer_index) { error = clib_error_return (0, "expected policer index `%U'", format_unformat_error, line_input); goto done; } if (!is_add) policer_index = ~0; ip6_punt_policer_add_del(is_add, policer_index); done: unformat_free (line_input); return (error); } /*? * * @cliexpar * @cliexcmd{set ip punt policer <INDEX>} ?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (ip6_punt_policer_command, static) = { .path = "ip6 punt policer", .function = ip6_punt_police_cmd, .short_help = "ip6 punt policer [add|del] <index>", }; ip_punt_redirect_t ip6_punt_redirect_cfg = { .any_rx_sw_if_index = { .tx_sw_if_index = ~0, .adj_index = ADJ_INDEX_INVALID, }, }; /* *INDENT-ON* */ #define foreach_ip6_punt_redirect_error \ _(DROP, "ip6 punt redirect drop") typedef enum { #define _(sym,str) IP6_PUNT_REDIRECT_ERROR_##sym, foreach_ip6_punt_redirect_error #undef _ IP6_PUNT_REDIRECT_N_ERROR, } ip6_punt_redirect_error_t; static char *ip6_punt_redirect_error_strings[] = { #define _(sym,string) string, foreach_ip6_punt_redirect_error #undef _ }; static uword ip6_punt_redirect (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { return (ip_punt_redirect (vm, node, frame, vnet_feat_arc_ip6_punt.feature_arc_index, &ip6_punt_redirect_cfg)); } /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip6_punt_redirect_node, static) = { .function = ip6_punt_redirect, .name = "ip6-punt-redirect", .vector_size = sizeof (u32), .n_next_nodes = IP_PUNT_REDIRECT_N_NEXT, .format_trace = format_ip_punt_redirect_trace, .n_errors = ARRAY_LEN(ip6_punt_redirect_error_strings), .error_strings = ip6_punt_redirect_error_strings, /* edit / add dispositions here */ .next_nodes = { [IP_PUNT_REDIRECT_NEXT_DROP] = "ip6-drop", [IP_PUNT_REDIRECT_NEXT_TX] = "ip6-rewrite", [IP_PUNT_REDIRECT_NEXT_ARP] = "ip6-discover-neighbor", }, }; VLIB_NODE_FUNCTION_MULTIARCH (ip6_punt_redirect_node, ip6_punt_redirect); VNET_FEATURE_INIT (ip6_punt_redirect_node, static) = { .arc_name = "ip6-punt", .node_name = "ip6-punt-redirect", .runs_before = VNET_FEATURES("error-punt") }; /* *INDENT-ON* */ void ip6_punt_redirect_add (u32 rx_sw_if_index, u32 tx_sw_if_index, ip46_address_t * nh) { ip_punt_redirect_rx_t rx = { .tx_sw_if_index = tx_sw_if_index, .nh = *nh, }; ip_punt_redirect_add (&ip6_punt_redirect_cfg, rx_sw_if_index, &rx, FIB_PROTOCOL_IP6, VNET_LINK_IP6); vnet_feature_enable_disable ("ip6-punt", "ip6-punt-redirect", 0, 1, 0, 0); } void ip6_punt_redirect_del (u32 rx_sw_if_index) { vnet_feature_enable_disable ("ip6-punt", "ip6-punt-redirect", 0, 0, 0, 0); ip_punt_redirect_del (&ip6_punt_redirect_cfg, rx_sw_if_index); } static clib_error_t * ip6_punt_redirect_cmd (vlib_main_t * vm, unformat_input_t * main_input, vlib_cli_command_t * cmd) { unformat_input_t _line_input, *line_input = &_line_input; clib_error_t *error = 0; u32 rx_sw_if_index = 0; u32 tx_sw_if_index = 0; ip46_address_t nh; vnet_main_t *vnm; u8 is_add; is_add = 1; vnm = vnet_get_main (); if (!unformat_user (main_input, unformat_line_input, line_input)) return 0; while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { if (unformat (line_input, "del")) is_add = 0; else if (unformat (line_input, "add")) is_add = 1; else if (unformat (line_input, "rx all")) rx_sw_if_index = ~0; else if (unformat (line_input, "rx %U", unformat_vnet_sw_interface, vnm, &rx_sw_if_index)) ; else if (unformat (line_input, "via %U %U", unformat_ip6_address, &nh.ip6, unformat_vnet_sw_interface, vnm, &tx_sw_if_index)) ; else if (unformat (line_input, "via %U", unformat_vnet_sw_interface, vnm, &tx_sw_if_index)) clib_memset (&nh, 0, sizeof (nh)); else { error = unformat_parse_error (line_input); goto done; } } if (is_add) { if (rx_sw_if_index && tx_sw_if_index) { ip6_punt_redirect_add (rx_sw_if_index, tx_sw_if_index, &nh); } } else { if (rx_sw_if_index) { ip6_punt_redirect_del (rx_sw_if_index); } } done: unformat_free (line_input); return (error); } /*? * * @cliexpar * @cliexcmd{set ip punt policer <INDEX>} ?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (ip6_punt_redirect_command, static) = { .path = "ip6 punt redirect", .function = ip6_punt_redirect_cmd, .short_help = "ip6 punt redirect [add|del] rx [<interface>|all] via [<nh>] <tx_interface>", }; /* *INDENT-ON* */ ip_punt_redirect_detail_t * ip6_punt_redirect_entries (u32 sw_if_index) { ip_punt_redirect_rx_t *pr; ip_punt_redirect_detail_t *prs = 0; u32 rx_sw_if_index; vec_foreach_index (rx_sw_if_index, ip6_punt_redirect_cfg.redirect_by_rx_sw_if_index) { if (sw_if_index == ~0 || sw_if_index == rx_sw_if_index) { pr = &ip6_punt_redirect_cfg.redirect_by_rx_sw_if_index[rx_sw_if_index]; if (NULL != pr && ~0 != pr->tx_sw_if_index) { ip_punt_redirect_detail_t detail = {.rx_sw_if_index = rx_sw_if_index, .punt_redirect = *pr }; vec_add1 (prs, detail); } } } if (~0 != ip6_punt_redirect_cfg.any_rx_sw_if_index.tx_sw_if_index) { pr = &ip6_punt_redirect_cfg.any_rx_sw_if_index; if (NULL != pr) { ip_punt_redirect_detail_t detail = {.rx_sw_if_index = rx_sw_if_index, .punt_redirect = *pr }; vec_add1 (prs, detail); } } return prs; } static clib_error_t * ip6_punt_redirect_show_cmd (vlib_main_t * vm, unformat_input_t * main_input, vlib_cli_command_t * cmd) { vlib_cli_output (vm, "%U", format_ip_punt_redirect, &ip6_punt_redirect_cfg); return (NULL); } /*? * * @cliexpar * @cliexcmd{set ip punt policer <INDEX>} ?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_ip6_punt_redirect_command, static) = { .path = "show ip6 punt redirect", .function = ip6_punt_redirect_show_cmd, .short_help = "show ip6 punt redirect", .is_mp_safe = 1, }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */