From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4D774374C for ; Fri, 7 Apr 2017 10:15:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491552914; x=1523088914; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=J2LJokrVbYgZk8nnxVMmddo9zrPduxD662pje2vjWos=; b=g9T61VvKkunXpZH7Aukv/fwkAP2WJFMZjJZnRoULxeB1PiN0JWjXArof JD+WYGLVFEEH1cEOyQdXQEzDUEQL+w==; Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2017 01:15:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,164,1488873600"; d="scan'208";a="953273494" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 07 Apr 2017 01:15:12 -0700 From: Yuanhan Liu To: Gaetan Rivet Cc: Yuanhan Liu , Adrien Mazarguil , dpdk stable Date: Fri, 7 Apr 2017 16:11:44 +0800 Message-Id: <1491552724-3034-27-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-stable] patch 'net/mlx4: update link status upon probing with LSC' has been queued to LTS release 16.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 08:15:14 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 400ce9bb7e486edb717719884a40d8ea71afcbf6 Mon Sep 17 00:00:00 2001 From: Gaetan Rivet Date: Fri, 3 Mar 2017 16:39:56 +0100 Subject: [PATCH] net/mlx4: update link status upon probing with LSC [ upstream commit 3fca2ab597d80dbb3052ec691342ca6a8e1e508b ] If LSC interrupts are enabled, the application expects the link_update ops to be executed by the PMD itself. No link status change event is received upon probing, therefore the link status update must be forced. Fixes: c4da6caa426d ("mlx4: handle link status interrupts") Signed-off-by: Gaetan Rivet Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 6d43a97..262277f 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -5857,6 +5857,9 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) /* Bring Ethernet device up. */ DEBUG("forcing Ethernet interface up"); priv_set_flags(priv, ~IFF_UP, IFF_UP); + /* Update link status once if waiting for LSC. */ + if (eth_dev->data->dev_flags & RTE_ETH_DEV_INTR_LSC) + mlx4_link_update(eth_dev, 0); continue; port_error: -- 1.9.0