From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 23B00A0096 for ; Sun, 2 Jun 2019 19:43:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DACD1B958; Sun, 2 Jun 2019 19:43:11 +0200 (CEST) Received: from mail-yw1-f66.google.com (mail-yw1-f66.google.com [209.85.161.66]) by dpdk.org (Postfix) with ESMTP id 7AFD35424 for ; Sun, 2 Jun 2019 19:43:06 +0200 (CEST) Received: by mail-yw1-f66.google.com with SMTP id k70so6464032ywe.7 for ; Sun, 02 Jun 2019 10:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MyPqEkx5Gs/x595grpgFvdsHom5kSRijLhcHlN+fje0=; b=T5GhDgIT3KdPEG8q7BsElfkByfxXLbcwSJ15x7NBbVAWjCttmDqqLSvbKMki2fmifY wNbKliJ0c88uSolXPI3fsCABzZAloe+/L66HFjr1zmBfVmRjwDPSnCQgjYsmEwgQBpaY MrjPa9AoX7Fs0tcyOI+2K19jOG+fCLttom5OU= 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; bh=MyPqEkx5Gs/x595grpgFvdsHom5kSRijLhcHlN+fje0=; b=VGKC3ekROxgMLwFYD0O/p4O+LcbLRaGbrUFUXIprXnLWkfneVnbo6TDycWJTe5w/Y3 mQRxZCiQEKsQDLcOeeYfPJ6+P07OusPh5kMdP3PLATh2UY9MkAP7rn+Ij9nsasPlZz/4 dk2gVc2B2HdTr9VqS86a8YzoEIju+hPrS5UBykjBgr6ocN/hCOhttNHY0brLljXVwssj 8/fHYsU1mgNRbiorhBLR4xN3TRwMyjj87chA7mohjeoO/APtNpySYQt/gJdafGRuRa/G OPb3oWsoVqC6YoCftkNiYxJdi0PgWtMoXoXQmJcEQQ3Pe3brc/gj48L83sWTX0njlmLk TOBQ== X-Gm-Message-State: APjAAAVk3v9MU4YNG3bVWA8mI5ATgbyQ1uQ15XCdMoMAbnTjPuuTEjN5 UDaKhGO8ReMeqZ/sSLrgWBQlO+sG4mkVg8BmNToDVyNj6S7uIUjKWSARAd7AX3VTMZkTR/+tLtK c2q5Pb3lHkkoFGcaDYWnh8vq091ivCg1uW+giw2llsH4jbZV8lxdRNoUVmJlvpqv7 X-Google-Smtp-Source: APXvYqwoITKhggYhKjt4rGR61OzKk2nI3UrPrwClY7oGOEu7gNsNQmBPKMUbqez+786NZ7FcG0RUug== X-Received: by 2002:a81:11d6:: with SMTP id 205mr12321590ywr.216.1559497385717; Sun, 02 Jun 2019 10:43:05 -0700 (PDT) Received: from lrichardson-VirtualBox.attlocal.net (69-218-223-106.lightspeed.rlghnc.sbcglobal.net. [69.218.223.106]) by smtp.gmail.com with ESMTPSA id n78sm1000819ywd.2.2019.06.02.10.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 10:43:05 -0700 (PDT) From: Lance Richardson To: dev@dpdk.org Cc: ajit.khaparde@broadcom.com, ferruh.yigit@intel.com, Lance Richardson , stable@dpdk.org Date: Sun, 2 Jun 2019 13:42:37 -0400 Message-Id: <20190602174247.32368-3-lance.richardson@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190602174247.32368-1-lance.richardson@broadcom.com> References: <20190602174247.32368-1-lance.richardson@broadcom.com> Subject: [dpdk-dev] [PATCH 02/11] net/bnxt: fix ring type macro name usage 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" Use consistent macro names for ring type values. (There is no functional change, the "alloc" and "free" values are identical.) Fixes: 6371b91fb66d ("net/bnxt: add ring alloc/free") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 0c6af1622..8db18ea61 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1136,17 +1136,17 @@ int bnxt_hwrm_ring_alloc(struct bnxt *bp, if (rc == 0 && resp->error_code) rc = rte_le_to_cpu_16(resp->error_code); switch (ring_type) { - case HWRM_RING_FREE_INPUT_RING_TYPE_L2_CMPL: + case HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL: PMD_DRV_LOG(ERR, "hwrm_ring_alloc cp failed. rc:%d\n", rc); HWRM_UNLOCK(); return rc; - case HWRM_RING_FREE_INPUT_RING_TYPE_RX: + case HWRM_RING_ALLOC_INPUT_RING_TYPE_RX: PMD_DRV_LOG(ERR, "hwrm_ring_alloc rx failed. rc:%d\n", rc); HWRM_UNLOCK(); return rc; - case HWRM_RING_FREE_INPUT_RING_TYPE_TX: + case HWRM_RING_ALLOC_INPUT_RING_TYPE_TX: PMD_DRV_LOG(ERR, "hwrm_ring_alloc tx failed. rc:%d\n", rc); HWRM_UNLOCK(); -- 2.17.1