From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B5C931B1B8 for ; Wed, 24 Jan 2018 16:38:26 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 697E220A88; Wed, 24 Jan 2018 10:38:26 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:38:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=bTtPnqsIUJG+f9ljx N8w8VQznGsBlbL0JCtBm6ln1nI=; b=BEpCNxCiTBQxwGnueB9Oe02h12lJC+W3k uhz96zOyj9DxtPPXy/+hvNYMiMqUEBuK8foj8ivlhfTvRX+7F2R6ViEjjH4jL3Hp gqkeyjEo/syVE6+70oehaYZsQdFYW5H2IF9YADlDOLHJGat2MwGYwZq36Qy7PR19 j+12u3wn9GhOepexEGBRwO1OJWLLFUG3Aq8C9FKSqNLSffhHXyE6zNuWTaPXEJh2 D6R+OZufHkvWGYr17ww7s+2q4e6h8YfLfV+oyO643Va+Im7QBjyZHWLF2r59+Mbz eCh/QjmLnLh2PcRQEX4JCAR0V4cGwtnExE4nvpUI4BxLgtukeBnqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=bTtPnqsIUJG+f9ljxN8w8VQznGsBlbL0JCtBm6ln1nI=; b=G/Xv1jzt BwQPmE+s45L2BNhQC8nFhGmviF7J6alFh7Vk2aBMRNUyALZHGJgXqpVhg5jIjCxm qteb+GNgMUattMg3AzepkQvOv27oYW+vxVE8SCaBU2iPY6Ahz+/uZhrtpDmOKlCt YenmYYZBu1DduSX1pl3P/XGaNkJobJQT8DAkRaIe58pYOE3SOdZLKORf2Lf2RRcC zlGPT0RDybt6vsJhzBPPZyB8v66GjwgINzuaC4c786HKpNOp6E8/REkRtrShv213 ZkCmaN2tNJykJOAyaDT6kog5wJ5UwbQ+cWmnvi6Eh7oLlhJIjP0gECqT+cZuoiMc y8ipdZnJVXkNJQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id A43387E46B; Wed, 24 Jan 2018 10:38:24 -0500 (EST) From: Yuanhan Liu To: Xiao Wang Cc: Helin Zhang , dpdk stable Date: Wed, 24 Jan 2018 23:32:06 +0800 Message-Id: <1516808026-25523-58-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/fm10k: fix logical port delete' has been queued to LTS release 17.11.1 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: Wed, 24 Jan 2018 15:38:27 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 4a8cdc6f4b81cd8bf4c10e835925e13d834f298e Mon Sep 17 00:00:00 2001 From: Xiao Wang Date: Fri, 8 Dec 2017 17:55:41 -0800 Subject: [PATCH] net/fm10k: fix logical port delete [ upstream commit fc7943aa02f702c528d1a884c91c0939ea443bfb ] When closing port, we need to send mailbox messages to switch manager to reset multicast mode and delete logical port. In the latest IES_SDK, e.g. v4.3.3, switch takes longer time to handle these mailbox messages. So this patch adds longer delay to accommodate this change. Otherwise, the mailbox will be closed before all the messages are handled, as a result, the logical port remains in switch manager after port is closed. Fixes: b961fe9344dd ("net/fm10k: fix MAC address removal from switch") Signed-off-by: Xiao Wang Acked-by: Helin Zhang --- drivers/net/fm10k/fm10k_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 2d05a46..58dac38 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -54,7 +54,7 @@ /* Wait interval to get switch status */ #define WAIT_SWITCH_MSG_US 100000 /* A period of quiescence for switch */ -#define FM10K_SWITCH_QUIESCE_US 10000 +#define FM10K_SWITCH_QUIESCE_US 100000 /* Number of chars per uint32 type */ #define CHARS_PER_UINT32 (sizeof(uint32_t)) #define BIT_MASK_PER_UINT32 ((1 << CHARS_PER_UINT32) - 1) @@ -1242,7 +1242,7 @@ fm10k_dev_close(struct rte_eth_dev *dev) MAX_LPORT_NUM, false); fm10k_mbx_unlock(hw); - /* allow 10ms for device to quiesce */ + /* allow 100ms for device to quiesce */ rte_delay_us(FM10K_SWITCH_QUIESCE_US); /* Stop mailbox service first */ -- 2.7.4