From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-f65.google.com (mail-vs1-f65.google.com [209.85.217.65]) by dpdk.org (Postfix) with ESMTP id B32311B5AA for ; Fri, 14 Dec 2018 13:05:40 +0100 (CET) Received: by mail-vs1-f65.google.com with SMTP id z3so3205327vsf.7 for ; Fri, 14 Dec 2018 04:05:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3vL3X+ZNpUgMvI+RmIMm8Q3doD0bO9auzt01DH9Lvg8=; b=niPic7fTKK98HqjCE6Q5jT34LaJVyAEFOhVsjxOpdOK6MVZpYzulB9ZU+PXyPobamW kXqNRxzRL/5hKO88SKsScWoSmWTIyq1U7OhqGuYJbnhFYPIeC6K4bYEWfPP9qBQTnuur HHO9blxiqjYxvUmO2527QOJUiDA4mRYImf9HkWIYbBg+NtYDr7jcqwZk46Uu19eWol23 ctAcUc1pkxT7W1WAPF6cAypm3/4ZlrN8Id0zPVJeUso4DtOaZIyHx0Rj1Qpw/B0kirog BUn6ZO7MvvSmjSECAX4Li5Rgf1ddYlGNKuF/wqEyzvp29y6Q5m+vmXYsmNhqxRTP1T60 XBUw== X-Gm-Message-State: AA+aEWagkE5dUtBynD0G9OeJOhPLDGwZlyGHbzyBC5X7PGQDVIas2QXc fdHu3Xno7mWDFQnLyf9fE2tiPCDLug7FWiOaMuI5dg== X-Google-Smtp-Source: AFSGD/Wj5GUblwngKYBIBs6SUcY1WSqzKxCxKv9UvdN7KNISrfOP73YYCDVs5YJpRgO51fNms+GwdyuUc5u5uqVyH7I= X-Received: by 2002:a67:3cd6:: with SMTP id w83mr1144197vsh.39.1544789139936; Fri, 14 Dec 2018 04:05:39 -0800 (PST) MIME-Version: 1.0 References: <1542956179-80951-1-git-send-email-wenzhuo.lu@intel.com> <1544776518-91047-1-git-send-email-wenzhuo.lu@intel.com> <1544776518-91047-17-git-send-email-wenzhuo.lu@intel.com> In-Reply-To: <1544776518-91047-17-git-send-email-wenzhuo.lu@intel.com> From: David Marchand Date: Fri, 14 Dec 2018 13:05:28 +0100 Message-ID: To: Wenzhuo Lu Cc: dev@dpdk.org, Qiming Yang , Xiaoyun Li , Jingjing Wu Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v4 16/32] net/ice: support device initialization 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: Fri, 14 Dec 2018 12:05:41 -0000 On Fri, Dec 14, 2018 at 9:34 AM Wenzhuo Lu wrote: > > diff --git a/doc/guides/nics/features/ice.ini > b/doc/guides/nics/features/ice.ini > new file mode 100644 > index 0000000..085e848 > --- /dev/null > +++ b/doc/guides/nics/features/ice.ini > @@ -0,0 +1,11 @@ > +; > +; Supported features of the 'ice' network poll mode driver. > +; > +; Refer to default.ini for the full list of available PMD features. > +; > +[Features] > +BSD nic_uio = Y > +Linux UIO = Y > +Linux VFIO = Y > +x86-32 = Y > +x86-64 = Y > [snip] > +/** > + * Driver initialization routine. > + * Invoked once at EAL init time. > + * Register itself as the [Poll Mode] Driver of PCI devices. > + */ > +RTE_PMD_REGISTER_PCI(net_ice, rte_ice_pmd); > +RTE_PMD_REGISTER_PCI_TABLE(ice, pci_id_ice_map); > + > +RTE_INIT(ice_init_log) > +{ > + ice_logtype_init = rte_log_register("pmd.net.ice.init"); > + if (ice_logtype_init >= 0) > + rte_log_set_level(ice_logtype_init, RTE_LOG_NOTICE); > + ice_logtype_driver = rte_log_register("pmd.net.ice.driver"); > + if (ice_logtype_driver >= 0) > + rte_log_set_level(ice_logtype_driver, RTE_LOG_NOTICE); > +} > If this pmd is uio/vfio based, then you must report it via RTE_PMD_REGISTER_KMOD_DEP(). -- David Marchand