> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Aleksandr Loktionov > Sent: Wednesday, April 8, 2026 6:12 AM > To: [email protected]; Nguyen, Anthony L > <[email protected]>; Loktionov, Aleksandr > <[email protected]> > Cc: [email protected] > Subject: [Intel-wired-lan] [PATCH iwl-next v2 4/8] ixgbe: add > IXGBE_ITR_ADAPTIVE_MASK_USECS constant > > From: Alexander Duyck <[email protected]> > > ixgbe_set_itr() clears the mode flag (IXGBE_ITR_ADAPTIVE_LATENCY, bit 7) with > the open-coded complement expression ~IXGBE_ITR_ADAPTIVE_LATENCY. > This is equivalent to keeping only bits [6:0], i.e. the usecs sub-field. > > Add IXGBE_ITR_ADAPTIVE_MASK_USECS = IXGBE_ITR_ADAPTIVE_LATENCY - 1 = 0x7F to > name this mask explicitly and replace the open-coded AND-NOT operation with > the cleaner AND form. The two > expressions are arithmetically identical; the change improves readability. > > Signed-off-by: Alexander Duyck <[email protected]> > Signed-off-by: Aleksandr Loktionov <[email protected]> > --- > v1 -> v2: > - Split from monolithic ITR cleanup; this patch only adds the > IXGBE_ITR_ADAPTIVE_MASK_USECS constant and updates ixgbe_set_itr(). > > drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 + > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-)
Tested-by: Alexander Nowlin <[email protected]>
