From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 03F2E7CBD for ; Thu, 1 Jun 2017 12:52:39 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id d127so54992299wmf.0 for ; Thu, 01 Jun 2017 03:52:39 -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=szVuxHy4dGUNp5TkXZ+aDvCKavyZ5QdYOyojZhWR+2s=; b=KAHWkR0xLK/o0uylk49udOdOe+v+Ekd6M0Zjyyyy4QTkIG0RjwvbRx7rrEHK+hi5bN PotkkkRKmKWNsh9zUE81IsRceQ7LK9roa/T8GWqlKNhKSVBs5O7YrwSjeF08pDzqGBSS Os5Jvm7U/d/SLRy6nvuVvaFiIYF3iwPpN5bMrSTPbp89qg0PlyB6bCYmymghIGZACoh3 MHlDfI6Mf7hLNbzxnDDCwkii2kqlBnKfX7rLs7g1doD0WUrw8NjQ8idg1C+E7Vdf0GY6 nBshohmBH1+2mDqJX3hX9TyXTPTOn4I0ctqPtjFmHWF7sVs3vMzIC5wpecNQq3LPESvT qSMg== 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=szVuxHy4dGUNp5TkXZ+aDvCKavyZ5QdYOyojZhWR+2s=; b=ppVdyD/jWc79UZGYubmjP1cDgkHE5efHbXfadSgj4Q7Lk4YXTaR4uEPTIP5aLTUzRd ATx+qn94//D8ewexdQCBxL/yf8C4Mhna2yXdZsyoZ4o4wTWvEOx0xCt0Jhgt2njAa+Oi W5Ap+fdOPwO5AknDq82ax31kOuM2QWA9bulh31/zQ8DtlXE0sCFGTOTS7IHdeuIJji9C W/2SqPlzs8eNyMWTlPoi6kFVwsTMCSI39YdyCZKmRY8MV6VyPO7hg5RHbg2F2vpvBzJF S+08Amnm6yLnKNGjy+a0cKlmZBMUuQ5tyunNY/4/bZYH4/BOTcNJYwcEj6RcpZPfB0aN NjHQ== X-Gm-Message-State: AODbwcBVpyD6RrtjvBWENntS9lw5uPMqnj+fNFzLboOnnYPmXjKv59jp iBiDOjjljzIh6qKyGwo= X-Received: by 10.223.160.148 with SMTP id m20mr787738wrm.176.1496313887430; Thu, 01 Jun 2017 03:44: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 p78sm10542314wmg.5.2017.06.01.03.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:44:46 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:44:32 +0200 Message-Id: <4daf9c4112c28aa0b5a27473134cb904bb9b84b4.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 2/3] net/mlx4: 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:52:40 -0000 Signed-off-by: Gaetan Rivet --- drivers/net/mlx4/mlx4.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index ec4419a..705620a 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -62,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -6097,3 +6098,12 @@ RTE_PMD_EXPORT_NAME(net_mlx4, __COUNTER__); RTE_PMD_REGISTER_PCI_TABLE(net_mlx4, mlx4_pci_id_map); RTE_PMD_REGISTER_KMOD_DEP(net_mlx4, "* ib_uverbs & mlx4_en & mlx4_core & mlx4_ib"); + +static struct rte_net_driver mlx4_net_driver = { + RTE_BUS_NET_PCI_HEADER + .driver = { + .name = MLX4_DRIVER_NAME, + }, + .kmod = "mlx4_core", +}; +RTE_PMD_REGISTER_NET(mlx4, mlx4_net_driver); -- 2.1.4