From: Konstantin Ananyev Date: Tue, 28 Jul 2015 11:39:23 +0000 (+0100) Subject: ixgbe: fix number of segments with vector scattered Rx X-Git-Tag: spdx-start~8599 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2f9b17150350be38a8e5e766cb9cd3e674bae63a;p=dpdk.git ixgbe: fix number of segments with vector scattered Rx Fixes: cf4b4708a88a (ixgbe: improve slow-path perf with vector scattered Rx) Signed-off-by: Konstantin Ananyev Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ixgbe/ixgbe_rxtx_vec.c index 6c1647e545..1c16dec6b8 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec.c +++ b/drivers/net/ixgbe/ixgbe_rxtx_vec.c @@ -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 -