FreeBSD/sys/dev/ixl/if_ixlv.c
/*
 * Get initial ITR values from tunable values.
 */
Get initial ITR values from tunable values.
Get initial ITR values from tunable values .
static void
ixlv_configure_itr(struct ixlv_sc *sc)
{
	struct i40e_hw		*hw = &sc->hw;
	struct ixl_vsi		*vsi = &sc->vsi;
	struct ixl_queue	*que = vsi->queues;
	vsi->rx_itr_setting = ixlv_rx_itr;
	vsi->tx_itr_setting = ixlv_tx_itr;
	for (int i = 0; i < vsi->num_queues; i++, que++) {
		struct tx_ring	*txr = &que->txr;
		struct rx_ring 	*rxr = &que->rxr;
		wr32(hw, I40E_VFINT_ITRN1(IXL_RX_ITR, i),
		    vsi->rx_itr_setting);
		rxr->itr = vsi->rx_itr_setting;
		rxr->latency = IXL_AVE_LATENCY;
		wr32(hw, I40E_VFINT_ITRN1(IXL_TX_ITR, i),
		    vsi->tx_itr_setting);
		txr->itr = vsi->tx_itr_setting;
		txr->latency = IXL_AVE_LATENCY;
	}
}
static void ixlv_configure_itr ( struct ixlv_sc * sc ) { struct i40e_hw * hw = & sc -> hw ; struct ixl_vsi * vsi = & sc -> vsi ; struct ixl_queue * que = vsi -> queues ; vsi -> rx_itr_setting = ixlv_rx_itr ; vsi -> tx_itr_setting = ixlv_tx_itr ; for ( int i = 0 ; i < vsi -> num_queues ; i ++ , que ++ ) { struct tx_ring * txr = & que -> txr ; struct rx_ring * rxr = & que -> rxr ; wr32 ( hw , I40E_VFINT_ITRN1 ( IXL_RX_ITR , i ) , vsi -> rx_itr_setting ) ; rxr -> itr = vsi -> rx_itr_setting ; rxr -> latency = IXL_AVE_LATENCY ; wr32 ( hw , I40E_VFINT_ITRN1 ( IXL_TX_ITR , i ) , vsi -> tx_itr_setting ) ; txr -> itr = vsi -> tx_itr_setting ; txr -> latency = IXL_AVE_LATENCY ; } }
Get initial ITR values from tunable values.
Get initial ITR values from tunable values .