]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/ice_dcf_sched.c
net/bnxt: add dpool allocator for EM allocation
[dpdk.git] / drivers / net / ice / ice_dcf_sched.c
index 4371bbc820a9e1ca29fc8a45384c136e12aa5786..aeb1afbe857a41598b32265a0df7340e4f90c2ee 100644 (file)
@@ -350,7 +350,7 @@ ice_dcf_node_add(struct rte_eth_dev *dev, uint32_t node_id,
                        return -EINVAL;
                }
                /* check the vsi node id */
-               if (node_id > tc_nb * hw->num_vfs) {
+               if (node_id > (uint32_t)(tc_nb * hw->num_vfs)) {
                        error->type = RTE_TM_ERROR_TYPE_NODE_ID;
                        error->message = "too large VSI id";
                        return -EINVAL;