From patchwork Sun Oct 22 21:37:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Wang X-Patchwork-Id: 30673 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 923871B38B; Sun, 22 Oct 2017 14:58:58 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 116601B384 for ; Sun, 22 Oct 2017 14:58:54 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2017 05:58:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.43,417,1503385200"; d="scan'208"; a="1027937679" Received: from dpdk-xiao-1.sh.intel.com ([10.67.110.153]) by orsmga003.jf.intel.com with ESMTP; 22 Oct 2017 05:58:53 -0700 From: Xiao Wang To: dev@dpdk.org Cc: jingjing.wu@intel.com, jing.d.chen@intel.com, Xiao Wang Date: Sun, 22 Oct 2017 14:37:20 -0700 Message-Id: <1508708240-69814-5-git-send-email-xiao.w.wang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1508708240-69814-1-git-send-email-xiao.w.wang@intel.com> References: <1508708240-69814-1-git-send-email-xiao.w.wang@intel.com> Subject: [dpdk-dev] [PATCH 4/4] doc: add switch restart support to fm10k guide 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch documents how DPDK app should handle the event of switch quit-restart to resume its network without an app-level restart. Signed-off-by: Xiao Wang --- doc/guides/nics/fm10k.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/fm10k.rst index 7fc4862..51b8326 100644 --- a/doc/guides/nics/fm10k.rst +++ b/doc/guides/nics/fm10k.rst @@ -161,6 +161,16 @@ FM10000 PMD driver. The switch driver can be acquired from Intel support. Only Testpoint is validated with DPDK, the latest version that has been validated with DPDK is 4.1.6. +Support Switch Restart +~~~~~~~~~~~~~~~~~~~~~~ + +For fm10k multi host based design, DPDK app running in VM or host needs to +get aware of the switch's state because switch may undergo a quit-restart. +When switch goes down, DPDK app receives a LSC event indicating link status +turns down, and app should stop the worker threads that are polling on the +Rx/Tx queues. When switch gets up, a LSC event indicating LINK_UP is sent to +the app, then app can restart fm10k port to resume its network processing. + CRC striping ~~~~~~~~~~~~