aboutsummaryrefslogtreecommitdiffstats
path: root/resources
AgeCommit message (Expand)AuthorFilesLines
2018-07-18CSIT-1097: Ip6 NDRPDR and edited MRR suitesVratko Polak1-1/+8
2018-07-18CSIT-1201 Create L2patch perf testsPeter Mikus4-0/+66
2018-07-17CSIT-1186: Add srv6 NDRPDR suitesVratko Polak7-19/+360
2018-07-17Refactor DPDK testcases to new structurePeter Mikus3-21/+79
2018-07-17CSIT-1094: Change menu styleTibor Frank4-10/+67
2018-07-16CSIT-1190: Update report configuration for 18.07Tibor Frank1-7/+7
2018-07-16Add L2xc/L2bd/Ip4/Ip6 2-node tests for x710Peter Mikus5-3/+222
2018-07-13Refactor perf test casesPeter Mikus2-38/+69
2018-07-13Add stats segment heapsize to default configPeter Mikus2-0/+10
2018-07-13Update skylake tesbed inventoryPeter Mikus4-25/+25
2018-07-12FIX: PAL: input data processingTibor Frank1-0/+3
2018-07-12CSIT-1186: Consume MLRsearch in agreed upon wayVratko Polak8-3/+3
2018-07-11CSIT-1178: Prepare for bursty MRRVratko Polak3-43/+89
2018-07-11CSIT-1183: Process the new and the old TC namesTibor Frank2-2/+28
2018-07-10CSIT-1189: Add suite setup to source code documentationTibor Frank2-12/+33
2018-07-10PAL: Treat the new and the old TC namesTibor Frank1-0/+6
2018-07-10Remove THIS tag and use unix endlinesVratko Polak23-616/+616
2018-07-10CSIT-1142 2-node topology - keywords DPDKPeter Mikus1-82/+50
2018-07-09FIX: Implement changes required by Plot.ly 3.0.0Tibor Frank3-17/+6
2018-07-09CSIT-1142 2-node topology - keywordsPeter Mikus4-141/+114
2018-07-06Add Skylake optimization to ansiblePeter Mikus2-2/+41
2018-07-03VTS VXLAN vhost-user with single DUT, TG sends VXLANPeter Ginchev3-0/+228
2018-07-03CSIT-1046 Make uio driver configurable from topofilesPeter Mikus3-17/+34
2018-07-02Compatibility fixes with Ubuntu 18.04Peter Mikus3-10/+26
2018-06-29HC Tests: use vpp-fib-management module in dhcp tests (HC2VPP-348)Marek Gradzki2-7/+7
2018-06-29Add vfio-pci support on all TBPeter Mikus1-1/+5
2018-06-29CSIT-1124: Support multi-sample testsTibor Frank5-262/+231
2018-06-29SetupFramework to detect failures, part IIPeter Mikus1-10/+4
2018-06-28Jumpavg: Post 0.1.3 release editsVratko Polak1-1/+1
2018-06-28Add New Skylake topology filesPeter Mikus1-0/+37
2018-06-28FIX: SetupFramework to detect failuresPeter Mikus1-65/+57
2018-06-26Small update to PXE installation READMEPeter Mikus1-0/+4
2018-06-25Update PXE info about new Skylake machinesPeter Mikus4-35/+52
2018-06-22CSIT-1043: Execute pci rescan only if neededjuraj.linkes2-51/+27
2018-06-21HC2VPP-331: Fix Honeycomb fails to assign VRF to interfaceMichal Cmarada4-0/+208
2018-06-21CSIT-1136: Trending: Redirect "new" to the index.htmlTibor Frank19-200/+0
2018-06-21CSIT-1136: Trending: Redirect "new" to the index.htmlTibor Frank19-0/+200
2018-06-20FIX: PAL - list of failed testsTibor Frank1-11/+6
2018-06-20CSIT-1110: Replace old trending with the new oneVratko Polak28-14729/+117
2018-06-20Revert "CSIT-986: Use MLRsearch from pip"Peter Mikus8-3/+809
2018-06-19CSIT-1133: Cosmetic improvements in trending plotsTibor Frank2-17/+18
2018-06-18CSIT-986: Use MLRsearch from pipVratko Polak8-809/+3
2018-06-18CSIT-1126: Detection and reporting of failed MRR testsTibor Frank8-223/+603
2018-06-18CSIT-986: Implement proposed MDR improvementsVratko Polak7-131/+137
2018-06-18CSIT-1110: Update code after jumpavg 0.1.2 releaseTibor Frank2-2/+2
2018-06-15Update Ansible with new Skylake machinesPeter Mikus21-61/+131
2018-06-15Revert "CSIT-1110: Update code after jumpavg 0.1.2 release"Tibor Frank2-2/+2
2018-06-15CSIT-1110: Update code after jumpavg 0.1.2 releaseVratko Polak2-2/+2
2018-06-15CSIT-1110: Use jumpavg library from pipVratko Polak21-1054/+2
2018-06-15CSIT-1110: Add files for PyPI migrationVratko Polak7-1/+302
oup), igmp_resend_state_change_group_report_v3, NULL); } } int igmp_listen (vlib_main_t * vm, igmp_filter_mode_t mode, u32 sw_if_index, const ip46_address_t * saddrs, const ip46_address_t * gaddr) { const ip46_address_t *saddr; igmp_config_t *config; igmp_group_t *group; /* * RFC 3376 Section 2 " For a given combination of socket, interface, and multicast address, only a single filter mode and source list can be in effect at any one time. However, either the filter mode or the source list, or both, may be changed by subsequent IPMulticastListen requests that specify the same socket, interface, and multicast address. Each subsequent request completely replaces any earlier request for the given socket, interface and multicast address." */ int rv = 0; IGMP_DBG ("listen: (%U, %U) %U %U", format_igmp_src_addr_list, saddrs, format_igmp_key, gaddr, format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index, format_igmp_filter_mode, mode); /* * find configuration, if it dosn't exist, then this interface is * not IGMP enabled */ config = igmp_config_lookup (sw_if_index); if (!config) { rv = VNET_API_ERROR_INVALID_INTERFACE; goto error; } if (config->mode != IGMP_MODE_HOST) { rv = VNET_API_ERROR_INVALID_INTERFACE; goto error; } /* find igmp group, if it dosn't exist, create new */ group = igmp_group_lookup (config, gaddr); if (!group) { group = igmp_group_alloc (config, gaddr, mode); /* new group implies create all sources */ vec_foreach (saddr, saddrs) { igmp_group_src_update (group, saddr, IGMP_MODE_HOST); } /* * Send state changed event report for the group. * * RFC3376 Section 5.1 * "To cover the possibility of the State-Change Report being missed by * one or more multicast routers, it is retransmitted [Robustness * Variable] - 1 more times, at intervals chosen at random from the * range (0, [Unsolicited Report Interval])." */ igmp_send_state_change_group_report_v3 (config->sw_if_index, group); igmp_timer_retire (&group->timers[IGMP_GROUP_TIMER_RESEND_REPORT]); group->n_reports_sent = 1; group->timers[IGMP_GROUP_TIMER_RESEND_REPORT] = igmp_timer_schedule (igmp_timer_type_get (IGMP_TIMER_REPORT_INTERVAL), igmp_group_index (group), igmp_resend_state_change_group_report_v3, NULL); } else { IGMP_DBG ("... update (%U, %U) %U %U", format_igmp_src_addr_list, saddrs, format_igmp_key, gaddr, format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index, format_igmp_filter_mode, mode); /* * RFC 3367 Section 5.1 * * Old State New State State-Change Record Sent * --------- --------- ------------------------ * * 1) INCLUDE (A) INCLUDE (B) ALLOW (B-A), BLOCK (A-B) * 2) EXCLUDE (A) EXCLUDE (B) ALLOW (A-B), BLOCK (B-A) * 3) INCLUDE (A) EXCLUDE (B) TO_EX (B) * 4) EXCLUDE (A) INCLUDE (B) TO_IN (B) * * N.B. We do not split state-change records for pending transfer * hence there is no merge logic required. */ if (IGMP_FILTER_MODE_INCLUDE == mode) { ip46_address_t *added, *removed; igmp_pkt_build_report_t br; /* * find the list of sources that have been added and removed from * the include set */ removed = igmp_group_present_minus_new (group, IGMP_FILTER_MODE_INCLUDE, saddrs); added = igmp_group_new_minus_present (group, IGMP_FILTER_MODE_INCLUDE, saddrs); if (!(vec_len (added) || vec_len (removed))) /* no change => done */ goto error; igmp_pkt_build_report_init (&br, config->sw_if_index); if (vec_len (added)) { igmp_pkt_report_v3_add_report (&br, group->key, added, IGMP_MEMBERSHIP_GROUP_allow_new_sources); } if (vec_len (removed)) { igmp_pkt_report_v3_add_report (&br, group->key, removed, IGMP_MEMBERSHIP_GROUP_block_old_sources); } IGMP_DBG ("... added %U", format_igmp_src_addr_list, added); IGMP_DBG ("... removed %U", format_igmp_src_addr_list, removed); igmp_pkt_report_v3_send (&br); /* * clear the group of the old sources and populate it with the new * set requested */ igmp_group_free_all_srcs (group); vec_foreach (saddr, saddrs) { igmp_group_src_update (group, saddr, IGMP_MODE_HOST); } if (0 == igmp_group_n_srcs (group, mode)) igmp_group_clear (group); vec_free (added); vec_free (removed); } else { /* * The control plane is excluding some sources. * - First; check for those that are present in the include list * - Second; check add them to the exlude list * * TODO */ } } error: return (rv); } /** \brief igmp hardware interface link up down @param vnm - vnet main @param hw_if_index - interface hw_if_index @param flags - hw interface flags If an interface goes down, remove its (S,G)s. */ static walk_rc_t igmp_sw_if_down (vnet_main_t * vnm, u32 sw_if_index, void *ctx) { igmp_config_t *config; config = igmp_config_lookup (sw_if_index); IGMP_DBG ("down: %U", format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index); if (NULL != config) { igmp_clear_config (config); } return (WALK_CONTINUE); } static clib_error_t * igmp_hw_interface_link_up_down (vnet_main_t * vnm, u32 hw_if_index, u32 flags) { clib_error_t *error = NULL; /* remove igmp state from down interfaces */ if (!(flags & VNET_HW_INTERFACE_FLAG_LINK_UP)) vnet_hw_interface_walk_sw (vnm, hw_if_index, igmp_sw_if_down, NULL); return error; } VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION (igmp_hw_interface_link_up_down); int igmp_enable_disable (u32 sw_if_index, u8 enable, igmp_mode_t mode) { igmp_config_t *config; igmp_main_t *im = &igmp_main; u32 mfib_index; IGMP_DBG ("%s: %U", (enable ? "Enabled" : "Disabled"), format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index); /* *INDENT-OFF* */ fib_route_path_t for_us_path = { .frp_proto = fib_proto_to_dpo (FIB_PROTOCOL_IP4), .frp_addr = zero_addr, .frp_sw_if_index = 0xffffffff, .frp_fib_index = 0, .frp_weight = 1, .frp_flags = FIB_ROUTE_PATH_LOCAL, }; fib_route_path_t via_itf_path = { .frp_proto = fib_proto_to_dpo (FIB_PROTOCOL_IP4), .frp_addr = zero_addr, .frp_sw_if_index = sw_if_index, .frp_fib_index = 0, .frp_weight = 1, }; /* *INDENT-ON* */ /* find configuration, if it dosn't exist, create new */ config = igmp_config_lookup (sw_if_index); mfib_index = mfib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP4, sw_if_index); if (!config && enable) { u32 ii; vec_validate_init_empty (im->igmp_config_by_sw_if_index, sw_if_index, ~0); pool_get (im->configs, config); memset (config, 0, sizeof (igmp_config_t)); config->sw_if_index = sw_if_index; config->igmp_group_by_key = hash_create_mem (0, sizeof (igmp_key_t), sizeof (uword)); config->robustness_var = IGMP_DEFAULT_ROBUSTNESS_VARIABLE; config->mode = mode; for (ii = 0; ii < IGMP_CONFIG_N_TIMERS; ii++) config->timers[ii] = IGMP_TIMER_ID_INVALID; if (IGMP_MODE_ROUTER == mode) { config->timers[IGMP_CONFIG_TIMER_GENERAL_QUERY] = igmp_timer_schedule (igmp_timer_type_get (IGMP_TIMER_QUERY), igmp_config_index (config), igmp_send_general_query, NULL); } config->adj_index = adj_mcast_add_or_lock (FIB_PROTOCOL_IP4, VNET_LINK_IP4, config->sw_if_index); im->igmp_config_by_sw_if_index[config->sw_if_index] = (config - im->configs); { vec_validate (im->n_configs_per_mfib_index, mfib_index); im->n_configs_per_mfib_index[mfib_index]++; if (1 == im->n_configs_per_mfib_index[mfib_index]) { /* first config in this FIB */ mfib_table_entry_path_update (mfib_index, &mpfx_general_query, MFIB_SOURCE_IGMP, &for_us_path, MFIB_ITF_FLAG_FORWARD); mfib_table_entry_path_update (mfib_index, &mpfx_report, MFIB_SOURCE_IGMP, &for_us_path, MFIB_ITF_FLAG_FORWARD); } mfib_table_entry_path_update (mfib_index, &mpfx_general_query, MFIB_SOURCE_IGMP, &via_itf_path, MFIB_ITF_FLAG_ACCEPT); mfib_table_entry_path_update (mfib_index, &mpfx_report, MFIB_SOURCE_IGMP, &via_itf_path, MFIB_ITF_FLAG_ACCEPT); } } else if (config && !enable) { vec_validate (im->n_configs_per_mfib_index, mfib_index); im->n_configs_per_mfib_index[mfib_index]--; if (0 == im->n_configs_per_mfib_index[mfib_index]) { /* last config in this FIB */ mfib_table_entry_path_remove (mfib_index, &mpfx_general_query, MFIB_SOURCE_IGMP, &for_us_path); mfib_table_entry_path_remove (mfib_index, &mpfx_report, MFIB_SOURCE_IGMP, &for_us_path); } mfib_table_entry_path_remove (mfib_index, &mpfx_general_query, MFIB_SOURCE_IGMP, &via_itf_path); mfib_table_entry_path_remove (mfib_index, &mpfx_report, MFIB_SOURCE_IGMP, &via_itf_path); igmp_clear_config (config); im->igmp_config_by_sw_if_index[config->sw_if_index] = ~0; hash_free (config->igmp_group_by_key); pool_put (im->configs, config); } return (0); } /** \brief igmp initialization @param vm - vlib main initialize igmp plugin. Initialize igmp_main, set mfib to allow igmp traffic. */ static clib_error_t * igmp_init (vlib_main_t * vm) { clib_error_t *error; igmp_main_t *im = &igmp_main; if ((error = vlib_call_init_function (vm, ip4_lookup_init))) return error; im->igmp_api_client_by_client_index = hash_create (0, sizeof (u32)); im->logger = vlib_log_register_class ("igmp", 0); IGMP_DBG ("initialized"); return (error); } VLIB_INIT_FUNCTION (igmp_init); /* *INDENT-OFF* */ VLIB_PLUGIN_REGISTER () = { .version = VPP_BUILD_VER, .description = "IGMP messaging", }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */