aboutsummaryrefslogtreecommitdiffstats
path: root/build
AgeCommit message (Expand)AuthorFilesLines
2021-01-22quic: quicly v0.1.2 updateMathias Raoul2-3/+63
2021-01-21dpdk: dpdk i40e patch cherry-pickChenmin Sun1-0/+134
2021-01-20crypto: improve ipsecmb build timePiotrX Kleski1-1/+1
2021-01-20rdma: fix pkg_config fileMohammed Hawari1-0/+3
2020-12-11dpdk: bump to dpdk 20.11Fan Zhang1-2/+2
2020-12-07dpdk: support mlx drivers linked with rdma-coreMohammed Hawari3-7/+22
2020-11-26crypto: improve ipsecmb engine performanceFan Zhang1-0/+3
2020-11-25dpdk: patch broken virtio macroMatthew Smith1-0/+42
2020-11-23crypto-ipsecmb: bump to intel-ipsec-mb version 0.55Dariusz Kazimierski2-3/+18
2020-11-19build: bump libbpf to v0.2Benoît Ganne1-1/+2
2020-11-19build: bump rdma-core to 31.1Benoît Ganne1-2/+2
2020-11-04build: better detection of libbpf dependenciesBenoît Ganne1-4/+6
2020-10-26dpdk: allow offline build by caching build-depsMohammed Hawari1-4/+6
2020-10-23build: fix typo in dpdk-20.08 patch #0003Dave Wallace1-2/+2
2020-10-17build: backport dpdk usertools support python3 only patchDave Wallace2-1/+213
2020-10-16misc: bump debian compatibility level to 10Damjan Marion1-1/+1
2020-10-14crypto: fixed ipsec_mb lib dependenciesPiotrX Kleski4-4/+24
2020-09-29dpdk: fix compileFan Zhang1-1/+3
2020-09-18dpdk: prevent linking dpdk against libbsdMohammed Hawari1-1/+16
2020-09-18dpdk: call the meson-based build instead of MakefilesMohammed Hawari2-271/+220
2020-09-09crypto: change cryptodev with new cryptodev APIFan Zhang1-0/+1606
2020-08-31af_xdp: AF_XDP input pluginBenoît Ganne2-1/+57
2020-08-26dpdk: bump to DPDK 20.08Damjan Marion1-2/+3
2020-08-25rdma: bump rdma-core version to v31.0Benoît Ganne1-3/+2
2020-05-27dpdk: bump to DPDK v20.05Damjan Marion1-2/+6
2020-05-13dpdk: DPDK 20.05 iavf fdir bug-fix patch cherry pickChenmin Sun1-0/+70
2020-05-08dpdk: fix compiling issue with clangLijian.Zhang1-1/+2
2020-04-22dpdk: DPDK 20.05 iavf flow director backporting to DPDK 20.02Chenmin Sun17-0/+6436
2020-03-27quic: Check quicly version tag at compile timeMathiasRaoul13-534/+23
2020-03-22dpdk: false link down issue with ixgbe NICLijian.Zhang1-0/+66
2020-03-12rdma: cleanup rdma-core buildBenoît Ganne1-12/+9
2020-02-26rdma: bunp rdma-core version to v28.0Damjan Marion1-1/+2
2020-02-26dpdk: bump dpdk version to 20.02Damjan Marion1-2/+2
2020-02-04dpdk: patch ixgbe driver to solve race conditionMatthew Smith1-0/+49
2020-01-31quic: update quicly to v0.0.10-vppMathiasRaoul2-2/+62
2020-01-06quic: update quicly to v0.0.9-vppMathiasRaoul2-2/+62
2019-12-17quic: update quicly to v0.0.8-vppMathiasRaoul2-2/+62
2019-12-06quic: update quicly to v0.0.7-vppMathiasRaoul2-2/+62
2019-11-25quic: update quicly to v0.0.6-vppMathiasRaoul3-2/+95
2019-11-22crypto-ipsecmb: bump to intel-ipsec-mb version 0.53Fan Zhang1-2/+3
2019-11-16quic: replace quicly patch with upstreamed fixDave Wallace1-10/+11
2019-11-14dpdk: Enable bnxt PMDAndy Gospodarek1-0/+1
2019-11-04quic: fix quicly rtt time skewDave Wallace1-0/+15
2019-11-01build: bump rdma-core version to 26.0Damjan Marion1-3/+2
2019-10-31build: bump nasm version to 2.14.02Damjan Marion2-28/+2
2019-10-31build: remove obsolete dpdk patchesDamjan Marion2-132/+0
2019-10-04quic: update quicly to v0.0.5MathiasRaoul3-4/+97
2019-09-30build: build-root/Makefile rm of install treeBurt Silverman1-0/+1
2019-08-21dpdk: bump DPDK version to 19.08Damjan Marion1-3/+2
2019-08-07rdma: add missing symbolsBenoît Ganne1-1/+4
pan> + 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); return format (s, "%U", format_vnet_sw_interface_name, vnm, vnet_get_sw_interface (vnm, sw_if_index)); } u8 * format_vnet_sw_interface_cntrs (u8 * s, vnet_interface_main_t * im, vnet_sw_interface_t * si) { uword 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: */