> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of 
> Przemek Kitszel
> Sent: 18 June 2025 16:59
> To: intel-wired-...@lists.osuosl.org; Nguyen, Anthony L 
> <anthony.l.ngu...@intel.com>
> Cc: net...@vger.kernel.org; Kitszel, Przemyslaw 
> <przemyslaw.kits...@intel.com>; Keller, Jacob E <jacob.e.kel...@intel.com>; 
> Loktionov, Aleksandr <aleksandr.loktio...@intel.com>; Brandeburg, Jesse 
> <jbrandeb...@cloudflare.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next] ice: convert ice_add_prof() to 
> bitmap
>
> From: Jesse Brandeburg <jesse.brandeb...@intel.com>
>
> Previously the ice_add_prof() took an array of u8 and looped over it with 
> for_each_set_bit(), examining each 8 bit value as a bitmap.
>This was just hard to understand and unnecessary, and was triggering undefined 
>behavior sanitizers with unaligned accesses within bitmap fields (on our 
>internal tools/builds). Since the @ptype being passed in was already declared 
>as a bitmap, refactor this to use native types with the advantage of 
>simplifying the code to use a single loop.
>
> Co-developed-by: Jacob Keller <jacob.e.kel...@intel.com>
> Signed-off-by: Jacob Keller <jacob.e.kel...@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeb...@intel.com>
> Signed-off-by: Aleksandr Loktionov <aleksandr.loktio...@intel.com>
> CC: Jesse Brandeburg <jbrandeb...@cloudflare.com>
> Signed-off-by: Przemek Kitszel <przemyslaw.kits...@intel.com>
> ---
> .../net/ethernet/intel/ice/ice_flex_pipe.h    |  7 +-
> .../net/ethernet/intel/ice/ice_flex_pipe.c    | 78 +++++++------------
> drivers/net/ethernet/intel/ice/ice_flow.c     |  4 +-
> 3 files changed, 34 insertions(+), 55 deletions(-)
>

Tested-by: Rinitha S <sx.rini...@intel.com> (A Contingent worker at Intel)

Reply via email to