From a84f185a8a8d05ee7f868ac931cdef52bc860cc6 Mon Sep 17 00:00:00 2001 From: Intel Date: Wed, 18 Sep 2013 12:00:00 +0200 Subject: [PATCH] e1000: fix descriptor overflow Allow rxq->rx_tail + offset > 65535 in eth_em_rx_descriptor_done(). Signed-off-by: Intel --- lib/librte_pmd_e1000/em_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_e1000/em_rxtx.c b/lib/librte_pmd_e1000/em_rxtx.c index 0bebfe27e6..c049542398 100644 --- a/lib/librte_pmd_e1000/em_rxtx.c +++ b/lib/librte_pmd_e1000/em_rxtx.c @@ -1449,7 +1449,7 @@ eth_em_rx_descriptor_done(void *rx_queue, uint16_t offset) { volatile struct e1000_rx_desc *rxdp; struct em_rx_queue *rxq = rx_queue; - uint16_t desc; + uint32_t desc; if (unlikely(offset >= rxq->nb_rx_desc)) return 0; -- 2.20.1