Skip to content

Commit

Permalink
net/ice: avoid signed/unsigned mismatch
Browse files Browse the repository at this point in the history
This patch avoids warnings like the ones below emitted by MSVC:

../drivers/net/ice/ice_dcf_sched.c(177): warning C4018: '>=':
    signed/unsigned mismatch

The fix is to explicitly cast the variables used in the comparison.

Signed-off-by: Andre Muezerie <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
  • Loading branch information
Andre Muezerie authored and bruce-richardson committed Feb 10, 2025
1 parent 3c154bd commit 4dc0eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/intel/ice/ice_dcf_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ ice_dcf_node_param_check(struct ice_dcf_hw *hw, uint32_t node_id,
}

/* for non-leaf node */
if (node_id >= 8 * hw->num_vfs) {
if (node_id >= (uint32_t)(8 * hw->num_vfs)) {
if (params->nonleaf.wfq_weight_mode) {
error->type =
RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE;
Expand Down

0 comments on commit 4dc0eac

Please sign in to comment.