summaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian
AgeCommit message (Expand)AuthorFilesLines
2017-11-06fix debian packages generation (invalid warning silencing)Gabriel Ganne1-2/+1
2017-03-27Python API: Fixup of debian package after cFFI changes.Ole Troan4-15/+8
2017-02-24Fixed QAT device binding and device unbinding when vpp package is removedRadu Nicolau1-1/+1
2017-02-04dpdk: move to uio_pci_genericDamjan Marion2-4/+4
2017-01-20Add dpdk development packagingDamjan Marion3-23/+2
2017-01-04rename vpp python's api debian scriptsGabriel Ganne2-0/+0
2017-01-03deb: fix issues in debian/control, silence some warningsDamjan Marion2-7/+12
2017-01-03vpp-python-api deb packaging - use easy_install to install the python apiroot2-0/+13
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion2-2/+18
2016-12-20Remove RPATH from binaries before creating .deb and .rpm packagesDamjan Marion2-1/+2
2016-11-17remove reference to Intel with dpdk docsPadraig Connolly1-1/+1
2016-10-29Initial deb packaging of vpp-python-apiEd Warnicke3-1/+9
2016-10-11Rebind kernel drivers on VPP uninstallPeter Ginchev1-0/+21
2016-10-10platform: rewrote vppctl script to include historyPadraig1-1/+1
2016-09-10VPP-367: Peg vpp and vpp-plugins to depend on specific versionsEd Warnicke1-2/+2
2016-07-13Add plugins debian packagingDamjan Marion1-0/+7
2016-06-09VPP-127 Removed spurious use of sudoEd Warnicke1-1/+1
2016-06-08VPP-127: Make rpm/deb provide vpp group to access vpp-apiEd Warnicke1-0/+4
2016-05-04VPP-12: only remove vpp-related files from /dev/shmDave Barach2-4/+4
2016-04-20ubuntu 16.04 build support. Supporting systemd with vpp.service files.Srivatsa Sangli3-2/+16
2016-02-01Add a vpp-dpdk-dev package, enable plugins to use dpdk APIs directlyDave Barach2-8/+9
2016-01-20Rename vpe binary name to avoid collision with latexDamjan Marion3-6/+6
2015-12-16Add missing entries to .gitignoreEd Warnicke1-0/+2
2015-12-08Initial commit of vpp code.v1.0.0Ed Warnicke10-0/+243
> encap_index; } mpls_policy_encap_trace_t; u8 * format_mpls_policy_encap_trace (u8 * s, va_list * args) { CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *); CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *); mpls_policy_encap_trace_t * t = va_arg (*args, mpls_policy_encap_trace_t *); s = format (s, "MPLS-POLICY-ENCAP: next-index %d encap-index %d", t->next_index, t->encap_index); return s; } vlib_node_registration_t mpls_policy_encap_node; #define foreach_mpls_policy_encap_next \ _(DROP, "error-drop") typedef enum { #define _(s,n) MPLS_POLICY_ENCAP_NEXT_##s, foreach_mpls_policy_encap_next #undef _ MPLS_POLICY_ENCAP_N_NEXT, } mpls_policy_encap_next_t; #define foreach_mpls_policy_error \ _(PKTS_ENCAP, "mpls policy tunnel packets encapsulated") typedef enum { #define _(n,s) MPLS_POLICY_ENCAP_ERROR_##n, foreach_mpls_policy_error MPLS_POLICY_ENCAP_N_ERROR, #undef _ } mpls_policy_encap_error_t; static char * mpls_policy_encap_error_strings[] = { #define _(n,s) s, foreach_mpls_policy_error #undef _ }; static uword mpls_policy_encap (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * from_frame) { u32 n_left_from, next_index, * from, * to_next; mpls_main_t * mm = &mpls_main; from = vlib_frame_vector_args (from_frame); n_left_from = from_frame->n_vectors; next_index = node->cached_next_index; while (n_left_from > 0) { u32 n_left_to_next; vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next); while (n_left_from > 0 && n_left_to_next > 0) { u32 bi0; vlib_buffer_t * b0; u8 * h0; u32 encap_index0; u32 next0; mpls_encap_t * e0; bi0 = from[0]; to_next[0] = bi0; from += 1; to_next += 1; n_left_from -= 1; n_left_to_next -= 1; b0 = vlib_get_buffer (vm, bi0); encap_index0 = vnet_buffer(b0)->l2_classify.opaque_index; e0 = pool_elt_at_index (mm->encaps, encap_index0); vlib_buffer_advance (b0, -(word)vec_len(e0->rewrite)); h0 = vlib_buffer_get_current (b0); memcpy (h0, e0->rewrite, vec_len(e0->rewrite)); next0 = e0->output_next_index; if (PREDICT_FALSE(b0->flags & VLIB_BUFFER_IS_TRACED)) { mpls_policy_encap_trace_t *tr = vlib_add_trace (vm, node, b0, sizeof (*tr)); tr->next_index = next0; tr->encap_index = encap_index0; } vlib_validate_buffer_enqueue_x1 (vm, node, next_index, to_next, n_left_to_next, bi0, next0); } vlib_put_next_frame (vm, node, next_index, n_left_to_next); } vlib_node_increment_counter (vm, mpls_policy_encap_node.index, MPLS_POLICY_ENCAP_ERROR_PKTS_ENCAP, from_frame->n_vectors); return from_frame->n_vectors; } VLIB_REGISTER_NODE (mpls_policy_encap_node) = { .function = mpls_policy_encap, .name = "mpls-policy-encap", /* Takes a vector of packets. */ .vector_size = sizeof (u32), .runtime_data_bytes = 0, .n_errors = MPLS_POLICY_ENCAP_N_ERROR, .error_strings = mpls_policy_encap_error_strings, .format_trace = format_mpls_policy_encap_trace, .n_next_nodes = MPLS_POLICY_ENCAP_N_NEXT, .next_nodes = { #define _(s,n) [MPLS_POLICY_ENCAP_NEXT_##s] = n, foreach_mpls_policy_encap_next #undef _ }, }; static clib_error_t * mpls_policy_encap_init (vlib_main_t * vm) { mpls_main_t * mm = &mpls_main; clib_error_t * error; if ((error = vlib_call_init_function (vm, mpls_init))) return error; mm->ip_classify_mpls_policy_encap_next_index = vlib_node_add_next (mm->vlib_main, ip4_classify_node.index, mpls_policy_encap_node.index); return 0; } VLIB_INIT_FUNCTION (mpls_policy_encap_init);