ixgbe: fix number of segments with vector scattered Rx
Fixes: cf4b4708a8
(ixgbe: improve slow-path perf with vector scattered Rx)
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
This commit is contained in:
parent
1b20b07d86
commit
2f9b171503
@ -497,6 +497,8 @@ reassemble_packets(struct ixgbe_rx_queue *rxq, struct rte_mbuf **rx_bufs,
|
||||
else {
|
||||
/* free up last mbuf */
|
||||
struct rte_mbuf *secondlast = start;
|
||||
|
||||
start->nb_segs--;
|
||||
while (secondlast->next != end)
|
||||
secondlast = secondlast->next;
|
||||
secondlast->data_len -= (rxq->crc_len -
|
||||
|
Loading…
Reference in New Issue
Block a user