From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id E15B87CBB for ; Wed, 26 Jul 2017 15:36:14 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id f21so75297635wrf.5 for ; Wed, 26 Jul 2017 06:36:14 -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=ZNfGDiXGoCqrRGtnBEzK+w97uF8HSRAI6I9R8fkkv2xCf9dqAL/vxk/3GqBGH7ktVE aOSh5c2+7hjdWi1Rk1hqugt+8sajAAbVwRdZjhUeYRCM8/2BMH6sMCmaiTD/kRua5sXj K+4XjvlDLcRvQKtpo0wsZESjmIlKmwoMWHzGN45ZBcGsFsXIcbmyh4N0W2i3xZmkClXc WQrm2AZeTl20OFnG1EF9J/NtNasEQJwg7Q0o8gzB+O7oQXFA0gHfl+hsTPK4hEfIylSr RNk4H1JEn+/JF1aujDGu0cw2I7MK3TkXjy3kECgfHCcEmS9U0YyqFWI8X/IXuMZR9kwi /Udw== 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=YuTcLmT1hJE5lcnBPVkRPPGjk71T0EYOWUxo3RG8JT8rbPl2Jn3xsTDLLs1PX6mEz0 ae6KwKsjnfRVIA8Eg5C1x3m3DEBTNJIx1ulbGckG9H2EPHLP3iG3xT+XVR9if7xVuZrl QTna23xCZCaLgk2YxAGEUDnFkCRtj6FNQmG5s4irDN83B7ejGGNuzNP0kpOzSCxYuL1D Hogskg4AqphvHrjmTexb4l2yJAeFoX2U7hq7GqcnSsG15qsjeHJn3AGwYJnWA9Blknkm dGKiD6kmlTi/1YT7sbd+sDNjcxD11hAZJo/VacTbGCJ3t0r4qAFwAo5hnZfT+loNs8m6 +r2w== X-Gm-Message-State: AIVw113jZIRlbebRAfe2DQ+4HqDGaNOmbu508+6UZzuh/9JzotupcdJp iSp6JFXWGFIJ3YB+t24= X-Received: by 10.223.170.217 with SMTP id i25mr890717wrc.140.1501076174310; Wed, 26 Jul 2017 06:36:14 -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 c13sm3144707wrc.7.2017.07.26.06.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 06:36:13 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 26 Jul 2017 15:35:54 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 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:36:15 -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