From: Intel Date: Wed, 18 Sep 2013 10:00:00 +0000 (+0200) Subject: e1000: fix descriptor overflow X-Git-Tag: spdx-start~11146 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a84f185a8a8d05ee7f868ac931cdef52bc860cc6;p=dpdk.git e1000: fix descriptor overflow Allow rxq->rx_tail + offset > 65535 in eth_em_rx_descriptor_done(). Signed-off-by: Intel --- 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;