net/qede/base: change queue/sb-id from 8 bit to 16 bit
authorRasesh Mody <rasesh.mody@cavium.com>
Wed, 29 Mar 2017 20:36:13 +0000 (13:36 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:50 +0000 (19:02 +0200)
Change the queue/sb-id values from 8 bit fields to 16 bit fields.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_dev_api.h
drivers/net/qede/base/ecore_l2.c
drivers/net/qede/base/ecore_l2_api.h
drivers/net/qede/base/ecore_sriov.c

index 87c1c23..7a501bb 100644 (file)
@@ -3876,7 +3876,7 @@ static enum _ecore_status_t ecore_set_coalesce(struct ecore_hwfn *p_hwfn,
 
 enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
                                            struct ecore_ptt *p_ptt,
-                                           u16 coalesce, u8 qid, u16 sb_id)
+                                           u16 coalesce, u16 qid, u16 sb_id)
 {
        struct ustorm_eth_queue_zone eth_qzone;
        u8 timeset, timer_res;
@@ -3897,7 +3897,7 @@ enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
        }
        timeset = (u8)(coalesce >> timer_res);
 
-       rc = ecore_fw_l2_queue(p_hwfn, (u16)qid, &fw_qid);
+       rc = ecore_fw_l2_queue(p_hwfn, qid, &fw_qid);
        if (rc != ECORE_SUCCESS)
                return rc;
 
@@ -3919,7 +3919,7 @@ enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
 
 enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
                                            struct ecore_ptt *p_ptt,
-                                           u16 coalesce, u8 qid, u16 sb_id)
+                                           u16 coalesce, u16 qid, u16 sb_id)
 {
        struct xstorm_eth_queue_zone eth_qzone;
        u8 timeset, timer_res;
@@ -3941,7 +3941,7 @@ enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
 
        timeset = (u8)(coalesce >> timer_res);
 
-       rc = ecore_fw_l2_queue(p_hwfn, (u16)qid, &fw_qid);
+       rc = ecore_fw_l2_queue(p_hwfn, qid, &fw_qid);
        if (rc != ECORE_SUCCESS)
                return rc;
 
index 0dee68a..e7332ac 100644 (file)
@@ -535,7 +535,7 @@ enum _ecore_status_t ecore_final_cleanup(struct ecore_hwfn  *p_hwfn,
  */
 enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
                                            struct ecore_ptt *p_ptt,
-                                           u16 coalesce, u8 qid, u16 sb_id);
+                                           u16 coalesce, u16 qid, u16 sb_id);
 
 /**
  * @brief ecore_set_txq_coalesce - Configure coalesce parameters for a Tx queue
@@ -553,6 +553,6 @@ enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
  */
 enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
                                            struct ecore_ptt *p_ptt,
-                                           u16 coalesce, u8 qid, u16 sb_id);
+                                           u16 coalesce, u16 qid, u16 sb_id);
 
 #endif
index 22bb43d..1379a1b 100644 (file)
@@ -212,7 +212,7 @@ ecore_sp_vport_update_rss(struct ecore_hwfn *p_hwfn,
 
        for (i = 0; i < ECORE_RSS_IND_TABLE_SIZE; i++) {
                rc = ecore_fw_l2_queue(p_hwfn,
-                                      (u8)p_rss->rss_ind_table[i],
+                                      p_rss->rss_ind_table[i],
                                       &abs_l2_queue);
                if (rc != ECORE_SUCCESS)
                        return rc;
index 247316b..8f7b614 100644 (file)
@@ -37,7 +37,7 @@ struct ecore_queue_start_common_params {
        /* q_zone_id is relative, may be different from queue id
         * currently used by Tx-only, upper-bounded by number of FW-queues
         */
-       u8 qzone_id;
+       u16 qzone_id;
 
        /* stats_id is relative or absolute depends on function */
        u8 stats_id;
index b051678..6e86966 100644 (file)
@@ -2118,8 +2118,8 @@ static void ecore_iov_vf_mbx_start_txq(struct ecore_hwfn *p_hwfn,
            !ecore_iov_validate_sb(p_hwfn, vf, req->hw_sb))
                goto out;
 
-       params.queue_id = (u8)vf->vf_queues[req->tx_qid].fw_tx_qid;
-       params.qzone_id = (u8)vf->vf_queues[req->tx_qid].fw_tx_qid;
+       params.queue_id = vf->vf_queues[req->tx_qid].fw_tx_qid;
+       params.qzone_id = vf->vf_queues[req->tx_qid].fw_tx_qid;
        params.vport_id = vf->vport_id;
        params.stats_id = vf->abs_vf_id + 0x10;
        params.sb = req->hw_sb;