From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id CE13C7CBC for ; Wed, 26 Jul 2017 15:30:49 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id m85so67667668wma.1 for ; Wed, 26 Jul 2017 06:30:49 -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=qWbMSEvvg3kOLaxBpdZWuYbslSKFWxO5dXNaUK4hODJshyyHHi/SvKNh0bi6tsJodd lzPmgKcf4uXEWMo7JqiaUt0AKMRZurl7gpRYM5Xvlhq52tHiYNipYAlO2YBCVBuOD2Wq L2tFfo/RJhAfOOPVjyoriHQgJWYGiCvnMX2Z3nq5CQkIDMMueGvWS1Y1fsCFf80/utax F5mlghqWPIo4Q/v99mzWhYEd5ByqPgC4pT3O06ErC3uuXHK9fXI15lObn+ikQ/Qr2/xZ pK+RTtekllw/gn6WXJcIrR+iH4ZCAWvVOIjKuegxFm/0cIKHf/5uxSln2qZY2uTLLBzN 51Hw== 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=QOkZroCxp1UyCkD5TBg6J+DwaB7TUYU42snUUiy8rGp1MrrY7q/sRP1/cWZ/dPYSD9 a6ePYnxbfeWXPQJSpWA6jpRMzsMm9R4yWYet70ZG9QsgCSJ6XC39KbTRC6jZXFcUBgQD BlfZgZcVPxggzaNp3a4JzRWY68DuPhhLr7T/n0iFakv4Wg3Kbo1cHlv4FGLL2lwXcgU1 L8hgkqeQ5FcFx6SyBKNZ4CZFFd6/FGIKjkf82LIhk3AXXpaqOmzEjPJxgUBUV0igBhjB JDegXUxRiEFjlDZO/yDSY1bFPcsNTarOJAiB2HJAnP1KYNeuV28om9pag+YSfyyUzjq/ MBpw== X-Gm-Message-State: AIVw112Tw02xYZNC1SHflYYyTJ3gn/chDNRVSqZkYugG7FeCr9xYgocN eXhlm/3/k8eUbpofd+U= X-Received: by 10.28.133.209 with SMTP id h200mr766421wmd.20.1501075848722; Wed, 26 Jul 2017 06:30:48 -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.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 06:30:47 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 26 Jul 2017 15:30:20 +0200 Message-Id: <650ccf5ce25745e35bb5a6e175d2f10fa038f189.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 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:30:50 -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