]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/base/ice_switch.c
net/ice/base: introduce and use bitmap set API
[dpdk.git] / drivers / net / ice / base / ice_switch.c
index 858a73222ac34f4b1466ae7579e7bc1985140283..41ebfedc6e6ea46206b7d2bad11670df7a2b6b1b 100644 (file)
@@ -5940,8 +5940,7 @@ ice_find_free_recp_res_idx(struct ice_hw *hw, const ice_bitmap_t *profiles,
        ice_zero_bitmap(used_idx, ICE_MAX_FV_WORDS);
        ice_zero_bitmap(free_idx, ICE_MAX_FV_WORDS);
 
-       for (count = 0; count < ICE_MAX_FV_WORDS; count++)
-               ice_set_bit(count, possible_idx);
+       ice_bitmap_set(possible_idx, 0, ICE_MAX_FV_WORDS);
 
        /* For each profile we are going to associate the recipe with, add the
         * recipes that are associated with that profile. This will give us