From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] ixgbe: vector rx rearm after queue reset Date: Mon, 03 Aug 2015 17:07:20 +0200 Message-ID: <3452808.fsduaX7ycr@xps13> References: <1435256741-25489-1-git-send-email-ehkinzie@gmail.com> <1435256741-25489-2-git-send-email-ehkinzie@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Eric Kinzie Return-path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id 14248C3C2 for ; Mon, 3 Aug 2015 17:08:35 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so118743072wib.1 for ; Mon, 03 Aug 2015 08:08:34 -0700 (PDT) In-Reply-To: <1435256741-25489-2-git-send-email-ehkinzie@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-06-25 11:25, Eric Kinzie: > zero values in ixgbe_reset_rx_queue() used by vector receive so that > rearming the rx queue happens at the right time. Not doing so can in > some cases result in the software inadvertently setting the card's rx > tail pointer equal to the head pointer, which indicates that there are > no descriptors available. This causes receive to stop indefinitely > on that queue. > > Fixes: 01fa1d6215fa ("ixgbe: unify Rx setup") > > Signed-off-by: Eric Kinzie [...] > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > @@ -2261,6 +2261,10 @@ ixgbe_reset_rx_queue(struct ixgbe_adapter *adapter, struct ixgbe_rx_queue *rxq) > rxq->nb_rx_hold = 0; > rxq->pkt_first_seg = NULL; > rxq->pkt_last_seg = NULL; > +#ifdef RTE_IXGBE_INC_VECTOR > + rxq->rxrearm_nb = 0; > + rxq->rxrearm_start = 0; > +#endif A similar patch has been applied: http://dpdk.org/browse/dpdk/commit/?id=48e967695ba78 Thanks