summaryrefslogtreecommitdiffstats
path: root/src/vnet
AgeCommit message (Expand)AuthorFilesLines
2020-04-22ethernet: put vlib_get_buffers togetherZhiyong Yang1-11/+6
2020-04-21vppinfra: bihash improvementsDave Barach1-6/+7
2020-04-20sr: fix non-NULL terminated string overflowBenoît Ganne1-1/+1
2020-04-20session: fix use-after-free in input nodeBenoît Ganne1-1/+2
2020-04-20session: avoid rx notifications on accepting sessionsFlorin Coras1-0/+5
2020-04-19session: fix half-open cleanupFlorin Coras1-3/+3
2020-04-17lisp: fix use-after-freeBenoît Ganne1-8/+8
2020-04-17tcp: cubic as default cc algorithmFlorin Coras1-1/+1
2020-04-17virtio: fix to use chained descriptors when missing indirect descriptorMohsin Kazmi2-7/+79
2020-04-17session tcp: track half open in app wrkFlorin Coras10-20/+164
2020-04-17tap: add initial support for tunMohsin Kazmi9-47/+190
2020-04-16fib: fix use-after-freeBenoît Ganne1-10/+11
2020-04-16ipsec: fix use-after-freeBenoît Ganne1-1/+1
2020-04-16bier: fix vector size confusing ASanBenoît Ganne1-1/+2
2020-04-16udp: fix buffer traceAndreas Schultz1-3/+2
2020-04-15pg: set vnet buffer flags in pg streamsDave Barach5-1/+40
2020-04-15session: detach session from app on cleanupFlorin Coras1-1/+6
2020-04-15urpf: Allow locally generated packets on TXNeale Ranns1-4/+0
2020-04-15tcp: allow local port sharing if 5-tuple availableFlorin Coras1-1/+14
2020-04-15misc: refactor calc_checksumsDave Barach5-81/+64
2020-04-14session: avoid all session cleanup on unlistenFlorin Coras1-9/+7
2020-04-14urpf: Unicast reverse Path Forwarding (plugin)Neale Ranns10-616/+118
2020-04-14ipsec: validate number of input sasMatthew Smith2-1/+9
2020-04-13session: remove ho with fifos supportFlorin Coras4-29/+5
2020-04-13session: cleanup debug codeFlorin Coras6-319/+363
2020-04-13session: adding debug eventsSrikanth Akula4-0/+231
2020-04-11fib: fix accessing empty dpo pool elementsShivaShankarK2-2/+8
2020-04-10udp: remove connected udp transport protoFlorin Coras4-67/+1
2020-04-10udp: fix local node no port error counterFlorin Coras1-9/+6
2020-04-10virtio: fix gso and csum offload errors handlingMohsin Kazmi1-45/+82
2020-04-10geneve: Fix the byte swapping for the VNINeale Ranns3-67/+45
2020-04-10fib: fix adjacency cli command issueShivaShankarK1-3/+1
2020-04-09session: fix leak on accept fifo alloc failureFlorin Coras2-6/+15
2020-04-09tcp: avoid regrabing error node in input and outputFlorin Coras2-23/+16
2020-04-09session: update fifo slice on session migrationFlorin Coras3-10/+71
2020-04-09udp: fix coverity warningFlorin Coras1-1/+1
2020-04-09bfd: always start timers with non-zero tick countsDave Barach1-0/+1
2020-04-09mpls: fix typo in error pathDave Barach1-10/+9
2020-04-09misc: fix error handling in punt_replicateDave Barach1-0/+1
2020-04-08udp: cleanup input nodeFlorin Coras6-175/+243
2020-04-08misc: check return values from vlib_buffer_copy(...)Dave Barach1-0/+3
2020-04-08virtio: fix the tcp/udp checksum offloadsMohsin Kazmi2-28/+0
2020-04-08ip: do not clear the locally-originated flagNeale Ranns2-16/+4
2020-04-08sr: Fix the coverity issueTetsuya Murakami1-15/+5
2020-04-08session: alloc exact number of bufs for multi-seg deqsSimon Zhang2-7/+24
2020-04-07session: add more session errorsFlorin Coras3-21/+33
2020-04-07l2: handle complete clone fail in l2_floodDave Barach1-2/+8
2020-04-07udp: move cli to separate fileFlorin Coras5-205/+230
2020-04-07tcp: fix conf mtu parsingFlorin Coras1-3/+3
2020-04-07udp session: allow dgram ip fragmentationFlorin Coras4-37/+37
"p">]); vlib_prefetch_buffer_header (p2, LOAD); vlib_prefetch_buffer_header (p3, LOAD); CLIB_PREFETCH (p2->data, sizeof (ip0[0]), LOAD); CLIB_PREFETCH (p3->data, sizeof (ip1[0]), LOAD); } pi0 = from[0]; pi1 = from[1]; to_next[0] = pi0; to_next[1] = pi1; from += 2; to_next += 2; n_left_from -= 2; n_left_to_next -= 2; p0 = vlib_get_buffer (vm, pi0); p1 = vlib_get_buffer (vm, pi1); ip0 = vlib_buffer_get_current (p0); ip1 = vlib_buffer_get_current (p1); sw_if_index0 = vnet_buffer (p0)->sw_if_index[VLIB_RX]; sw_if_index1 = vnet_buffer (p1)->sw_if_index[VLIB_RX]; if (PREDICT_FALSE (ip6_address_is_multicast (&ip0->dst_address))) { arc0 = lm->mcast_feature_arc_index; next0 = IP6_INPUT_NEXT_LOOKUP_MULTICAST; } else { arc0 = lm->ucast_feature_arc_index; next0 = IP6_INPUT_NEXT_LOOKUP; } if (PREDICT_FALSE (ip6_address_is_multicast (&ip1->dst_address))) { arc1 = lm->mcast_feature_arc_index; next1 = IP6_INPUT_NEXT_LOOKUP_MULTICAST; } else { arc1 = lm->ucast_feature_arc_index; next1 = IP6_INPUT_NEXT_LOOKUP; } vnet_buffer (p0)->ip.adj_index[VLIB_RX] = ~0; vnet_buffer (p1)->ip.adj_index[VLIB_RX] = ~0; vnet_feature_arc_start (arc0, sw_if_index0, &next0, p0); vnet_feature_arc_start (arc1, sw_if_index1, &next1, p1); vlib_increment_simple_counter (cm, thread_index, sw_if_index0, 1); vlib_increment_simple_counter (cm, thread_index, sw_if_index1, 1); ip6_input_check_x2 (vm, error_node, p0, p1, ip0, ip1, &next0, &next1); vlib_validate_buffer_enqueue_x2 (vm, node, next_index, to_next, n_left_to_next, pi0, pi1, next0, next1); } while (n_left_from > 0 && n_left_to_next > 0) { vlib_buffer_t *p0; ip6_header_t *ip0; u32 pi0, sw_if_index0, next0 = 0; u8 arc0; pi0 = from[0]; to_next[0] = pi0; from += 1; to_next += 1; n_left_from -= 1; n_left_to_next -= 1; p0 = vlib_get_buffer (vm, pi0); ip0 = vlib_buffer_get_current (p0); sw_if_index0 = vnet_buffer (p0)->sw_if_index[VLIB_RX]; if (PREDICT_FALSE (ip6_address_is_multicast (&ip0->dst_address))) { arc0 = lm->mcast_feature_arc_index; next0 = IP6_INPUT_NEXT_LOOKUP_MULTICAST; } else { arc0 = lm->ucast_feature_arc_index; next0 = IP6_INPUT_NEXT_LOOKUP; } vnet_buffer (p0)->ip.adj_index[VLIB_RX] = ~0; vnet_feature_arc_start (arc0, sw_if_index0, &next0, p0); vlib_increment_simple_counter (cm, thread_index, sw_if_index0, 1); ip6_input_check_x1 (vm, error_node, p0, ip0, &next0); vlib_validate_buffer_enqueue_x1 (vm, node, next_index, to_next, n_left_to_next, pi0, next0); } vlib_put_next_frame (vm, node, next_index, n_left_to_next); } return frame->n_vectors; } #ifndef CLIB_MARCH_VARIANT char *ip6_error_strings[] = { #define _(sym,string) string, foreach_ip6_error #undef _ }; #endif /* CLIB_MARCH_VARIANT */ /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip6_input_node) = { .name = "ip6-input", .vector_size = sizeof (u32), .n_errors = IP6_N_ERROR, .error_strings = ip6_error_strings, .n_next_nodes = IP6_INPUT_N_NEXT, .next_nodes = { [IP6_INPUT_NEXT_DROP] = "error-drop", [IP6_INPUT_NEXT_LOOKUP] = "ip6-lookup", [IP6_INPUT_NEXT_ICMP_ERROR] = "ip6-icmp-error", [IP6_INPUT_NEXT_LOOKUP_MULTICAST] = "ip6-mfib-forward-lookup", }, .format_buffer = format_ip6_header, .format_trace = format_ip6_input_trace, }; /* *INDENT-ON* */ static clib_error_t * ip6_init (vlib_main_t * vm) { ethernet_register_input_type (vm, ETHERNET_TYPE_IP6, ip6_input_node.index); ppp_register_input_protocol (vm, PPP_PROTOCOL_ip6, ip6_input_node.index); hdlc_register_input_protocol (vm, HDLC_PROTOCOL_ip6, ip6_input_node.index); { pg_node_t *pn; pn = pg_get_node (ip6_input_node.index); pn->unformat_edit = unformat_pg_ip6_header; } /* Set flow hash to something non-zero. */ ip6_main.flow_hash_seed = 0xdeadbeef; /* Default hop limit for packets we generate. */ ip6_main.host_config.ttl = 64; uword *u = hash_get (ip_main.protocol_info_by_name, "IPV6_FRAGMENTATION"); if (u) { ip_protocol_info_t *info = vec_elt_at_index (ip_main.protocol_infos, *u); ASSERT (NULL == info->format_header); info->format_header = format_ip6_frag_hdr; } return /* no error */ 0; } VLIB_INIT_FUNCTION (ip6_init); static clib_error_t * ip6_main_loop_enter (vlib_main_t * vm) { ip6_main_t *im = &ip6_main; vlib_thread_main_t *tm = &vlib_thread_main; throttle_init (&im->nd_throttle, tm->n_vlib_mains, 1e-3); return 0; } VLIB_MAIN_LOOP_ENTER_FUNCTION (ip6_main_loop_enter); /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */