From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Wang Subject: [PATCH 4/4] doc: add switch restart support to fm10k guide Date: Sun, 22 Oct 2017 14:37:20 -0700 Message-ID: <1508708240-69814-5-git-send-email-xiao.w.wang@intel.com> References: <1508708240-69814-1-git-send-email-xiao.w.wang@intel.com> Cc: jingjing.wu@intel.com, jing.d.chen@intel.com, Xiao Wang To: dev@dpdk.org Return-path: 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) In-Reply-To: <1508708240-69814-1-git-send-email-xiao.w.wang@intel.com> 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 ~~~~~~~~~~~~ -- 1.8.3.1