X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Favf%2Finput.c;h=0b1ac744a1f85ee97c7bc8da23944104c168c8cb;hb=4f611176e9e0673d644b40f6978a24c031e65709;hp=efec7234e2d02030f25d3ce5a43332050045b7af;hpb=9a02c54e4f3c53cbaceee4cbb30835113f0641ce;p=vpp.git diff --git a/src/plugins/avf/input.c b/src/plugins/avf/input.c index efec7234e2d..0b1ac744a1f 100644 --- a/src/plugins/avf/input.c +++ b/src/plugins/avf/input.c @@ -70,7 +70,7 @@ avf_rxq_refill (vlib_main_t * vm, vlib_node_runtime_t * node, avf_rxq_t * rxq, vlib_error_count (vm, node->node_index, AVF_INPUT_ERROR_BUFFER_ALLOC, 1); if (n_alloc) - vlib_buffer_free (vm, rxq->bufs + slot, n_alloc); + vlib_buffer_free_from_ring (vm, rxq->bufs, slot, rxq->size, n_alloc); return; } @@ -304,7 +304,7 @@ avf_process_rx_burst (vlib_main_t * vm, vlib_node_runtime_t * node, clib_memcpy (vnet_buffer (b[0])->sw_if_index, vnet_buffer (bt)->sw_if_index, 2 * sizeof (u32)); - VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b0); + VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b[0]); /* next */ rxve += 1; @@ -530,7 +530,6 @@ VLIB_NODE_FN (avf_input_node) (vlib_main_t * vm, vlib_node_runtime_t * node, return n_rx; } -#ifndef CLIB_MARCH_VARIANT /* *INDENT-OFF* */ VLIB_REGISTER_NODE (avf_input_node) = { .name = "avf-input", @@ -541,7 +540,6 @@ VLIB_REGISTER_NODE (avf_input_node) = { .n_errors = AVF_INPUT_N_ERROR, .error_strings = avf_input_error_strings, }; -#endif /* *INDENT-ON* */