Use rte_cpu_to_le_16/32 while parsing the hwrm command response.
Fixes: 11e5e19695c7 ("net/bnxt: support redirecting tunnel packets to VF")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
        HWRM_CHECK_RESULT();
 
        if (type)
-               *type = resp->tunnel_mask;
+               *type = rte_le_to_cpu_32(resp->tunnel_mask);
 
        HWRM_UNLOCK();
 
        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);