From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 3168C7CC2 for ; Wed, 26 Jul 2017 15:30:48 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id c184so81702482wmd.0 for ; Wed, 26 Jul 2017 06:30:48 -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:in-reply-to:references :in-reply-to:references; bh=xO+KA9GK19FqhI9IvmOYIljn0XLznv8QG1uoJgC1CeM=; b=1i4FXquHE5+YTBoWAxEf0N1O0iV1lDtjp+yygIFEUS2M0oFwNieSOrmrRcntJ3Ha7T br5dRvmN69SMb7xED0hazkj7csGqmkHNBLrUr50i7aSDy3YaNId7+7sROPRSldhQlHaj 5930LuiJNLyHCwqxXGVAhhEDfyhRwWiWLu63SZcsLyM0SqcyQ6dDEl3J5nshvXBCu5Z4 pj/JldGtTh1rFGzIzhehdqhJ1ThMxmaWXsgQzLH1Oizz5eWBDVF1N/ZgzPuuLcJc8hmB uAHUJC0IpPLhSrgjD5CHkUBvlusfnEMC8/ahVx5E67i6lN3thXj1Xgt4S/Timf6vw91u JdcQ== 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:in-reply-to :references:in-reply-to:references; bh=xO+KA9GK19FqhI9IvmOYIljn0XLznv8QG1uoJgC1CeM=; b=B1D6Re41Sd2Vc4SclBbCp+8+STmVkBM5xe86gYOupT1KSR/kloQthB/WKla4sb3MXo yr8j8gs30lGT/CIvQPZ0uiM47uMAmz2U35ZZ5KGzAc34PDi/eNQLximVUfWFh9dDosiX A1oQprLfVr49IWDnXDfv/eJY0kVheEesxBpWqx8u4aaqwe23Z37iywSpMeX/IRgsVtGm EzeMgp/00jQkWlG4iIEE/xZ07WlldkrBRYzq3NjoVMOhl1J2hZQcAGBu15G/0YSTzCUi nfyPxjxFZDLMA+X0x/9imzDVVJ2Zvk6MVos6zB7rQaKiR3DiWrgeIaBCoOPf48xg/9yW JX+w== X-Gm-Message-State: AIVw110Xz9E2z5N99prbJuCXW8aox8hFHx90A7hSoDY56bSdDE8oJ7o/ Vey5jry+BThg4HjsgXE= X-Received: by 10.28.5.19 with SMTP id 19mr792162wmf.20.1501075847505; Wed, 26 Jul 2017 06:30:47 -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 d26sm16186659wra.92.2017.07.26.06.30.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 06:30:46 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 26 Jul 2017 15:30:19 +0200 Message-Id: <1f02c442a601dbec90bfd134a2962eb3cdab8a26.1501075227.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <5ec0604196fb087a42fa75e6ddc2a04aab293593.1501047767.git.shacharbe@mellanox.com> In-Reply-To: References: Subject: [dpdk-dev] [PATCH 3/6] net/mlx4: advertize the detach capability 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, 26 Jul 2017 13:30:48 -0000 This PMD supports hotplug, it is able to be detached. Signed-off-by: Gaetan Rivet --- drivers/net/mlx4/mlx4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index d41552b..8451f5b 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -6376,6 +6376,7 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) priv->dev = eth_dev; eth_dev->dev_ops = &mlx4_dev_ops; + eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE; /* Bring Ethernet device up. */ DEBUG("forcing Ethernet interface up"); -- 2.1.4