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 13FCE7CC9 for ; Thu, 1 Jun 2017 12:44:49 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id 123so3089976wmg.1 for ; Thu, 01 Jun 2017 03:44: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=R7v8A4p3i0ig5o9+vtcIHRLXHupE9B+bfMTkwzBf/rI=; b=PIo11PZZLYVzNJZDeE9IfnaFoWXt5EUQUjbUuZQIgLzO2vSymzM9am+JZpiaJfIyWB OAbR3HfDiMOGdTLWJZWK4GrSdgsH0UDrlRUBAmathu/hz91f2e1w563IMXVULHJwUILA OXaZl5WUcj0vKlrRlpoKzr3u/SgF6A9lprf2zVxXMf2HLSXv0GhpMh4ZyrAOBG9xw+yJ wxKjBxTxfrknErDo16CrKBkE4t+gz2hnBt2hBEBk+ptoRUxnm1deXSDeSCzxMc+zbv2y oL11WjwZIIt6bnvV3acLS01nOlIymbawIMRBFy+I4AbnmMGfZ6r2xAvSfgRJjDXvlefA FgDA== 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=R7v8A4p3i0ig5o9+vtcIHRLXHupE9B+bfMTkwzBf/rI=; b=edJaRrsQHmG9xoFYEpXjCBgqsFLgp/26uA2n3nbO/QfM10wX1rYRSlxM8NZGETneC6 CTB/hARwysirNOVRB6oZjhXy54YhrBvftwRsckic/qT6vVn7LGnCaLyVZAFbQd7fNl79 XtG7qQsakkQYjy0tghpZ/LVlZko11uy6PT00NtAF76ivfKSkBkXCGAPZEOPap8e5pQj5 LL9frbyM0+TSqiHII0ZZl5KUxqWlD0D7PvMojRE70DPADai36kDNirGqREh9HyQ6N9iJ +swzH+uyl4WBCBZb0FVXjXZth3FW33PoIEPoZn5537R49yb6qBtan58xVyTyaiqpdVzI MMHA== X-Gm-Message-State: AODbwcBYbpx46TaCI5R6Mgh90lJQlNrrP8S584tlJadICHP7bVwuKSqU 4yjRCK6ZQu4I+e8NJPU= X-Received: by 10.223.132.39 with SMTP id 36mr746251wrf.179.1496313888563; Thu, 01 Jun 2017 03:44: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 p78sm10542314wmg.5.2017.06.01.03.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:44:47 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:44:33 +0200 Message-Id: <0db089a5094090564baebaef102e88e13589b0c4.1496313294.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 3/3] net/mlx5: net bus support 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: Thu, 01 Jun 2017 10:44:49 -0000 Signed-off-by: Gaetan Rivet --- drivers/net/mlx5/mlx5.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index fc99c0d..4e33703 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -58,6 +58,7 @@ #include #include #include +#include #include #include #ifdef PEDANTIC @@ -898,3 +899,12 @@ rte_mlx5_pmd_init(void) RTE_PMD_EXPORT_NAME(net_mlx5, __COUNTER__); RTE_PMD_REGISTER_PCI_TABLE(net_mlx5, mlx5_pci_id_map); RTE_PMD_REGISTER_KMOD_DEP(net_mlx5, "* ib_uverbs & mlx5_core & mlx5_ib"); + +static struct rte_net_driver mlx5_net_driver = { + RTE_BUS_NET_PCI_HEADER + .driver = { + .name = MLX5_DRIVER_NAME, + }, + .kmod = "mlx5_core", +}; +RTE_PMD_REGISTER_NET(mlx5, mlx5_net_driver); -- 2.1.4