summaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Expand)AuthorFilesLines
2019-10-10http_static: add .json contentDave Barach1-0/+2
2019-10-09docs: Add macos build documentationNathan Skrzypczak2-0/+91
2019-10-03emacs: track improvements in vppapigenDave Barach7-270/+17
2019-10-03dhcp: API cleanupJakub Grajciar2-6/+8
2019-09-18builtinurl: initial working attemptDave Barach2-1/+84
2019-09-11bonding: API cleanupJakub Grajciar1-2/+2
2019-09-10misc: clean up "pcap [rx|tx] trace" debug CLIDave Barach1-0/+34
2019-09-09libmemif: prevent crash in case of invalid connection handleJakub Grajciar1-9/+31
2019-09-07ip: fix udp/tcp checksum corner casesDave Barach1-0/+276
2019-09-03api: enforce vla is last and fixed string typeOle Troan3-7/+7
2019-08-21libmemif: introduce 'memif_per_thread_' namespaceJakub Grajciar9-113/+1314
2019-08-20api: Cleanup APIs interface.apiJakub Grajciar4-15/+19
2019-08-12papi: Revert vpp-api-python to py2, add py3 pkgIan Wells1-2/+29
2019-08-10http_static: tls supportDave Barach2-0/+13
2019-08-07vom: export/install cmake filesNeale Ranns6-1/+169
2019-07-31qos: Store functionNeale Ranns7-1/+653
2019-07-26libmemif: fix autoconnectJakub Grajciar1-4/+4
2019-07-26dhcp ip: DSCP settings for transmitted DHCP packetsNeale Ranns8-17/+174
2019-07-25vom: QoS supportNeale Ranns17-0/+2132
2019-07-25libmemif: fix chained buffer flagJakub Grajciar1-0/+1
2019-07-12docs: how to enable coredump with systemdBenoît Ganne1-0/+5
2019-07-11vom: Fix reference to flags in GBP bridge-domainNeale Ranns1-1/+1
2019-07-10emacs: update the vat plugin generatorDave Barach1-17/+1
2019-07-09misc: extras update list_api_changes.py to PY3Paul Vinciguerra1-11/+14
2019-07-05misc: allow second ':' in commit messageDamjan Marion1-1/+1
2019-07-03fib: allow route delete with no paths and multipath=0 to remove theNeale Ranns1-1/+2
2019-07-02gbp: add anonymous l3-out subnetsBenoît Ganne2-6/+20
2019-07-02libmemif: version 3.0Jakub Grajciar12-339/+423
2019-07-02vom: Fix [m]route dumpNeale Ranns1-36/+2
2019-07-01libmemif: icmp-responder example buffer management fixJakub Grajciar1-5/+8
2019-07-01gbp: VRF scoped contractsNeale Ranns16-53/+152
2019-06-26api: refactor format_vl_api_prefix_t return keysPaul Vinciguerra1-2/+2
2019-06-26vom: Add getter for interface admin stateMohsin Kazmi2-0/+11
2019-06-25build: fix error messages in check_commit_msg.shDave Barach1-4/+3
2019-06-19l2: BD ARP termination entry API updateNeale Ranns2-10/+11
2019-06-18fib: fib api updatesNeale Ranns21-474/+593
2019-06-14misc: Update MAINTAINERS to include interface commonNeale Ranns1-1/+1
2019-06-12misc: add check_commit_msg.sh scriptDamjan Marion1-0/+50
2019-06-07build: add -Wall and -fno-common, fix reported issuesBenoît Ganne8-45/+14
2019-06-04vom: Add bridge domain unknown unicast flooding flagMohsin Kazmi4-5/+54
2019-06-03vom: Add bridge domain arp unicast forwarding flagMohsin Kazmi4-3/+48
2019-05-31VPP-1640 - Missing rules in vpp-selinux-policyBilly McFall1-1/+2
2019-05-31VPP-1679 - SElinux rules are not set accordinglyBilly McFall1-2/+4
2019-05-31VPP-1640 - Missing rules in vpp-selinux-policyBilly McFall1-0/+212
2019-05-29emacs-skeleton: improve generated .api filesDave Barach3-29/+58
2019-05-29Break out the broom for some cleanup workDave Barach3-17/+27
2019-05-23rpm: VPP-1674: exclude external headers from rpmBenoît Ganne2-2/+2
2019-05-22stats: support multiple works for error countersOle Troan2-5/+5
2019-05-18emacs-lisp: add missing '\' in templateDave Barach1-8/+7
2019-05-02Add the packages for 19.04jdenisco2-6/+6
er_t *rw = va_arg (*args, vnet_rewrite_header_t *); u8 *packet_data = va_arg (*args, u8 *); u32 packet_data_bytes = va_arg (*args, u32); vlib_node_t *next; next = vlib_get_next_node (vm, rw->node_index, rw->next_index); /* Format rewrite string. */ s = format (s, "%U", next->format_buffer ? next->format_buffer : format_hex_bytes, packet_data, packet_data_bytes); return s; } uword unformat_vnet_rewrite (unformat_input_t * input, va_list * args) { vlib_main_t *vm = va_arg (*args, vlib_main_t *); vnet_rewrite_header_t *rw = va_arg (*args, vnet_rewrite_header_t *); u32 max_data_bytes = va_arg (*args, u32); vnet_main_t *vnm = vnet_get_main (); vlib_node_t *next; u32 next_index, sw_if_index, max_packet_bytes, error; u8 *rw_data; rw_data = 0; sw_if_index = ~0; max_packet_bytes = ~0; error = 1; /* Parse sw interface. */ if (unformat (input, "%U", unformat_vnet_sw_interface, vnm, &sw_if_index)) { vnet_hw_interface_t *hi; hi = vnet_get_sup_hw_interface (vnm, sw_if_index); next_index = hi->output_node_index; max_packet_bytes = hi->max_l3_packet_bytes[VLIB_RX]; } else if (unformat (input, "%U", unformat_vlib_node, vm, &next_index)) ; else goto done; next = vlib_get_node (vm, next_index); if (next->unformat_buffer && unformat_user (input, next->unformat_buffer, &rw_data)) ; else if (unformat_user (input, unformat_hex_string, &rw_data) || unformat (input, "0x%U", unformat_hex_string, &rw_data)) ; else goto done; /* Re-write does not fit. */ if (vec_len (rw_data) >= max_data_bytes) goto done; { u32 tmp; if (unformat (input, "mtu %d", &tmp) && tmp < (1 << BITS (rw->max_l3_packet_bytes))) max_packet_bytes = tmp; } error = 0; rw->sw_if_index = sw_if_index; rw->max_l3_packet_bytes = max_packet_bytes; rw->next_index = vlib_node_add_next (vm, rw->node_index, next_index); vnet_rewrite_set_data_internal (rw, max_data_bytes, rw_data, vec_len (rw_data)); done: vec_free (rw_data); return error == 0; } u32 vnet_tx_node_index_for_sw_interface (vnet_main_t * vnm, u32 sw_if_index) { vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); return (hw->output_node_index); } void vnet_rewrite_init (vnet_main_t * vnm, u32 sw_if_index, u32 this_node, u32 next_node, vnet_rewrite_header_t * rw) { rw->sw_if_index = sw_if_index; rw->node_index = this_node; rw->next_index = vlib_node_add_next (vnm->vlib_main, this_node, next_node); rw->max_l3_packet_bytes = vnet_sw_interface_get_mtu (vnm, sw_if_index, VLIB_TX); } void vnet_rewrite_for_sw_interface (vnet_main_t * vnm, vnet_link_t link_type, u32 sw_if_index, u32 node_index, void *dst_address, vnet_rewrite_header_t * rw, u32 max_rewrite_bytes) { vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); vnet_hw_interface_class_t *hc = vnet_get_hw_interface_class (vnm, hw->hw_class_index); u8 *rewrite = NULL; vnet_rewrite_init (vnm, sw_if_index, node_index, vnet_tx_node_index_for_sw_interface (vnm, sw_if_index), rw); ASSERT (hc->build_rewrite); rewrite = hc->build_rewrite (vnm, sw_if_index, link_type, dst_address); ASSERT (vec_len (rewrite) < max_rewrite_bytes); vnet_rewrite_set_data_internal (rw, max_rewrite_bytes, rewrite, vec_len (rewrite)); vec_free (rewrite); } void vnet_rewrite_for_tunnel (vnet_main_t * vnm, u32 tx_sw_if_index, u32 rewrite_node_index, u32 post_rewrite_node_index, vnet_rewrite_header_t * rw, u8 * rewrite_data, u32 rewrite_length) { ip_adjacency_t *adj = 0; /* * Installed into vnet_buffer(b)->sw_if_index[VLIB_TX] e.g. * by ip4_rewrite_inline. If the post-rewrite node injects into * ipX-forward, this will be interpreted as a FIB number. */ rw->sw_if_index = tx_sw_if_index; rw->node_index = rewrite_node_index; rw->next_index = vlib_node_add_next (vnm->vlib_main, rewrite_node_index, post_rewrite_node_index); rw->max_l3_packet_bytes = (u16) ~ 0; /* we can't know at this point */ ASSERT (rewrite_length < sizeof (adj->rewrite_data)); /* Leave room for ethernet + VLAN tag */ vnet_rewrite_set_data_internal (rw, sizeof (adj->rewrite_data), rewrite_data, rewrite_length); } void serialize_vnet_rewrite (serialize_main_t * m, va_list * va) { vnet_rewrite_header_t *rw = va_arg (*va, vnet_rewrite_header_t *); u32 max_data_bytes = va_arg (*va, u32); u8 *p; serialize_integer (m, rw->sw_if_index, sizeof (rw->sw_if_index)); serialize_integer (m, rw->data_bytes, sizeof (rw->data_bytes)); serialize_integer (m, rw->max_l3_packet_bytes, sizeof (rw->max_l3_packet_bytes)); p = serialize_get (m, rw->data_bytes); clib_memcpy (p, vnet_rewrite_get_data_internal (rw, max_data_bytes), rw->data_bytes); } void unserialize_vnet_rewrite (serialize_main_t * m, va_list * va) { vnet_rewrite_header_t *rw = va_arg (*va, vnet_rewrite_header_t *); u32 max_data_bytes = va_arg (*va, u32); u8 *p; /* It is up to user to fill these in. */ rw->node_index = ~0; rw->next_index = ~0; unserialize_integer (m, &rw->sw_if_index, sizeof (rw->sw_if_index)); unserialize_integer (m, &rw->data_bytes, sizeof (rw->data_bytes)); unserialize_integer (m, &rw->max_l3_packet_bytes, sizeof (rw->max_l3_packet_bytes)); p = unserialize_get (m, rw->data_bytes); clib_memcpy (vnet_rewrite_get_data_internal (rw, max_data_bytes), p, rw->data_bytes); } u8 * vnet_build_rewrite_for_sw_interface (vnet_main_t * vnm, u32 sw_if_index, vnet_link_t link_type, const void *dst_address) { vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); vnet_hw_interface_class_t *hc = vnet_get_hw_interface_class (vnm, hw->hw_class_index); ASSERT (hc->build_rewrite); return (hc->build_rewrite (vnm, sw_if_index, link_type, dst_address)); } void vnet_update_adjacency_for_sw_interface (vnet_main_t * vnm, u32 sw_if_index, u32 ai) { vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); vnet_hw_interface_class_t *hc = vnet_get_hw_interface_class (vnm, hw->hw_class_index); ASSERT (hc->update_adjacency); hc->update_adjacency (vnm, sw_if_index, ai); } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */