From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 39E80568A; Wed, 1 Feb 2017 11:57:48 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 01 Feb 2017 02:57:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,319,1477983600"; d="scan'208";a="928914064" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.38]) ([10.237.220.38]) by orsmga003.jf.intel.com with ESMTP; 01 Feb 2017 02:57:45 -0800 To: =?UTF-8?Q?N=c3=a9lio_Laranjeiro?= , Shahaf Shuler References: <1485678163-17737-1-git-send-email-shahafs@mellanox.com> <1485868418-44506-1-git-send-email-shahafs@mellanox.com> <20170131154000.GB16389@autoinstall.dev.6wind.com> Cc: dev@dpdk.org, stable@dpdk.org From: Ferruh Yigit Message-ID: <1e95843d-36d2-40d7-1334-2ee08b0167eb@intel.com> Date: Wed, 1 Feb 2017 10:57:45 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170131154000.GB16389@autoinstall.dev.6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: fix link status is always inconsist X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 10:57:48 -0000 On 1/31/2017 3:40 PM, Nélio Laranjeiro wrote: > On Tue, Jan 31, 2017 at 03:13:38PM +0200, Shahaf Shuler wrote: >> Query the link status can end up in an inconsist state where the port is >> down but it is reporting speed. For that another query is scheduled for a >> later time. >> A race condition is possible between the scheduled call and other link >> status interrupt handlers. When the scheduled query by-pass those handlers, >> the link status will be stuck in an in-consist state. >> This patch addresses the race condition by not blocking link status >> queries in case delayed query is on the flight. >> >> Fixes: 198a3c339a8f ("mlx5: handle link status interrupts") >> CC: stable@dpdk.org >> >> Signed-off-by: Shahaf Shuler > Acked-by: Nelio Laranjeiro Applied to dpdk-next-net/master, thanks.