net/ice/base: fix RSS interference
[dpdk.git] / drivers / net / ice / base / ice_flex_pipe.c
index 2845694..999ad6b 100644 (file)
@@ -2808,10 +2808,10 @@ ice_find_prof_id_with_mask(struct ice_hw *hw, enum ice_block blk,
        struct ice_es *es = &hw->blk[blk].es;
        u8 i;
 
-       /* For FD, we don't want to re-use an existed profile with the same
-        * field vector and mask. This will cause rule interference.
+       /* For FD and RSS, we don't want to re-use an existed profile with the
+        * same field vector and mask. This will cause rule interference.
         */
-       if (blk == ICE_BLK_FD)
+       if (blk == ICE_BLK_FD || blk == ICE_BLK_RSS)
                return ICE_ERR_DOES_NOT_EXIST;
 
        for (i = 0; i < (u8)es->count; i++) {