From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50])
 by dpdk.org (Postfix) with ESMTP id C70937CCA
 for <dev@dpdk.org>; Wed, 31 May 2017 17:15:28 +0200 (CEST)
Received: by mail-pg0-f50.google.com with SMTP id u187so9339565pgb.0
 for <dev@dpdk.org>; Wed, 31 May 2017 08:15:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=date:from:to:cc:subject:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=2+wULjQKmrLV/7B11y6iMS7Z0+m32kCDicguv44luPQ=;
 b=tSaqvAC8UJ1MWdxr0F5l+5UpVDgis6ZfZTGntzRlK70mvB225Q1aejsbqqLiEG3pib
 Ljo5R5se94G6fQNneHMUW0T+Z51zckcMM/UJ/R/BxncZWV9qYCZHiPPuQmSYtsrTz1Fy
 MfcuSUqGSA8tqaLcdrv+HQ8LFKJJXL7f6zl6BezvEPLGiql7PE8pVWdiUERDMMvY8zZ3
 613xSmAejG7+gaWRefFFzUZK0WtpKr7EXmFcPmX0WR4Je18GMLoHOfnuwCXL8iVCtdUA
 NhdwKYv2C54IiQ4tdEJA8YaN5hXiuxzgVJeRiwc6XTnyfSNdE1ep+gMk6PREvm+okubR
 gIbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=2+wULjQKmrLV/7B11y6iMS7Z0+m32kCDicguv44luPQ=;
 b=UILafaerZSKnPiyn6Gf6XWkM7txjg698CNvuzXAWcnZ2a7xDzBpkza+rBZeJWLAHni
 mNEoldO8INvwXtdg0IKYCIj3+gAwpwn8qM/lmKbr5nHWuCOFILJzRFkPyqS4igkGxF3v
 IM8/awiK/bXRkGUCZ4+7GUe8smw71y3xc641DLtFkFwF2CPPloWjlMzO8Y+crGd8/Wq4
 NZHPhKThkvvnlXqqrq0F5Dh/VY4HQPWgk1QKWzWtB75pDu1diqN7a7uYH64NGRE+QcFd
 lV8W9k4XHsP8bLNCWAUupoLjv5Crw+/Rhy1JEJVz1hgCWqrBBVOSzW9YRyI3fOju504G
 8rqw==
X-Gm-Message-State: AODbwcBoVSvrZRihYJaXH4YYiz/wJmOPHlM/o0OVazWzGtwpp7FhkYlC
 LxYfEOCgn4a0qcfd
X-Received: by 10.98.18.157 with SMTP id 29mr30125357pfs.75.1496243727919;
 Wed, 31 May 2017 08:15:27 -0700 (PDT)
Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240])
 by smtp.gmail.com with ESMTPSA id a78sm34115982pfk.122.2017.05.31.08.15.27
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 31 May 2017 08:15:27 -0700 (PDT)
Date: Wed, 31 May 2017 08:15:26 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: Gaetan Rivet <gaetan.rivet@6wind.com>
Cc: dev@dpdk.org
Message-ID: <20170531081526.3e8de246@xeon-e3>
In-Reply-To: <6b96432155ffd2d5fc6f6011a0b229c2224116f8.1496065002.git.gaetan.rivet@6wind.com>
References: <cover.1495634974.git.gaetan.rivet@6wind.com>
 <cover.1496065002.git.gaetan.rivet@6wind.com>
 <6b96432155ffd2d5fc6f6011a0b229c2224116f8.1496065002.git.gaetan.rivet@6wind.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: [dpdk-dev] [PATCH v4 05/12] net/failsafe: add plug-in support
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 31 May 2017 15:15:29 -0000

On Mon, 29 May 2017 15:42:17 +0200
Gaetan Rivet <gaetan.rivet@6wind.com> wrote:

> Periodically check for the existence of a device.
> If a device has not been initialized and exists on the system, then it
> is probed and configured.
> 
> The configuration process strives to synchronize the states between the
> plugged-in sub-device and the fail-safe device.

There are existing event models (udev and netlink) that could be used to
do plug-in support without polling. Polling relies on application doing
rte_alarms and many don't.