net/bnxt: add dpool allocator for EM allocation
[dpdk.git] / drivers / net / ice / ice_dcf_sched.c
index 4371bbc..aeb1afb 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;