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 96D56A04B4; Sat, 8 Aug 2020 03:09:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8ACBF2BF5; Sat, 8 Aug 2020 03:09:44 +0200 (CEST) Received: from huawei.com (szxga06-in.huawei.com [45.249.212.32]) by dpdk.org (Postfix) with ESMTP id C40A72BF1 for ; Sat, 8 Aug 2020 03:09:43 +0200 (CEST) Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E98E0CB0EC4463126DEB; Sat, 8 Aug 2020 09:09:41 +0800 (CST) Received: from [127.0.0.1] (10.67.103.128) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Sat, 8 Aug 2020 09:09:35 +0800 To: , , , , , "Zhouchang (Forest)" , lihuisong , "Zhouchang (Forest)" , "liudongdong (C)" , lihuisong From: "humin (Q)" Message-ID: Date: Sat, 8 Aug 2020 09:09:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.128] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [RFC]lib/ethdev: fix data type in tc_rxq and tc_txq 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" Currently, base and nb_queue in the tc_rxq and tc_txq information of queue and TC mapping on both TX and RX paths are uint8_t. The structure is as follows: struct rte_eth_dcb_tc_queue_mapping { /** rx queues assigned to tc per Pool */ struct { uint8_t base; uint8_t nb_queue; } tc_rxq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS]; /** rx queues assigned to tc per Pool */ struct { uint8_t base; uint8_t nb_queue; } tc_txq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS]; }; However, these datas will be truncated when queue number under a TC is greater than 256. So it is necessay for data type of base and nb_queue to change from uint8_t to uint16_t.