From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B773EC55A for ; Mon, 27 Jul 2015 15:28:21 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 27 Jul 2015 06:28:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,554,1432623600"; d="scan'208";a="736353791" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 27 Jul 2015 06:28:20 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t6RDSJh9032440; Mon, 27 Jul 2015 14:28:19 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t6RDSICZ015831; Mon, 27 Jul 2015 14:28:18 +0100 Received: (from kananye1@localhost) by sivswdev02.ir.intel.com with id t6RDSIfi015826; Mon, 27 Jul 2015 14:28:18 +0100 From: Konstantin Ananyev To: dev@dpdk.org Date: Mon, 27 Jul 2015 14:28:16 +0100 Message-Id: <1438003696-15787-1-git-send-email-konstantin.ananyev@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] ixgbe: fix RX queue vector fields are not reset properly X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 13:28:22 -0000 As Steve pointed out, "ixgbe: fix release queue mbufs" is not complete. As at queue stop we don't reset vector related rx queue fields to their initial values. Reported-by: Cunming Liang Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index cbb16b6..a0c8847 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -2400,6 +2400,11 @@ 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_start = 0; + rxq->rxrearm_nb = 0; +#endif } int __attribute__((cold)) -- 1.8.3.1