From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29897A00C5; Fri, 8 May 2020 05:59:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5F8C1DBED; Fri, 8 May 2020 05:59:16 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id AEAEF1DBE7 for ; Fri, 8 May 2020 05:59:15 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id a4so270200pgc.0 for ; Thu, 07 May 2020 20:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U4iHkhmV2HZjimwPJC3OyMAs5dJRaGqmF5BPmQbe+4w=; b=mZ2XE7p/2TKtDWs9iddr8aMNkzeXtUklpzdLzfPtcEySjSCeSfcYTtRdaswZgRWlZM cpJRGzkt1UkRJHmxOejewm8IQoLe+GN8lE8c3MfoDfG2sx1sYJ1TERk3kjPlHLhXSX6m jmNetVqzobSxJfF2rgt2muko6jVYpYbMBjXsWqloogfKRmk10GFfumHbhE2rPrk9oorB 3AyMOALvu+D445F3PUIIgmrFdzofPj/DRsA3v6ZbfysXEX2VdJV0N0wYUzuADG7yosnN EaUIr/Qf5Y5F+Vbjf3TKCTdcnrGHWY7V12Iiz4yCtVhNmPkvHrNugiMHRKHYINTu9nSy o6zQ== 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:mime-version :content-transfer-encoding; bh=U4iHkhmV2HZjimwPJC3OyMAs5dJRaGqmF5BPmQbe+4w=; b=fA22eQhctYNmIXYPgGDD9UXVSOeh3pwWAGBmYt+2NtI+kjH/NEutLKlAjX7DnnHDZW eFwfepo46ONoMS1Ikp3Wam14YBeaOfWqJ2FzEEbBdUlm4dDGjE6i7IoeBby5w9n1Rq4K 2lDMHP35x62oi+kEXVAP421bMFVfDEn43QwCW2UteCTG3m/t/4DCC+jRTfDtF1+RKH8c dsmDdTHwaMpmyFAkDTy4Yplwesz/VuiyvBxl1ZVpg9YCiGD4da7ky8O5Voo3Nxx6lpkT rJn4hT35iUt8Aa1O3qzphd6GWV4H8t8ZaHjF9+GVCC4Y7qxiZqIN6pTvdCZgnYgEPOVK yuOQ== X-Gm-Message-State: AGi0PubajrvPHtAKv8tDo/KpvK1ScRzxYS6jhg0Lkh6n2VuIMCSjXxka zG4ThX6HNCrA1JRU5tMfwrR4r2EIE7avmA== X-Google-Smtp-Source: APiQypJ7IlRSf+/Ad+3rj3NzsAp3SsLKsRVLWthAPwI1WpUcEkTj9duhZiXMkdPfcdzCqIlTZqAq9w== X-Received: by 2002:a63:f809:: with SMTP id n9mr465501pgh.355.1588910354308; Thu, 07 May 2020 20:59:14 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id fv14sm1130694pjb.47.2020.05.07.20.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 20:59:13 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 7 May 2020 20:59:03 -0700 Message-Id: <20200508035906.18359-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC 0/3] Auto enable hotplug with netvsc devices 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" In Azure, hotplug is a requirement for a working application. Yet most applications don't enable it because DPDK hotplug support is opt-in. There are three options: 1. Blame the application (this seems to be the DPDK default) 2. Fix the design mistake (too risky at this time) 3. Automatically enable hotplug if necessary (that is what this patchset does). Stephen Hemminger (3): eal/hotplug: allow monitor to be setup by multiple places net/vdev_netvsc: automatically enable hotplug support net/netvsc: automatically enable hotplug support drivers/net/netvsc/hn_ethdev.c | 5 ++++- drivers/net/vdev_netvsc/vdev_netvsc.c | 4 ++++ lib/librte_eal/linux/eal_dev.c | 15 +++++++-------- 3 files changed, 15 insertions(+), 9 deletions(-) -- 2.20.1