linux/drivers/net/ethernet/intel/ice
Brett Creeley 9e4ab4c29a ice: Add support for dynamic interrupt moderation
Currently there is no support for dynamic interrupt moderation. This
patch adds some initial code to support this. The following changes
were made:

1. Currently we are using multiple members to store the interrupt
   granularity (itr_gran_25/50/100/200). This is not necessary because
   we can query the device to determine what the interrupt granularity
   should be set to, done by a new function ice_get_itr_intrl_gran.

2. Added intrl to ice_q_vector structure to support interrupt rate
   limiting.

3. Added the function ice_intrl_usecs_to_reg for converting to a value
   in usecs that the device understands.

4. Added call to write to the GLINT_RATE register. Disable intrl by
   default for now.

5. Changed rx/tx_itr_setting to itr_setting because having both seems
   redundant because a ring is either Tx or Rx.

6. Initialize itr_setting for both Tx/Rx rings in ice_vsi_alloc_rings()

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>
2018-10-02 07:19:30 -07:00
..
ice_adminq_cmd.h ice: Query the Tx scheduler node before adding it 2018-09-28 11:16:36 -07:00
ice_common.c ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_common.h ice: Check for actual link state of port after reset 2018-10-02 07:15:22 -07:00
ice_controlq.c ice: update fw version check logic 2018-09-28 11:16:36 -07:00
ice_controlq.h ice: Initialize PF and setup miscellaneous interrupt 2018-03-26 10:34:49 -07:00
ice_devids.h ice: update branding strings and supported device ids 2018-09-28 11:16:36 -07:00
ice_ethtool.c ice: fix changing of ring descriptor size (ethtool -G) 2018-09-28 11:16:36 -07:00
ice_hw_autogen.h ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_lan_tx_rx.h ice: Rework flex descriptor programming 2018-08-28 09:18:47 -07:00
ice_lib.c ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_lib.h ice: Implement ethtool hook for RSS switch 2018-10-02 07:17:18 -07:00
ice_main.c ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_nvm.c ice: Update request resource command to latest specification 2018-08-28 10:17:06 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: Expand use of VSI handles part 2/2 2018-10-02 07:13:23 -07:00
ice_sched.h ice: Expand use of VSI handles part 2/2 2018-10-02 07:13:23 -07:00
ice_status.h ice: Prevent control queue operations during reset 2018-08-28 10:20:00 -07:00
ice_switch.c ice: Implement VSI replay framework 2018-10-02 07:14:23 -07:00
ice_switch.h ice: Implement VSI replay framework 2018-10-02 07:14:23 -07:00
ice_txrx.c ice: Add support for Tx hang, Tx timeout and malicious driver detection 2018-08-28 10:58:42 -07:00
ice_txrx.h ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_type.h ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice.h ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
Makefile ice: Move common functions out of ice_main.c part 1/7 2018-10-01 12:39:40 -07:00