#define AVF_TXQ_DESC_CMD(x) (1 << (x + 4))
#define AVF_TXQ_DESC_CMD_EOP AVF_TXQ_DESC_CMD(0)
#define AVF_TXQ_DESC_CMD_RS AVF_TXQ_DESC_CMD(1)
#define AVF_TXQ_DESC_CMD(x) (1 << (x + 4))
#define AVF_TXQ_DESC_CMD_EOP AVF_TXQ_DESC_CMD(0)
#define AVF_TXQ_DESC_CMD_RS AVF_TXQ_DESC_CMD(1)
avf_main_t *am = &avf_main;
vnet_interface_output_runtime_t *rd = (void *) node->runtime_data;
avf_device_t *ad = pool_elt_at_index (am->devices, rd->dev_instance);
avf_main_t *am = &avf_main;
vnet_interface_output_runtime_t *rd = (void *) node->runtime_data;
avf_device_t *ad = pool_elt_at_index (am->devices, rd->dev_instance);
u8 qid = thread_index;
avf_txq_t *txq = vec_elt_at_index (ad->txqs, qid % ad->num_queue_pairs);
avf_tx_desc_t *d0, *d1, *d2, *d3;
u8 qid = thread_index;
avf_txq_t *txq = vec_elt_at_index (ad->txqs, qid % ad->num_queue_pairs);
avf_tx_desc_t *d0, *d1, *d2, *d3;
u16 n_left = frame->n_vectors;
vlib_buffer_t *b0, *b1, *b2, *b3;
u16 mask = txq->size - 1;
u16 n_left = frame->n_vectors;
vlib_buffer_t *b0, *b1, *b2, *b3;
u16 mask = txq->size - 1;
vlib_buffer_free_from_ring (vm, txq->bufs, first, txq->size,
n_free);
}
vlib_buffer_free_from_ring (vm, txq->bufs, first, txq->size,
n_free);
}
- d0->qword[0] = pointer_to_uword (b0->data);
- d1->qword[0] = pointer_to_uword (b1->data);
- d2->qword[0] = pointer_to_uword (b2->data);
- d3->qword[0] = pointer_to_uword (b3->data);
+ d0->qword[0] = pointer_to_uword (b0->data) + b0->current_data;
+ d1->qword[0] = pointer_to_uword (b1->data) + b1->current_data;
+ d2->qword[0] = pointer_to_uword (b2->data) + b2->current_data;
+ d3->qword[0] = pointer_to_uword (b3->data) + b3->current_data;
d0->qword[1] = ((u64) b0->current_length) << 34 | bits;
d1->qword[1] = ((u64) b1->current_length) << 34 | bits;
d2->qword[1] = ((u64) b2->current_length) << 34 | bits;
d3->qword[1] = ((u64) b3->current_length) << 34 | bits;
txq->next = (txq->next + 4) & mask;
d0->qword[1] = ((u64) b0->current_length) << 34 | bits;
d1->qword[1] = ((u64) b1->current_length) << 34 | bits;
d2->qword[1] = ((u64) b2->current_length) << 34 | bits;
d3->qword[1] = ((u64) b3->current_length) << 34 | bits;
txq->next = (txq->next + 4) & mask;
#if __x86_64__
vlib_node_function_t __clib_weak avf_interface_tx_avx512;
vlib_node_function_t __clib_weak avf_interface_tx_avx2;
#if __x86_64__
vlib_node_function_t __clib_weak avf_interface_tx_avx512;
vlib_node_function_t __clib_weak avf_interface_tx_avx2;