-
- Downloads
ice: Add support for adaptive interrupt moderation
Currently the driver does not support adaptive/dynamic interrupt moderation. This patch adds support for this. Also, adaptive/dynamic interrupt moderation is turned on by default upon driver load. In order to support adaptive interrupt moderation, two functions were added, ice_update_itr() and ice_itr_divisor(). These are used to determine the current packet load and to determine a divisor based on link speed respectively. This patch also adds the ICE_ITR_GRAN_S define that is used in the hot-path when setting a new ITR value. The shift is used to pet two birds with one hand, set the ITR value while re-enabling the interrupt. Also, the ICE_ITR_GRAN_S is defined as 1 because the device has a ITR granularity of 2usecs. Signed-off-by:Brett Creeley <brett.creeley@intel.com> Signed-off-by:
Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by:
Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Showing
- drivers/net/ethernet/intel/ice/ice_hw_autogen.h 1 addition, 0 deletionsdrivers/net/ethernet/intel/ice/ice_hw_autogen.h
- drivers/net/ethernet/intel/ice/ice_lib.c 18 additions, 6 deletionsdrivers/net/ethernet/intel/ice/ice_lib.c
- drivers/net/ethernet/intel/ice/ice_main.c 19 additions, 4 deletionsdrivers/net/ethernet/intel/ice/ice_main.c
- drivers/net/ethernet/intel/ice/ice_txrx.c 64 additions, 1 deletiondrivers/net/ethernet/intel/ice/ice_txrx.c
- drivers/net/ethernet/intel/ice/ice_txrx.h 18 additions, 12 deletionsdrivers/net/ethernet/intel/ice/ice_txrx.h
Loading
Please register or sign in to comment