From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by dpdk.org (Postfix) with ESMTP id 91FF97CF1 for ; Wed, 24 May 2017 17:20:21 +0200 (CEST) Received: by mail-wr0-f178.google.com with SMTP id w50so57094644wrc.0 for ; Wed, 24 May 2017 08:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=prJVJuRYrvFtErUjYIrIEE/uMpOzpUciDh2dNk7kIEA=; b=rctCTeJG4Juah60YkFEDD1oa9zjeqR1vBiRv+utG9O5fNyI2Nvg6QdoX9VURzKqg8j SbIWgsQxVFziSxgzjfcoCww62fl5ihqcdJLBiYYkOia3HHlELP7GyiWbwJ6jA76EV34B w+H+fLPVhNDOxqZh2qRbi3EX0HLMLO0yeTdVh1RKI22dC/rkGrwfEuu5vX6AwKQOXLPY C/HD1ypAGWI0IFmSa9MMlxnCdHDYk55WSUIYKIEqsr/kfwykSYlxf+fVjr5YqRhiS0h9 fZw49pV0xJsi2YSaT1aI0lGf8KMkSNmPcoRs+q6D6q1x9YKE7L6HVKRpW29JpA3bMXAA bYlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=prJVJuRYrvFtErUjYIrIEE/uMpOzpUciDh2dNk7kIEA=; b=c0XKAsxVTcVEitOGenFGqUnSvQVoaBlthX4tGJxpQk69uCRbU3xC8N42Yqac8x2pBL /rZkERn7Wj98UESjgEv8zYQY1M0r2AkQ2ORQHs4stzfbvkUtsU6QwqSvLwkc08ExRwCu 3Ydc+J9zer4hH0whGldGEsEAXtIi2wJ+7LFs9c1pBHNDFwK5q5swg5N/U+1GPa9gyx4Y QoXlMa37b4CR0ZQQxMFtF8gIuiDMbsaxeWh5OemKfNUaUMP0bG+ilKUPagx6sqwL/pnC lzl7VSw7FA3C4JSb2AyAcoIKPl1ehGOq/JlH3+kKw/BgujKZ1QGU4LBHfaVG9JwCVzdu XZBg== X-Gm-Message-State: AODbwcB86tz9i6lsVLcZI06nDde4exY+c8mwV2HdpHljtCINQecPImf+ P4ryWljcloKKfwnWwcU= X-Received: by 10.223.151.203 with SMTP id t11mr23162062wrb.18.1495639220923; Wed, 24 May 2017 08:20:20 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id t85sm5444271wmt.23.2017.05.24.08.20.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:20:19 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 24 May 2017 17:19:58 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH v3 00/11] introduce fail-safe PMD 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, 24 May 2017 15:20:21 -0000 This PMD intercepts and manages Ethernet device removal events issued by slave PMDs and re-initializes them transparently when brought back so that existing applications do not need to be modified to benefit from true hot-plugging support. The stacked PMD approach shares many similarities with the bonding PMD but with a different purpose. While bonding provides the ability to group several links into a single logical device for enhanced throughput and supports fail-over at link level, this one manages the sudden disappearance of the underlying device; it guarantees applications face a valid device in working order at all times. Each fail-safe instance is configured to run atop one or several devices, with one defined as the preferred device. Hot-plug events are handled on all of them, and Tx is always directed to the preferred device if present or to the next available failover device (Rx is always performed on all devices for simplicity). Moreover, the configured slaves (preferred or failover) do not need to be present at initialization time and may appear later. Slaves configuration is continuously synchronized with that of the virtual device, which exposes their common set of capabilities to the application. Failure to apply the current configuration state to a slave for any reason simply reschedules its initialization. This patchset depends on: eal: complete attach / detach support http://dpdk.org/ml/archives/dev/2017-May/066366.html http://dpdk.org/dev/patchwork/patch/24522/ ethdev: add flow API rule copy function http://dpdk.org/ml/archives/dev/2017-May/066145.html http://dpdk.org/dev/patchwork/patch/24406/ ethdev: add isolated mode to flow API http://dpdk.org/ml/archives/dev/2017-April/064327.html http://dpdk.org/dev/patchwork/patch/23741/ v1 --> v2: - Wrote documentation - Fixed commit logs, signed-off-by - Added LSC event support - A few minor fixes v2 --> v3: - Numerous bug fixes. - Complete sub-EAL rework to follow new bus API. - burst protection on sub removal. - more flexible sub definition. - flow isolated mode support. Gaetan Rivet (11): ethdev: save VLAN filter setting ethdev: add deferred intermediate device state ethdev: count devices consistently net/failsafe: add fail-safe PMD net/failsafe: add plug-in support net/failsafe: add flexible device definition net/failsafe: support flow API net/failsafe: support offload capabilities net/failsafe: add fast burst functions net/failsafe: support link status change event net/failsafe: support flow API isolation mode MAINTAINERS | 5 + config/common_base | 6 + doc/guides/nics/fail_safe.rst | 186 +++++++ doc/guides/nics/features/failsafe.ini | 32 ++ doc/guides/nics/index.rst | 1 + drivers/net/Makefile | 2 + drivers/net/failsafe/Makefile | 74 +++ drivers/net/failsafe/failsafe.c | 305 +++++++++++ drivers/net/failsafe/failsafe_args.c | 475 +++++++++++++++++ drivers/net/failsafe/failsafe_eal.c | 140 +++++ drivers/net/failsafe/failsafe_ether.c | 413 +++++++++++++++ drivers/net/failsafe/failsafe_flow.c | 245 +++++++++ drivers/net/failsafe/failsafe_ops.c | 869 ++++++++++++++++++++++++++++++++ drivers/net/failsafe/failsafe_private.h | 377 ++++++++++++++ drivers/net/failsafe/failsafe_rxtx.c | 204 ++++++++ lib/librte_ether/rte_ethdev.c | 38 +- lib/librte_ether/rte_ethdev.h | 24 +- mk/rte.app.mk | 1 + 18 files changed, 3381 insertions(+), 16 deletions(-) create mode 100644 doc/guides/nics/fail_safe.rst create mode 100644 doc/guides/nics/features/failsafe.ini create mode 100644 drivers/net/failsafe/Makefile create mode 100644 drivers/net/failsafe/failsafe.c create mode 100644 drivers/net/failsafe/failsafe_args.c create mode 100644 drivers/net/failsafe/failsafe_eal.c create mode 100644 drivers/net/failsafe/failsafe_ether.c create mode 100644 drivers/net/failsafe/failsafe_flow.c create mode 100644 drivers/net/failsafe/failsafe_ops.c create mode 100644 drivers/net/failsafe/failsafe_private.h create mode 100644 drivers/net/failsafe/failsafe_rxtx.c -- 2.1.4