From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] bnx2x: always reinitialize the rx queue indices Date: Sun, 13 Dec 2015 01:25:27 +0100 Message-ID: <2892987.lHi1rPr1o5@xps13> References: <1449699064-808-1-git-send-email-3chas3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Chas Williams <3chas3@gmail.com> 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) In-Reply-To: <1449699064-808-1-git-send-email-3chas3@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-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