summaryrefslogtreecommitdiffstats
path: root/src/plugins/quic
AgeCommit message (Expand)AuthorFilesLines
2019-10-09hsa: use crypto_engine_type_t for TLSNathan Skrzypczak1-1/+1
2019-10-09session: Add certificate storeNathan Skrzypczak2-10/+11
2019-10-09hsa: fix vpp_echo session closeDave Wallace1-37/+47
2019-10-08hsa: make vpp_echo use mq instead of bapiNathan Skrzypczak2-7/+1
2019-10-08session: add is_migrating flagNathan Skrzypczak2-49/+38
2019-10-07quic: fix wrong condition in update_fifo_sizeMathiasRaoul1-1/+1
2019-10-07quic: Refactor naming & clibsNathan Skrzypczak2-277/+209
2019-10-04quic: make quic fifo size configurable via cliMathiasRaoul2-6/+83
2019-10-04quic: update quicly to v0.0.5MathiasRaoul1-49/+12
2019-10-01quic: Create custom event loggerMathiasRaoul1-2/+39
2019-10-01quic: Add Tx, Rx and packet drop countersMathiasRaoul3-0/+66
2019-10-01quic: add cli command for statsMathiasRaoul1-0/+47
2019-09-27tests: add quic plugin qclose/sclose testsDave Wallace1-25/+197
2019-09-18quic : refactor function namingMathiasRaoul3-56/+51
2019-09-12quic: fix use-after-freeBenoît Ganne1-1/+6
2019-09-11quic: fix non-null terminated hostname stringBenoît Ganne1-9/+5
2019-09-06quic: fix server opening stream immediatelyAloys Augustin2-4/+19
2019-09-02quic: disable quic plugin by defaultAloys Augustin2-0/+5
2019-08-28quic: enable stable quic testsDave Wallace1-5/+0
2019-08-22tests: move plugin tests to src/plugins/*/testDave Wallace1-0/+248
2019-08-19quic: fix rx_callback refactoringNathan Skrzypczak1-1/+1
2019-08-16quic: quic_app_rx_callback refactor.Mathias Raoul1-117/+167
2019-08-09quic: handle session migration notificationsAloys Augustin1-63/+38
2019-08-06quic: Add missing session_migrate_callbackNathan Skrzypczak1-0/+7
2019-08-05docs: Add more quic plugin documentationNathan Skrzypczak2-38/+127
2019-08-05quic: fix memset 0 picotls depends onNathan Skrzypczak1-0/+1
2019-08-02quic: Improve quic echo connect threadingNathan Skrzypczak1-7/+8
2019-08-02quic: fix connection move with multiple workersAloys Augustin1-13/+35
2019-08-01quic: Improve quicly_ctx handling & crypto ctxNathan Skrzypczak2-135/+148
2019-07-30quic: fix cert loadingNathan Skrzypczak3-12/+17
2019-07-30quic: cleanup and refactorisationAloys Augustin7-525/+634
2019-07-26session tcp: handle rxt and acks as custom eventsFlorin Coras1-1/+1
2019-07-23quic: Refactor connections closing and deletionAloys Augustin2-21/+81
2019-07-22quic: update quicly libraryAloys Augustin1-4/+4
2019-07-19session: Use parent_handle instead of transport_optsNathan Skrzypczak1-11/+13
2019-07-17quic: Add back stream connect conditionNathan Skrzypczak1-1/+1
2019-07-15quic: integrate vpp crypto api for quic packets encryptionMathias Raoul4-0/+403
2019-07-12quic: fix show session verboseAloys Augustin1-29/+23
2019-07-12tls quic: reduce default segment sizesAloys Augustin1-2/+2
2019-07-12session: add thread index to all formattersAloys Augustin1-2/+4
2019-07-09quic: echo thread can handle multiple sessionsNathan Skrzypczak1-1/+11
2019-07-09quic: fix passive disconnect handling & refactorNathan Skrzypczak2-532/+727
2019-07-03quic: fifo notifications fixAloys Augustin1-0/+5
2019-06-29svm: rename fifo tx notifications to reflect useFlorin Coras1-7/+7
2019-06-28quic : Use TX event for app read notificationNathan Skrzypczak2-58/+103
2019-06-27session: Add transport vft protocol optionsNathan Skrzypczak1-2/+4
2019-06-24quic: server create streams test caseDave Wallace1-1/+1
2019-06-20quic: remove session flags identifying Q/S sessionsNathan Skrzypczak1-8/+3
2019-06-18quic: fix handling of stream reset & closeNathan Skrzypczak2-36/+65
2019-06-17session: use listener_handle instead of listener_indexNathan Skrzypczak2-26/+10
s="kt">int verbose = va_arg (*args, int); u32 indent; if (!hi) return format (s, "%=32s%=6s%=8s%s", "Name", "Idx", "Link", "Hardware"); indent = format_get_indent (s); s = format (s, "%-32v%=6d", hi->name, hi->hw_if_index); if (hi->bond_info == VNET_HW_INTERFACE_BOND_INFO_SLAVE) s = format (s, "%=8s", "slave"); else s = format (s, "%=8s", hi->flags & VNET_HW_INTERFACE_FLAG_LINK_UP ? "up" : "down"); hw_class = vnet_get_hw_interface_class (vnm, hi->hw_class_index); dev_class = vnet_get_device_class (vnm, hi->dev_class_index); if (hi->bond_info && (hi->bond_info != VNET_HW_INTERFACE_BOND_INFO_SLAVE)) { int hw_idx; s = format (s, "Slave-Idx:"); clib_bitmap_foreach (hw_idx, hi->bond_info, s = format (s, " %d", hw_idx)); } else if (dev_class->format_device_name) s = format (s, "%U", dev_class->format_device_name, hi->dev_instance); else s = format (s, "%s%d", dev_class->name, hi->dev_instance); if (verbose) { if (hw_class->format_device) s = format (s, "\n%U%U", format_white_space, indent + 2, hw_class->format_device, hi->hw_if_index, verbose); else { s = format (s, "\n%U%s", format_white_space, indent + 2, hw_class->name); if (hw_class->format_address && vec_len (hi->hw_address) > 0) s = format (s, " address %U", hw_class->format_address, hi->hw_address); } if (dev_class->format_device) s = format (s, "\n%U%U", format_white_space, indent + 2, dev_class->format_device, hi->dev_instance, verbose); } return s; } u8 * format_vnet_sw_interface_name (u8 * s, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); vnet_sw_interface_t *si = va_arg (*args, vnet_sw_interface_t *); vnet_sw_interface_t *si_sup = vnet_get_sup_sw_interface (vnm, si->sw_if_index); vnet_hw_interface_t *hi_sup; ASSERT (si_sup->type == VNET_SW_INTERFACE_TYPE_HARDWARE); hi_sup = vnet_get_hw_interface (vnm, si_sup->hw_if_index); s = format (s, "%v", hi_sup->name); if (si->type != VNET_SW_INTERFACE_TYPE_HARDWARE) s = format (s, ".%d", si->sub.id); return s; } u8 * format_vnet_sw_if_index_name (u8 * s, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); u32 sw_if_index = va_arg (*args, u32); vnet_sw_interface_t *si; si = vnet_get_sw_interface_safe (vnm, sw_if_index); if (NULL == si) { return format (s, "DELETED"); } return format (s, "%U", format_vnet_sw_interface_name, vnm, si); } u8 * format_vnet_sw_interface_cntrs (u8 * s, vnet_interface_main_t * im, vnet_sw_interface_t * si) { u32 indent, n_printed; int i, j, n_counters; static vnet_main_t **my_vnet_mains; vec_reset_length (my_vnet_mains); indent = format_get_indent (s); n_printed = 0; { vlib_combined_counter_main_t *cm; vlib_counter_t v, vtotal; u8 *n = 0; for (i = 0; i < vec_len (vnet_mains); i++) { if (vnet_mains[i]) vec_add1 (my_vnet_mains, vnet_mains[i]); } if (vec_len (my_vnet_mains) == 0) vec_add1 (my_vnet_mains, &vnet_main); /* Each vnet_main_t has its own copy of the interface counters */ n_counters = vec_len (im->combined_sw_if_counters); /* rx, tx counters... */ for (j = 0; j < n_counters; j++) { vtotal.packets = 0; vtotal.bytes = 0; for (i = 0; i < vec_len (my_vnet_mains); i++) { im = &my_vnet_mains[i]->interface_main; cm = im->combined_sw_if_counters + j; vlib_get_combined_counter (cm, si->sw_if_index, &v); vtotal.packets += v.packets; vtotal.bytes += v.bytes; } /* Only display non-zero counters. */ if (vtotal.packets == 0) continue; if (n_printed > 0) s = format (s, "\n%U", format_white_space, indent); n_printed += 2; if (n) _vec_len (n) = 0; n = format (n, "%s packets", cm->name); s = format (s, "%-16v%16Ld", n, vtotal.packets); _vec_len (n) = 0; n = format (n, "%s bytes", cm->name); s = format (s, "\n%U%-16v%16Ld", format_white_space, indent, n, vtotal.bytes); } vec_free (n); } { vlib_simple_counter_main_t *cm; u64 v, vtotal; n_counters = vec_len (im->sw_if_counters); for (j = 0; j < n_counters; j++) { vtotal = 0; for (i = 0; i < vec_len (my_vnet_mains); i++) { im = &my_vnet_mains[i]->interface_main; cm = im->sw_if_counters + j; v = vlib_get_simple_counter (cm, si->sw_if_index); vtotal += v; } /* Only display non-zero counters. */ if (vtotal == 0) continue; if (n_printed > 0) s = format (s, "\n%U", format_white_space, indent); n_printed += 1; s = format (s, "%-16s%16Ld", cm->name, vtotal); } } return s; } u8 * format_vnet_sw_interface (u8 * s, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); vnet_sw_interface_t *si = va_arg (*args, vnet_sw_interface_t *); vnet_interface_main_t *im = &vnm->interface_main; if (!si) return format (s, "%=32s%=5s%=16s%=16s%=16s", "Name", "Idx", "State", "Counter", "Count"); s = format (s, "%-32U%=5d%=16U", format_vnet_sw_interface_name, vnm, si, si->sw_if_index, format_vnet_sw_interface_flags, si->flags); s = format_vnet_sw_interface_cntrs (s, im, si); return s; } u8 * format_vnet_sw_interface_name_override (u8 * s, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); vnet_sw_interface_t *si = va_arg (*args, vnet_sw_interface_t *); /* caller supplied display name for this interface */ u8 *name = va_arg (*args, u8 *); vnet_interface_main_t *im = &vnm->interface_main; if (!si) return format (s, "%=32s%=5s%=16s%=16s%=16s", "Name", "Idx", "State", "Counter", "Count"); s = format (s, "%-32v%=5d%=16U", name, si->sw_if_index, format_vnet_sw_interface_flags, si->flags); s = format_vnet_sw_interface_cntrs (s, im, si); return s; } uword unformat_vnet_hw_interface (unformat_input_t * input, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); u32 *hw_if_index = va_arg (*args, u32 *); vnet_interface_main_t *im = &vnm->interface_main; vnet_device_class_t *c; /* Try per device class functions first. */ vec_foreach (c, im->device_classes) { if (c->unformat_device_name && unformat_user (input, c->unformat_device_name, hw_if_index)) return 1; } return unformat_user (input, unformat_hash_vec_string, im->hw_interface_by_name, hw_if_index); } uword unformat_vnet_sw_interface (unformat_input_t * input, va_list * args) { vnet_main_t *vnm = va_arg (*args, vnet_main_t *); u32 *result = va_arg (*args, u32 *); vnet_hw_interface_t *hi; u32 hw_if_index, id, id_specified; u32 sw_if_index; u8 *if_name = 0; uword *p, error = 0; id = ~0; if (unformat (input, "%_%v.%d%_", &if_name, &id) && ((p = hash_get (vnm->interface_main.hw_interface_by_name, if_name)))) { hw_if_index = p[0]; id_specified = 1; } else if (unformat (input, "%U", unformat_vnet_hw_interface, vnm, &hw_if_index)) id_specified = 0; else goto done; hi = vnet_get_hw_interface (vnm, hw_if_index); if (!id_specified) { sw_if_index = hi->sw_if_index; } else { if (!(p = hash_get (hi->sub_interface_sw_if_index_by_id, id))) goto done; sw_if_index = p[0]; } if (!vnet_sw_interface_is_api_visible (vnm, sw_if_index)) goto done; *result = sw_if_index; error = 1; done: vec_free (if_name); return error; } uword unformat_vnet_sw_interface_flags (unformat_input_t * input, va_list * args) { u32 *result = va_arg (*args, u32 *); u32 flags = 0; if (unformat (input, "up")) flags |= VNET_SW_INTERFACE_FLAG_ADMIN_UP; else if (unformat (input, "down")) flags &= ~VNET_SW_INTERFACE_FLAG_ADMIN_UP; else if (unformat (input, "punt")) flags |= VNET_SW_INTERFACE_FLAG_PUNT; else if (unformat (input, "enable")) flags &= ~VNET_SW_INTERFACE_FLAG_PUNT; else return 0; *result = flags; return 1; } uword unformat_vnet_hw_interface_flags (unformat_input_t * input, va_list * args) { u32 *result = va_arg (*args, u32 *); u32 flags = 0; if (unformat (input, "up")) flags |= VNET_HW_INTERFACE_FLAG_LINK_UP; else if (unformat (input, "down")) flags &= ~VNET_HW_INTERFACE_FLAG_LINK_UP; else return 0; *result = flags; return 1; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */