From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id B56E47CC4 for ; Wed, 26 Jul 2017 15:36:16 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id c184so78914505wmd.0 for ; Wed, 26 Jul 2017 06:36:16 -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=di3cYQXTLjMCflK401eAgkzBromjuO0ttxG+myBUM5U=; b=AUw1lXE2Fjm80eFRGdSUKgSHZn52aPkuuBlfZh4AXt9pjrnaAVKxwFppzN/YTq3MUv ReLfTdd7YlsGj9hWi3ISOYG0qSHGkqqgfbkRAfBskJilkxLOX/K/vmO6TJ5FgwRRxwb3 +tNxrChP0KpLLnRccReveA+Mvgb+eZUpiS2su5KLZbYBNeaMR/vL4g3sv4AXy2jGw4lo b03qnYnSyByTk9V6FKxZfr1Mr1q1Z2tR3qelqBNehMdAmAP1nWPWNHvPBz19cfh0D+gY Fa7l1zn2XPWZ2/g7E9Z7mzM5nqOhrOqrkwgemdyFINnzDfnakYDaT2+BgfzadHpOnPQ3 GrUA== 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=di3cYQXTLjMCflK401eAgkzBromjuO0ttxG+myBUM5U=; b=rDcrV72hy1trBYZQ9AjnM7/3m6l5PmwAoeAaa+lQLeZaT/BPqghQ/UfoRt/Qe3+L7w 6IOKwutUeOnWjqSn4zPYbbLYT9I5FJx7Ry8WWcKKZLeHG/F8Xn8zoOtVdwVoxihtxc7F kRGmMnq4vLjqOx25EeiHo5Vm6G11mgOW2IJ3kcTmL1fQ1sfN36avJ+t9ABElJV3GXDYY FxuxQ1GCjQ1fD8NRWgYH/KEyGDZoJW/wIWTdoS5lPXPr8kYnEWXBv3dcE7aUjmSkM4zC 8TpcxI5NK9d8cLU+wlcjiM8gV94HN7tPobBMOV1C9BoKHxV7p21RvG5LRDTb24wcXxW8 gdaQ== X-Gm-Message-State: AIVw110v2vm3IqDXSC16UjMoAkyvE6P6/IuB2vcF7w6Imj6yYBgxnO5q J/J3ndqVj5NpOn7H+2I= X-Received: by 10.28.68.85 with SMTP id r82mr760208wma.21.1501076175966; Wed, 26 Jul 2017 06:36:15 -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.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 06:36:14 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 26 Jul 2017 15:35:55 +0200 Message-Id: <552b7938bc361768bb36c5340ef897d4e4fe9782.1501076035.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 4/6] net/mlx5: 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:17 -0000 Signed-off-by: Gaetan Rivet --- drivers/net/mlx5/mlx5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 49d4dba..5fd0e76 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -788,6 +788,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) eth_dev->device = &pci_dev->device; rte_eth_copy_pci_info(eth_dev, pci_dev); + eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE; eth_dev->device->driver = &mlx5_driver.driver; priv->dev = eth_dev; eth_dev->dev_ops = &mlx5_dev_ops; -- 2.1.4