summaryrefslogtreecommitdiffstats
path: root/build-data/packages
AgeCommit message (Expand)AuthorFilesLines
2019-03-01dpdk: update mlx[45] linking optionsMatthew Smith1-3/+3
2019-02-19VPP-1504: Remove JVPPMichal Cmarada1-44/+0
2019-02-14deb-pkg: Add libvom package supportMohsin Kazmi1-0/+4
2019-01-20Rework of debian packagingDamjan Marion1-0/+7
2018-12-17Added CMake building system for libmemifmsardara1-1/+38
2018-11-13japi: Move Java API binding to cmakeMohsin Kazmi1-2/+40
2018-09-27Revert "japi: Move Java API binding to cmake"Damjan Marion1-40/+2
2018-09-27dpdk_plugin: fix mlx5 build and runtime issuesSirshak Das1-0/+5
2018-09-26japi: Move Java API binding to cmakeMohsin Kazmi1-2/+40
2018-09-25Enable verbose output during VPP cmake compilingLijian Zhang1-0/+3
2018-09-21add: nasm and ipsec-mb into vpp-ext-deps packagingDamjan Marion1-2/+2
2018-09-20rename vpp-dpdk-dev to vpp-ext-depsDamjan Marion3-5/+23
2018-09-12cmake: create cmake VPP module, update sample-plugin so it uses itDamjan Marion1-0/+26
2018-09-12Always use 'lib' instead of 'lib64'Damjan Marion2-6/+2
2018-09-10cmake VOM: j factor chosen based on number of coresNeale Ranns1-1/+2
2018-09-09cmake: Move VOM to cmakeMohsin Kazmi1-2/+39
2018-09-07post move-to-cmake cleanupDamjan Marion3-47/+0
2018-09-02Switch to cmakeDamjan Marion1-40/+0
2018-09-01cmake: pass linker flags, use devtoolset on centos 7Damjan Marion1-8/+21
2018-08-17CMake as an alternative to autotools (experimental)Damjan Marion1-0/+16
2018-08-01Move java api to extras/Damjan Marion1-0/+6
2018-07-27-DCLIB_DEBUG => turn on extra checks in dlmallocDave Barach1-1/+2
2018-05-12dpdk: Add build related keywords for failsafe PMDRui Cai2-0/+8
2018-04-27Move VOM to extras/vomDamjan Marion1-0/+6
2018-03-28Build libmemif as part of verify jobDamjan Marion2-0/+4
2018-03-15use system provided ccache linksDamjan Marion1-0/+1
2018-03-12License text cleanupDave Barach8-0/+101
2017-09-01The build system still builds the DPDK plugin when the optionMarco Varlese1-0/+2
2017-08-14dpdk: cleanup unused build option *_uses_dpdk_cryptodev_swSergio Gonzalez Monroy2-8/+0
2017-05-03Fix vnet unit testsFilip Tehlar1-0/+4
2017-04-20Extend ebuild to specify "configure" subdir, enable verify for sample-pluginDamjan Marion1-0/+5
2017-02-07Multiple platofrm support for dpdk/Makefile, fix optimizationsDamjan Marion1-12/+0
2017-01-27dpdk: rework cryptodev ipsec build and setupSergio Gonzalez Monroy2-5/+5
2017-01-20Add dpdk development packagingDamjan Marion2-4/+5
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion3-90/+0
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion18-297/+18
2016-12-26dpdk: Add support for Mellanox ConnectX-4 devicesDamjan Marion3-0/+11
2016-12-06Add "vpp-api-install" to plugins_configure_depend in build-data/packages/plug...Andrew Yourtchenko1-1/+2
2016-11-30Enabling AES-GCM-128 with 16B ICV supportRadu Nicolau1-0/+4
2016-11-28dpdk: add ipsec cryptodev supportSergio Gonzalez Monroy3-0/+10
2016-10-10HONEYCOMB-228 Snat plugin jvpp supportMarek Gradzki1-1/+2
2016-06-22Fix for build failure due to iOAM plugin header file pathShwetha1-0/+5
2016-06-156rd: Move to pluginOle Troan1-0/+38
2016-06-05VPP-94: Add build-data directory for plugins and Makefile targetPierre Pfister1-47/+0
2016-05-27Fix dpdk march/mtune defaultsDamjan Marion1-1/+1
2016-05-20VPP-79: fix cross-compilation build breakDave Barach1-3/+3
2016-05-19Add support for multiple microarchitectures in single binaryDamjan Marion1-0/+6
2016-05-17dpdk/Makefile - Allow dpdk target to be set according to the platformChristophe Fontaine1-0/+10
2016-04-28VPP-8: Set java-8 for JNIMarek Gradzki1-1/+1
2016-04-20Python-API: Inital commit of Python bindings for the VPP API.Ole Troan1-4/+4
s="o">->partner_port_number = sif->partner.port_number; lacpif->partner_state = sif->partner.state; lacpif->rx_state = sif->rx_state; lacpif->tx_state = sif->tx_state; lacpif->ptx_state = sif->ptx_state; lacpif->mux_state = sif->mux_state; ); /* *INDENT-ON* */ *out_lacpifs = r_lacpifs; return 0; } static void show_lacp (vlib_main_t * vm, u32 * sw_if_indices) { int i; slave_if_t *sif; bond_if_t *bif; if (!sw_if_indices) return; vlib_cli_output (vm, "%-55s %-32s %-32s", " ", "actor state", "partner state"); vlib_cli_output (vm, "%-25s %-12s %-16s %-31s %-31s", "interface name", "sw_if_index", "bond interface", "exp/def/dis/col/syn/agg/tim/act", "exp/def/dis/col/syn/agg/tim/act"); for (i = 0; i < vec_len (sw_if_indices); i++) { sif = bond_get_slave_by_sw_if_index (sw_if_indices[i]); if (!sif || (sif->lacp_enabled == 0)) continue; bif = bond_get_master_by_dev_instance (sif->bif_dev_instance); vlib_cli_output (vm, "%-25U %-12d %-16U %3x %3x %3x %3x %3x %3x %3x %3x " "%4x %3x %3x %3x %3x %3x %3x %3x", format_vnet_sw_if_index_name, vnet_get_main (), sif->sw_if_index, sif->sw_if_index, format_vnet_sw_if_index_name, vnet_get_main (), bif->sw_if_index, lacp_bit_test (sif->actor.state, 7), lacp_bit_test (sif->actor.state, 6), lacp_bit_test (sif->actor.state, 5), lacp_bit_test (sif->actor.state, 4), lacp_bit_test (sif->actor.state, 3), lacp_bit_test (sif->actor.state, 2), lacp_bit_test (sif->actor.state, 1), lacp_bit_test (sif->actor.state, 0), lacp_bit_test (sif->partner.state, 7), lacp_bit_test (sif->partner.state, 6), lacp_bit_test (sif->partner.state, 5), lacp_bit_test (sif->partner.state, 4), lacp_bit_test (sif->partner.state, 3), lacp_bit_test (sif->partner.state, 2), lacp_bit_test (sif->partner.state, 1), lacp_bit_test (sif->partner.state, 0)); vlib_cli_output (vm, " LAG ID: " "[(%04x,%02x-%02x-%02x-%02x-%02x-%02x,%04x,%04x,%04x), " "(%04x,%02x-%02x-%02x-%02x-%02x-%02x,%04x,%04x,%04x)]", ntohs (sif->actor.system_priority), sif->actor.system[0], sif->actor.system[1], sif->actor.system[2], sif->actor.system[3], sif->actor.system[4], sif->actor.system[5], ntohs (sif->actor.key), ntohs (sif->actor.port_priority), ntohs (sif->actor.port_number), ntohs (sif->partner.system_priority), sif->partner.system[0], sif->partner.system[1], sif->partner.system[2], sif->partner.system[3], sif->partner.system[4], sif->partner.system[5], ntohs (sif->partner.key), ntohs (sif->partner.port_priority), ntohs (sif->partner.port_number)); vlib_cli_output (vm, " RX-state: %U, TX-state: %U, " "MUX-state: %U, PTX-state: %U", format_rx_sm_state, sif->rx_state, format_tx_sm_state, sif->tx_state, format_mux_sm_state, sif->mux_state, format_ptx_sm_state, sif->ptx_state); } } static void show_lacp_details (vlib_main_t * vm, u32 * sw_if_indices) { lacp_main_t *lm = &lacp_main; slave_if_t *sif; lacp_state_struct *state_entry; int i; f64 now; vlib_cli_output (vm, "Number of interfaces: %d", lm->lacp_int); if (!sw_if_indices) return; now = vlib_time_now (vm); for (i = 0; i < vec_len (sw_if_indices); i++) { sif = bond_get_slave_by_sw_if_index (sw_if_indices[i]); if (!sif || (sif->lacp_enabled == 0)) continue; vlib_cli_output (vm, " %U", format_vnet_sw_if_index_name, vnet_get_main (), sif->sw_if_index); vlib_cli_output (vm, " Good LACP PDUs received: %llu", sif->pdu_received); vlib_cli_output (vm, " Bad LACP PDUs received: %llu", sif->bad_pdu_received); vlib_cli_output (vm, " LACP PDUs sent: %llu", sif->pdu_sent); if (lacp_timer_is_running (sif->last_lacpdu_recd_time)) vlib_cli_output (vm, " last LACP PDU received: %10.2f seconds ago", now - sif->last_lacpdu_recd_time); if (lacp_timer_is_running (sif->last_lacpdu_sent_time)) vlib_cli_output (vm, " last LACP PDU sent: %10.2f seconds ago", now - sif->last_lacpdu_sent_time); vlib_cli_output (vm, " Good Marker PDUs received: %llu", sif->marker_pdu_received); vlib_cli_output (vm, " Bad Marker PDUs received: %llu", sif->marker_bad_pdu_received); if (lacp_timer_is_running (sif->last_marker_pdu_recd_time)) vlib_cli_output (vm, " last Marker PDU received: %10.2f seconds ago", now - sif->last_marker_pdu_recd_time); if (lacp_timer_is_running (sif->last_marker_pdu_sent_time)) vlib_cli_output (vm, " last Marker PDU sent: %10.2f seconds ago", now - sif->last_marker_pdu_sent_time); vlib_cli_output (vm, " debug: %d", sif->debug); vlib_cli_output (vm, " loopback port: %d", sif->loopback_port); vlib_cli_output (vm, " port_enabled: %d", sif->port_enabled); vlib_cli_output (vm, " port moved: %d", sif->port_moved); vlib_cli_output (vm, " ready_n: %d", sif->ready_n); vlib_cli_output (vm, " ready: %d", sif->ready); vlib_cli_output (vm, " Actor"); vlib_cli_output (vm, " system: %U", format_ethernet_address, sif->actor.system); vlib_cli_output (vm, " system priority: %u", ntohs (sif->actor.system_priority)); vlib_cli_output (vm, " key: %u", ntohs (sif->actor.key)); vlib_cli_output (vm, " port priority: %u", ntohs (sif->actor.port_priority)); vlib_cli_output (vm, " port number: %u", ntohs (sif->actor.port_number)); vlib_cli_output (vm, " state: 0x%x", sif->actor.state); state_entry = (lacp_state_struct *) & lacp_state_array; while (state_entry->str) { if (sif->actor.state & (1 << state_entry->bit)) vlib_cli_output (vm, " %s (%d)", state_entry->str, state_entry->bit); state_entry++; } vlib_cli_output (vm, " Partner"); vlib_cli_output (vm, " system: %U", format_ethernet_address, sif->partner.system); vlib_cli_output (vm, " system priority: %u", ntohs (sif->partner.system_priority)); vlib_cli_output (vm, " key: %u", ntohs (sif->partner.key)); vlib_cli_output (vm, " port priority: %u", ntohs (sif->partner.port_priority)); vlib_cli_output (vm, " port number: %u", ntohs (sif->partner.port_number)); vlib_cli_output (vm, " state: 0x%x", sif->partner.state); state_entry = (lacp_state_struct *) & lacp_state_array; while (state_entry->str) { if (sif->partner.state & (1 << state_entry->bit)) vlib_cli_output (vm, " %s (%d)", state_entry->str, state_entry->bit); state_entry++; } if (!lacp_timer_is_running (sif->wait_while_timer)) vlib_cli_output (vm, " wait while timer: not running"); else vlib_cli_output (vm, " wait while timer: %10.2f seconds", sif->wait_while_timer - now); if (!lacp_timer_is_running (sif->current_while_timer)) vlib_cli_output (vm, " current while timer: not running"); else vlib_cli_output (vm, " current while timer: %10.2f seconds", sif->current_while_timer - now); if (!lacp_timer_is_running (sif->periodic_timer)) vlib_cli_output (vm, " periodic timer: not running"); else vlib_cli_output (vm, " periodic timer: %10.2f seconds", sif->periodic_timer - now); vlib_cli_output (vm, " RX-state: %U", format_rx_sm_state, sif->rx_state); vlib_cli_output (vm, " TX-state: %U", format_tx_sm_state, sif->tx_state); vlib_cli_output (vm, " MUX-state: %U", format_mux_sm_state, sif->mux_state); vlib_cli_output (vm, " PTX-state: %U", format_ptx_sm_state, sif->ptx_state); vlib_cli_output (vm, "\n"); } } static clib_error_t * show_lacp_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { bond_main_t *bm = &bond_main; vnet_main_t *vnm = &vnet_main; slave_if_t *sif; clib_error_t *error = 0; u8 details = 0; u32 sw_if_index, *sw_if_indices = 0; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "%U", unformat_vnet_sw_interface, vnm, &sw_if_index)) { sif = bond_get_slave_by_sw_if_index (sw_if_index); if (!sif) { error = clib_error_return (0, "interface is not enslaved"); goto done; } vec_add1 (sw_if_indices, sif->sw_if_index); } else if (unformat (input, "details")) details = 1; else { error = clib_error_return (0, "unknown input `%U'", format_unformat_error, input); goto done; } } if (vec_len (sw_if_indices) == 0) { pool_foreach (sif, bm->neighbors, vec_add1 (sw_if_indices, sif->sw_if_index); ); } if (details) show_lacp_details (vm, sw_if_indices); else show_lacp (vm, sw_if_indices); done: vec_free (sw_if_indices); return error; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_lacp_command, static) = { .path = "show lacp", .short_help = "show lacp [<interface>] [details]", .function = show_lacp_fn, .is_mp_safe = 1, }; /* *INDENT-ON* */ static clib_error_t * debug_lacp_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { unformat_input_t _line_input, *line_input = &_line_input; clib_error_t *error = NULL; lacp_main_t *lm = &lacp_main; u8 onoff = 0; u8 input_found = 0; u32 sw_if_index = ~0; slave_if_t *sif; vnet_main_t *vnm = vnet_get_main (); /* Get a line of input. */ if (!unformat_user (input, unformat_line_input, line_input)) return clib_error_return (0, "missing argument"); while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { if (unformat (line_input, "%U", unformat_vnet_sw_interface, vnm, &sw_if_index)) ; if (input_found) { error = clib_error_return (0, "unknown input `%U'", format_unformat_error, line_input); goto done; } else if (unformat (line_input, "on")) { input_found = 1; onoff = 1; } else if (unformat (line_input, "off")) { input_found = 1; onoff = 0; } else { error = clib_error_return (0, "unknown input `%U'", format_unformat_error, line_input); goto done; } } if (!input_found) return clib_error_return (0, "must specify on or off"); if (sw_if_index != ~0) { sif = bond_get_slave_by_sw_if_index (sw_if_index); if (!sif) return (clib_error_return (0, "Please enslave the interface first")); sif->debug = onoff; } else lm->debug = onoff; done: unformat_free (line_input); return error; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (debug_lacp_command, static) = { .path = "debug lacp", .short_help = "debug lacp <interface> <on | off>", .function = debug_lacp_command_fn, }; /* *INDENT-ON* */ clib_error_t * lacp_cli_init (vlib_main_t * vm) { lacp_main_t *lm = &lacp_main; lm->vlib_main = vm; lm->vnet_main = vnet_get_main (); return 0; } VLIB_INIT_FUNCTION (lacp_cli_init); /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */