From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id AB7748E81 for ; Sun, 13 Dec 2015 01:26:44 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id p66so18407858wmp.1 for ; Sat, 12 Dec 2015 16:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=l9/SfDT7vZepkTSxJIqPRDZlFuMmRcgzn2zjVoMweRE=; b=JnJuYAqqJi5zaTvXCzGvWhWQRXDHUlUoIbElK8IDqZijNXB2/4rDVpVHmd4prEpbeV snX3nYOO8UunD3xV8LzTdp1ITamDQtxVKr4aGOpCrRy1bZ7NelzXrjbQpxBD0fiZIImO ZhOVGOPM257qaxZDX0ZYJvHxYQ4AZRusz2xzf2kfcV6q4P0tNKx4dzzx4QWz0pggq6Ah Vt5oscIbqF1SmCW+qb0goViwjs6JLXMlXYlOjypwhig4T7gz2zMc+SzcvYGj3xu6S+yY sOtxj7Z9wgkhWPQkh91ivYi/ATQOUuW6JSylYOGKDthAedC9hNUiUL83v6l8gnVa3dki t2Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=l9/SfDT7vZepkTSxJIqPRDZlFuMmRcgzn2zjVoMweRE=; b=LLGOdd7gGGXQ5nRNltH3ThdVqcwMz3EGinx4OSnp/GxkLI6o+Ki08LRtn8Nl9H5pEV q2+RgFwRqPC0JMze6Q8TzQi8mb3Lsh5cf9TGrq8PRSrvyNwKGvyhcujCXxl5XkJ4jgdx SyNoCfLVlI3rY1/UfCEp48tAGoNQhQHp9nEhAHcmMja+6sKhLWKk5nGpiA5IipDSvY4t /7EFf0bTwpVBpzau9Vvamu0v7O2Kyk47oPHl5ALNtlk3Hx63WNAPJAioUvlGOdGwJz6r Y9ilXPrm4KJmDpxMWK+P0dWuewVLYsBhYkbBdjEwhDf3rRacjx3vaqbhR1O7NN+VnS+j gSIA== X-Gm-Message-State: ALoCoQk/NnNOBciTbzWFezvvjVG1WituB5jruay32QiACk962YvS5CeG6Klh/zWf3FK0/iZ8aqcBAtPBWjlQfLCnYDlraZQu6A== X-Received: by 10.28.226.86 with SMTP id z83mr16268994wmg.77.1449966404581; Sat, 12 Dec 2015 16:26:44 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id u4sm23063820wjz.4.2015.12.12.16.26.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Dec 2015 16:26:43 -0800 (PST) From: Thomas Monjalon To: Chas Williams <3chas3@gmail.com> Date: Sun, 13 Dec 2015 01:25:27 +0100 Message-ID: <2892987.lHi1rPr1o5@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1449699064-808-1-git-send-email-3chas3@gmail.com> References: <1449699064-808-1-git-send-email-3chas3@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] bnx2x: always reinitialize the rx queue indices 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: Sun, 13 Dec 2015 00:26:44 -0000 2015-12-09 17:11, Chas Williams: > If you stop and start the driver, the rx queue will have the previous > index values when programming the adapter. Therefore, we should always > reset the queue indices when the rx ring is setup. Note: We need to > clear (write) the status block's completion queue index since it is > possibly in a read cache. > > Tidy some init code to make it clearer what the defaults are. > > Signed-off-by: Chas Williams <3chas3@gmail.com> Applied, thanks