summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
diff options
context:
space:
mode:
authorJoshua Hay <joshua.a.hay@intel.com>2024-11-25 15:58:54 -0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2024-12-17 13:28:55 -0800
commit93433c1d919775f8ac0f7893692f42e6731a5373 (patch)
treecaa62fe1bb3f374f3cfa23fd46ed8f9f38e89176 /drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
parent7ed2d91588779f0a2b27fd502ce2aaf1fab9b3ca (diff)
downloadlwn-93433c1d919775f8ac0f7893692f42e6731a5373.tar.gz
lwn-93433c1d919775f8ac0f7893692f42e6731a5373.zip
idpf: add support for SW triggered interrupts
SW triggered interrupts are guaranteed to fire after their timer expires, unlike Tx and Rx interrupts which will only fire after the timer expires _and_ a descriptor write back is available to be processed by the driver. Add the necessary fields, defines, and initializations to enable a SW triggered interrupt in the vector's dyn_ctl register. Reviewed-by: Madhu Chittim <madhu.chittim@intel.com> Signed-off-by: Joshua Hay <joshua.a.hay@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/idpf/idpf_vf_dev.c')
-rw-r--r--drivers/net/ethernet/intel/idpf/idpf_vf_dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
index aad62e270ae4..aba828abcb17 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
@@ -101,6 +101,9 @@ static int idpf_vf_intr_reg_init(struct idpf_vport *vport)
intr->dyn_ctl_itridx_s = VF_INT_DYN_CTLN_ITR_INDX_S;
intr->dyn_ctl_intrvl_s = VF_INT_DYN_CTLN_INTERVAL_S;
intr->dyn_ctl_wb_on_itr_m = VF_INT_DYN_CTLN_WB_ON_ITR_M;
+ intr->dyn_ctl_swint_trig_m = VF_INT_DYN_CTLN_SWINT_TRIG_M;
+ intr->dyn_ctl_sw_itridx_ena_m =
+ VF_INT_DYN_CTLN_SW_ITR_INDX_ENA_M;
spacing = IDPF_ITR_IDX_SPACING(reg_vals[vec_id].itrn_index_spacing,
IDPF_VF_ITR_IDX_SPACING);