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 655B6A0096 for ; Sun, 2 Jun 2019 19:43:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 477F31B995; Sun, 2 Jun 2019 19:43:17 +0200 (CEST) Received: from mail-yw1-f65.google.com (mail-yw1-f65.google.com [209.85.161.65]) by dpdk.org (Postfix) with ESMTP id 1AAD2559A for ; Sun, 2 Jun 2019 19:43:08 +0200 (CEST) Received: by mail-yw1-f65.google.com with SMTP id x144so6436784ywd.13 for ; Sun, 02 Jun 2019 10:43:08 -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=npansmS1jXK/RjxKkLwGEhR30ztF236xXuRV1AQp3qA=; b=dU35IhIJD6bzi9aUkHRacPpOmUtLbafvvtSe/hcn3iYZHyfCcjPGusIqzVUH5J+bKA WRgXoE7jMsqU0exVHkjwSfY3tqjRfNErqWFRD5UC4Us/JCpynQCPe6oh9groQxLFx14m 5Knv9BWd2KTsIqSz+8npOYBIQlAbEKaSWy0zQ= 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=npansmS1jXK/RjxKkLwGEhR30ztF236xXuRV1AQp3qA=; b=E9OIBEuR9N1MTwRWVHkCmceOZFhZMJ+bioLYtZa17bP4UfAww1ZdQKhfdGVV0Rfew6 IrEj3+1ZoGtroCxHGDFYujGBiibMnBAFUY4VqyW6QbIVtuIRd4EVKLDVl8iqIF+PmwGd IcRaN/iUZ31pVc4jqMxkRZqSWzvm33dfIPqqpw6Iihms+9LQft+PWNAj+pGnldGtnryW z74PVPucYgCf7EOk3yXU43YMcGdILkmiatRQRuYv2aK9kKBa1XjfVQJ8dKkKGB/8PZRO UhZ8BleSEMFCAH+IqixMc7GMbr9x59WPj3BWTUgUh/d71KARqJss3Jx7QCyla1SxLkAG mFrA== X-Gm-Message-State: APjAAAVNdbHz/JI98UN7PNFCyCmVLeIzL1eiWNTJXlw1n/wJ6taGnK6U wC0XgKclkqQ597Fh+RlT8/rs9hKfF7NeFLCLCZx/VAeCFS/PtkqAFevZXYt9+Wx3YKlA2EdCKRF yF487kgrkog1rE/HAry8BHgWxE/GUoUePMhzKXYNbA1F2n96mfMcXnffP/YEIKpHQ X-Google-Smtp-Source: APXvYqxoCPfMYBG1r80gEwvxxnjK97hkSQ39G+ikkhq3CE7jmonCBceDJ2ZjVn3X/ZcbhnLc3Y5Ehg== X-Received: by 2002:a81:114f:: with SMTP id 76mr11493148ywr.45.1559497387347; Sun, 02 Jun 2019 10:43:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 10:43:06 -0700 (PDT) From: Lance Richardson To: dev@dpdk.org Cc: ajit.khaparde@broadcom.com, ferruh.yigit@intel.com, Lance Richardson Date: Sun, 2 Jun 2019 13:42:39 -0400 Message-Id: <20190602174247.32368-5-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 04/11] net/bnxt: use consistent values for vnic RSS rule 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 values for vnic->rss_rule. No functional change, these all equate to uint16_t 0xffff. 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 e88719d06..7cad3cb4c 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1429,7 +1429,7 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic) ctx_enable_flag |= HWRM_VNIC_CFG_INPUT_ENABLES_LB_RULE; if (vnic->cos_rule != 0xffff) ctx_enable_flag |= HWRM_VNIC_CFG_INPUT_ENABLES_COS_RULE; - if (vnic->rss_rule != 0xffff) { + if (vnic->rss_rule != (uint16_t)HWRM_NA_SIGNATURE) { ctx_enable_flag |= HWRM_VNIC_CFG_INPUT_ENABLES_MRU; ctx_enable_flag |= HWRM_VNIC_CFG_INPUT_ENABLES_RSS_RULE; } @@ -1544,7 +1544,7 @@ int bnxt_hwrm_vnic_ctx_free(struct bnxt *bp, struct bnxt_vnic_info *vnic) struct hwrm_vnic_rss_cos_lb_ctx_free_output *resp = bp->hwrm_cmd_resp_addr; - if (vnic->rss_rule == 0xffff) { + if (vnic->rss_rule == (uint16_t)HWRM_NA_SIGNATURE) { PMD_DRV_LOG(DEBUG, "VNIC RSS Rule %x\n", vnic->rss_rule); return rc; } @@ -1557,7 +1557,7 @@ int bnxt_hwrm_vnic_ctx_free(struct bnxt *bp, struct bnxt_vnic_info *vnic) HWRM_CHECK_RESULT(); HWRM_UNLOCK(); - vnic->rss_rule = INVALID_HW_RING_ID; + vnic->rss_rule = (uint16_t)HWRM_NA_SIGNATURE; return rc; } -- 2.17.1