From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D816A0C49; Thu, 10 Jun 2021 11:51:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5873E410D8; Thu, 10 Jun 2021 11:51:30 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 394CE40FDF for ; Thu, 10 Jun 2021 11:51:28 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9F46A5C013A; Thu, 10 Jun 2021 05:51:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 10 Jun 2021 05:51:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= jZbuyWg6nflf6GFFD0Q0vY6CEium2IKyYKMTUBBaRTA=; b=wHOI1/wAey3/FHk+ nY0GhRYdPYEuY0ys4WAe0kGZSbwcyzCqmvSWs8QUIMV1WjLByytTR4hYsqLNb1r5 FToB8GPSyD3z+nKIcQJHJdLMtYikC247OC6CxbDIJiyKYEWUN66zW8GPfvsRgk3K uB6O7VkXc1cxEZBnPS/Ak0K8Nn+9IE79hwVrtjoE6xegmPX+gWedxMa2kf4dvYTH aq7ylAgtP38LV3t/hpyf9q6AWzxDTurgmcExLpFcY7KuHQJd5c+qgrtQi0lwNbP2 atLZ4j9Wd8ziAd8JKagZ1rzInuVOhgZQs3VfnURKrV7NH9pZy6kjp7v7QtZj4J3D rzqmDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=jZbuyWg6nflf6GFFD0Q0vY6CEium2IKyYKMTUBBaR TA=; b=MLOctge1m52z65nHmL17GChrbiHlXnoEuzX5Cgrg4yUAsWATr6kf5qcZo ik2I757zRiP9BqfRpH5J2sg3UJPWs9XxBz7jROeqiczqt0sSh3Ue7llUbfvDoxOi 8TwMhumkA4Wj4uuHKB42Vt1O8QKqH2mPGJpvawLBtxS/8zqZ3BRLQK2fe2zfOFpk BYWoml1xIzg5T5Vd1X6WQJlO88pSj6tWppYmIb3SICl7bsUr9zsZvig/lYzuLjwj pWexExxEqJUwtZjdWPGQjzjX0PanTYAeIQksuD1FgY0jv/vfvrimqOuvkpuz7HR4 o2lwl6CitdVwsBinv8CE6/tMrxsng== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedufedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Jun 2021 05:51:26 -0400 (EDT) From: Thomas Monjalon To: Xueming Li Cc: Viacheslav Ovsiienko , dev@dpdk.org, Matan Azrad , Ray Kinsella , orika@nvidia.com Date: Thu, 10 Jun 2021 11:51:24 +0200 Message-ID: <8078464.FbNVZWxAC0@thomas> In-Reply-To: <20210527133759.17401-2-xuemingl@nvidia.com> References: <20210527133759.17401-1-xuemingl@nvidia.com> <20210527133759.17401-2-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [RFC 01/14] common/mlx5: add common device driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 27/05/2021 15:37, Xueming Li: > +static const struct { > + const char *name; > + unsigned int drv_class; > +} mlx5_classes[] = { > + { .name = "vdpa", .drv_class = MLX5_CLASS_VDPA }, > + { .name = "net", .drv_class = MLX5_CLASS_NET }, > + { .name = "regex", .drv_class = MLX5_CLASS_REGEX }, > + { .name = "compress", .drv_class = MLX5_CLASS_COMPRESS }, > +}; The class name should be "eth", not "net". This is the standard in rte_ethdev.c: rte_class_find_by_name("eth")