diff options
Diffstat (limited to 'src/plugins/avf/input.c')
-rw-r--r-- | src/plugins/avf/input.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/avf/input.c b/src/plugins/avf/input.c index 1406d789e0b..06007db540d 100644 --- a/src/plugins/avf/input.c +++ b/src/plugins/avf/input.c @@ -125,6 +125,9 @@ avf_rxq_refill (vlib_main_t * vm, vlib_node_runtime_t * node, avf_rxq_t * rxq, n_alloc -= 8; } + /* RXQ can be smaller than 256 packets, especially if jumbo. */ + rxq->descs[slot].qword[1] = 0; + avf_tail_write (rxq->qrx_tail, slot); } @@ -296,7 +299,7 @@ avf_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, next_index = ad->per_interface_next_index; if (PREDICT_FALSE (vnet_device_input_have_features (ad->sw_if_index))) - vnet_feature_start_device_input_x1 (ad->sw_if_index, &next_index, bt); + vnet_feature_start_device_input (ad->sw_if_index, &next_index, bt); vlib_get_new_next_frame (vm, node, next_index, to_next, n_left_to_next); @@ -423,9 +426,6 @@ no_more_desc: rxq->next = next; rxq->n_enqueued -= n_rx_packets + n_tail_desc; - /* avoid eating our own tail */ - rxq->descs[(next + rxq->n_enqueued) & mask].qword[1] = 0; - #if defined(CLIB_HAVE_VEC256) || defined(CLIB_HAVE_VEC128) or_qw1 |= or_q1x4[0] | or_q1x4[1] | or_q1x4[2] | or_q1x4[3]; #endif @@ -566,7 +566,6 @@ VLIB_NODE_FN (avf_input_node) (vlib_main_t * vm, vlib_node_runtime_t * node, return n_rx; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (avf_input_node) = { .name = "avf-input", .sibling_of = "device-input", @@ -578,7 +577,6 @@ VLIB_REGISTER_NODE (avf_input_node) = { .flags = VLIB_NODE_FLAG_TRACE_SUPPORTED, }; -/* *INDENT-ON* */ /* |