From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 717F6A317C for ; Thu, 17 Oct 2019 17:38:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3ECCF1E94B; Thu, 17 Oct 2019 17:38:33 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 90D361E930 for ; Thu, 17 Oct 2019 17:38:31 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id q21so1881466pfn.11 for ; Thu, 17 Oct 2019 08:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UC8tehsn/eqqRHKKyRidtM+FU5QvSpxXCjMXqgfZJfs=; b=09atyETU9ZztIYrh9jQ0hPKp7w6aq/o94Mz3e6bUc+V0vqmMKQ8GDU4+xKX9wgeBHj RuL/ti59d6wOSEQvTJwkeAlPJcfvpAhFee+4U3xQrIajrjydvUSJK2ucd2wGnaAhT8HD 46vFvKT3VdcqGRCvKHWvz1142SitRRDkAeaEK9cHPTL7RxaGaKTw4dtMtv+nvgqyEW/c iQNC/iqRLYtxCqAroH1Jtv024qXDFW2jQtuaO00bfzxjl9drHQNwoLkQfsFRqaNKef+1 VUVZX4A9hiWMLjLuPOdjOs8OcVsLfwHqVZAOaahjUHU69GyXZxJ+JqeYWwKtvTlcKHFw FQaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UC8tehsn/eqqRHKKyRidtM+FU5QvSpxXCjMXqgfZJfs=; b=FHyPKYnsMEpm6lmm5UMs1F0zJT69XO2MoOWnByUjD8HOy+8lBxicHGmZTI21EJQtkF goWwys333rAgfyJVQt2H9XYFNw4jZP8PK5D5aeVgN6sv3kf3GW8rIx9e3be5xXhgYNtU AsOqfAHkp9+Dfmp95b2DKbL90+vV7c5JPWW8lQT7XMWU88ALXfNTpz2cBNgVE93o3VVj U6M7lGXLp0aIs9zBT9RlLVMOaKeyN8MSBKUlfEClJ2wkG0KgXVwsCkbJ5N+YtA9O6Y8U j/xjEwcTfqArWzQiEStKghF17KnOoeo56+I/CtuEh40z0drM6oF+0Z8Hkan2LKRuctpz d+AQ== X-Gm-Message-State: APjAAAUJA5lHJ2JqEk3vz5EtbwVBvqA7Y4h1znkhgR1ZDsACb8MoBKTF 1vSeovcBYTByl6r61VIHtTu79tvaQ0q9jA== X-Google-Smtp-Source: APXvYqwgslOxp5kMIzIgNpEKShnhNYcBxJ0SV8gXxQPXG/IX86xQsA++67QB30mfvo2h87919zitJw== X-Received: by 2002:a63:4046:: with SMTP id n67mr4518711pga.200.1571326710604; Thu, 17 Oct 2019 08:38:30 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 62sm2952512pfg.164.2019.10.17.08.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 08:38:30 -0700 (PDT) Date: Thu, 17 Oct 2019 08:37:59 -0700 From: Stephen Hemminger To: Ori Kam Cc: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , dev@dpdk.org, jingjing.wu@intel.com Message-ID: <20191017083759.1ccf831e@hermes.lan> In-Reply-To: <1571326337-42692-2-git-send-email-orika@mellanox.com> References: <1569479349-36962-1-git-send-email-orika@mellanox.com> <1571326337-42692-1-git-send-email-orika@mellanox.com> <1571326337-42692-2-git-send-email-orika@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 01/15] ethdev: move queue state defines to private file 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 17 Oct 2019 15:32:03 +0000 Ori Kam wrote: > /** > + * RX/TX queue states > + */ > +#define RTE_ETH_QUEUE_STATE_STOPPED 0 > +#define RTE_ETH_QUEUE_STATE_STARTED 1 Why not make it an enum?