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 40051A046B for ; Thu, 25 Jul 2019 07:05:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FE3F1C27D; Thu, 25 Jul 2019 07:05:45 +0200 (CEST) Received: from relay.smtp.broadcom.com (unknown [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 7ADC81C26A for ; Thu, 25 Jul 2019 07:05:34 +0200 (CEST) Received: from dhcp-10-123-153-55.dhcp.broadcom.net (bgccx-dev-host-lnx35.bec.broadcom.net [10.123.153.55]) by relay.smtp.broadcom.com (Postfix) with ESMTP id 696481BE6D7; Wed, 24 Jul 2019 22:05:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 696481BE6D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1564031134; bh=Zc9EW1zoWjk98zVC+Z28+KWRkMAmOb7oRnjYEucBVyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YEDPgeL7jQewp5ke036Q/spGtvSmvXyjEV4YA+lccDC0y1KOnd99aEm06VtxonXTj ZPuXCyJH/IUvHcA4JmwLuxDNiBAtyl/qKZJanIwDJ1sDpMsxmikNBOZeylqLfLrwog nr3Xlg26UocXcVDLiKFIkNkZwE5foV0D9BdxDURY= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Thu, 25 Jul 2019 10:29:48 +0530 Message-Id: <20190725045949.27407-4-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 In-Reply-To: <20190725045949.27407-1-somnath.kotur@broadcom.com> References: <20190725045949.27407-1-somnath.kotur@broadcom.com> Subject: [dpdk-dev] [PATCH 3/4] net/bnxt: fix endianness issue 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" From: Kalesh AP Use rte_cpu_to_le_16/32 while parsing the hwrm command response. Fixes: 11e5e19695c7bfb3 ("net/bnxt: support redirecting tunnel packets to VF") Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 1587ca1..39c71bc 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -4567,7 +4567,7 @@ int bnxt_hwrm_tunnel_redirect_query(struct bnxt *bp, uint32_t *type) HWRM_CHECK_RESULT(); if (type) - *type = resp->tunnel_mask; + *type = rte_le_to_cpu_32(resp->tunnel_mask); HWRM_UNLOCK(); @@ -4589,7 +4589,7 @@ int bnxt_hwrm_tunnel_redirect_info(struct bnxt *bp, uint8_t tun_type, HWRM_CHECK_RESULT(); if (dst_fid) - *dst_fid = resp->dest_fid; + *dst_fid = rte_le_to_cpu_16(resp->dest_fid); PMD_DRV_LOG(DEBUG, "dst_fid: %x\n", resp->dest_fid); -- 1.8.3.1