> -----Original Message----- > From: Aleksandr Loktionov <[email protected]> > Sent: Tuesday, October 6, 2026 7:40 AM > To: [email protected]; Nguyen, Anthony L > <[email protected]>; Loktionov, Aleksandr > <[email protected]> > Cc: Simon Horman <[email protected]> > Subject: [PATCH iwl-next v2 4/4] 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]> > Reviewed-by: Simon Horman <[email protected]> > Signed-off-by: Aleksandr Loktionov <[email protected]> > --- > 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]>
