Thread (18 messages) 18 messages, 4 authors, 2015-09-09

Re: [PATCH v1] ixgbe: remove vector pmd burst size restriction

flat view

From: Liang, Cunming <hidden>
Date: 2015-08-03 10:00:00

Hi,

[...]
quoted
Another thing, that I just thought about:
Right now we invoke ixgbe_rxq_rearm() only at the start of
_recv_raw_pkts_vec().
Before it was ok, as _recv_raw_pkts_vec() would never try to read more then
32
quoted
RXDs.
But what would happen if nb_pkts > rxq->nb_desc and rxq->rxrearm_nb == 0?
I suppose,  _recv_raw_pkts_vec() can wrpa around RXD ring and 'receive'
same
quoted
packet twice?
So we probably better still limit nb_pkts <= 32 at _recv_raw_pkts_vec().
The _recv_raw_pkts_vec() won't wrap around RXD ring. When it reaches the last
one, the DD bit of padding desc. always 0.
So in the case nb_pkts > rxq->nb_desc, the '_recv_raw_pkts_vec()' can only get
no more than 'rxq->nb_desc' packets.
I think the violation is true when rx_id in some middle position of desc_ring, and nb_pkts > rxq->nb_desc.
The DD checking may exceed the boundary (access the entry whose DD is set and waiting for rearm).
So I agree to keep the max burst size as 32.

/Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help