Message ID | 1475845393-25670-1-git-send-email-david.marchand@6wind.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Yuanhan Liu |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 5E6102BDC; Fri, 7 Oct 2016 15:03:20 +0200 (CEST) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 3FE7D292D for <dev@dpdk.org>; Fri, 7 Oct 2016 15:03:19 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id b201so37179515wmb.0 for <dev@dpdk.org>; Fri, 07 Oct 2016 06:03:19 -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; bh=pL9JP6CO6S0VuciaBnPd58RP8vrjTG2lvShJ2UFfNI8=; b=IXOO7HKlGcMoY73czEz43AocgvE2oS0Bw5P+BRTgi3w8oxylDnbrhG9mIJepUtM0Q0 sDNmOmkcKHGNjbfQK/tDUIVBz3lLx+uQV5T2s9DluT/zQ7O76MNO5ZNB1+/yC6iHdKST rwJmUaenQok2Vo/pTDd5o9O7P0HsRdbzxJn+27s/e6qagRwZNLly7s+niHugfhDlVz8E JWOFZZR9ldkxG6DlLUZJ7cJw3MEeZvGKfLXdrrFHR4AERRjn/ceNzg6okd1U3RGMaLye NxDsDu7oZIXXgTZ1z92rQb+eOJtr3Qd+zNsFRrX7QEJzZ1thCe2XKxbuB7F8BDaKlneb MQTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pL9JP6CO6S0VuciaBnPd58RP8vrjTG2lvShJ2UFfNI8=; b=OKlH85dMDqYAV75ea9ALtFc0UnLUWT8T5Y8bb6UsJHDLt92m818LaJW+wTKo0gCTBd HQDGm5a9MEYUqaNceIKTCZ4SSBgjyeEZrL9q95gr9cYqdfHWBeIGOxg1Q5+1fhT1I5bR 4o7lOa1sJKg1HBT+pwA9uwzCEyYVFZnaoMUcNYUT2ccA6JdSoy+L6t58dO33jhuLMbB7 PtYHIWqk1sbYkIHWx9uZpntWkFZEIU4RXIsX7LXMoSTyunilELw/jwS0yNkJYetkVOSv /xaGDFokJEUsWgTjeEy6rFcYns2atKjTfQ5Rn0wLMQIu2DwZXS5LyOUUaVmiAEIAivq6 t3Fw== X-Gm-Message-State: AA6/9RmSX8QjEPQDEMbL8bHp59WX4E/sw4y2QwgEdJekWu0zq0J6Cfzf72qKuWDl6O9DwbnO X-Received: by 10.194.149.51 with SMTP id tx19mr1414840wjb.221.1475845399015; Fri, 07 Oct 2016 06:03:19 -0700 (PDT) Received: from gloops.dev.6wind.com (89.156.119.78.rev.sfr.net. [78.119.156.89]) by smtp.gmail.com with ESMTPSA id ya1sm19708552wjb.23.2016.10.07.06.03.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 06:03:18 -0700 (PDT) From: David Marchand <david.marchand@6wind.com> To: thomas.monjalon@6wind.com Cc: dev@dpdk.org, yuanhan.liu@linux.intel.com, huawei.xie@intel.com, shreyansh.jain@nxp.com Date: Fri, 7 Oct 2016 15:03:13 +0200 Message-Id: <1475845393-25670-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/virtio: add missing driver name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
David Marchand
Oct. 7, 2016, 1:03 p.m. UTC
The driver name has been lost with the eal rework.
Restore it.
Fixes: c830cb295411 ("drivers: use PCI registration macro")
Signed-off-by: David Marchand <david.marchand@6wind.com>
---
drivers/net/virtio/virtio_ethdev.c | 3 +++
1 file changed, 3 insertions(+)
Comments
On Friday 07 October 2016 06:33 PM, David Marchand wrote: > The driver name has been lost with the eal rework. > Restore it. > > Fixes: c830cb295411 ("drivers: use PCI registration macro") > > Signed-off-by: David Marchand <david.marchand@6wind.com> > --- > drivers/net/virtio/virtio_ethdev.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c > index b4dfc0a..809ebf7 100644 > --- a/drivers/net/virtio/virtio_ethdev.c > +++ b/drivers/net/virtio/virtio_ethdev.c > @@ -1304,6 +1304,9 @@ eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev) > > static struct eth_driver rte_virtio_pmd = { > .pci_drv = { > + .driver = { > + .name = "net_virtio", > + }, > .id_table = pci_id_virtio_map, > .drv_flags = RTE_PCI_DRV_DETACHABLE, > .probe = rte_eth_dev_pci_probe, > Indeed. For MLX4/5 and Virtio, DRIVER_REGISTER_* is not being used which takes this 'name'. In this case, it was missed. Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
On Fri, Oct 07, 2016 at 06:57:41PM +0530, Shreyansh Jain wrote: > On Friday 07 October 2016 06:33 PM, David Marchand wrote: > >The driver name has been lost with the eal rework. > >Restore it. > > > >Fixes: c830cb295411 ("drivers: use PCI registration macro") > > > >Signed-off-by: David Marchand <david.marchand@6wind.com> > >--- > > drivers/net/virtio/virtio_ethdev.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > >diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c > >index b4dfc0a..809ebf7 100644 > >--- a/drivers/net/virtio/virtio_ethdev.c > >+++ b/drivers/net/virtio/virtio_ethdev.c > >@@ -1304,6 +1304,9 @@ eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev) > > > > static struct eth_driver rte_virtio_pmd = { > > .pci_drv = { > >+ .driver = { > >+ .name = "net_virtio", > >+ }, > > .id_table = pci_id_virtio_map, > > .drv_flags = RTE_PCI_DRV_DETACHABLE, > > .probe = rte_eth_dev_pci_probe, > > > > Indeed. For MLX4/5 and Virtio, DRIVER_REGISTER_* is not being used which > takes this 'name'. In this case, it was missed. > > Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com> Applied to dpdk-next-virtio. Thanks. --yliu
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index b4dfc0a..809ebf7 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1304,6 +1304,9 @@ eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_virtio_pmd = { .pci_drv = { + .driver = { + .name = "net_virtio", + }, .id_table = pci_id_virtio_map, .drv_flags = RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe,