From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>, davem@davemloft.net
Cc: Anjali Singhai Jain <anjali.singhai@intel.com>,
netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
jogreene@redhat.com
Subject: Re: [net-next 13/20] i40evf: add new write-back mode
Date: Sat, 6 Feb 2016 15:38:21 +0300 [thread overview]
Message-ID: <56B5E93D.6080709@cogentembedded.com> (raw)
In-Reply-To: <1454586551-35919-14-git-send-email-jeffrey.t.kirsher@intel.com>
Hello.
On 2/4/2016 2:49 PM, Jeff Kirsher wrote:
> From: Anjali Singhai Jain <anjali.singhai@intel.com>
>
> Add write-back on interrupt throttle rate timer expiration support
> for the i40evf driver, when running on X722 devices.
>
> Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
> Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
[...]
> diff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
> index 7a00657..7d663fb 100644
> --- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
> +++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
> @@ -252,6 +252,22 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
> tx_ring->q_vector->tx.total_bytes += total_bytes;
> tx_ring->q_vector->tx.total_packets += total_packets;
>
> + if (tx_ring->flags & I40E_TXR_FLAGS_WB_ON_ITR) {
> + unsigned int j = 0;
Pointless initializer, you override it on the next line.
> + /* check to see if there are < 4 descriptors
> + * waiting to be written back, then kick the hardware to force
> + * them to be written back in case we stay in NAPI.
> + * In this mode on X722 we do not enable Interrupt.
> + */
> + j = i40evf_get_tx_pending(tx_ring);
> +
> + if (budget &&
> + ((j / (WB_STRIDE + 1)) == 0) && (j > 0) &&
> + !test_bit(__I40E_DOWN, &tx_ring->vsi->state) &&
> + (I40E_DESC_UNUSED(tx_ring) != tx_ring->count))
> + tx_ring->arm_wb = true;
> + }
> +
> netdev_tx_completed_queue(netdev_get_tx_queue(tx_ring->netdev,
> tx_ring->queue_index),
> total_packets, total_bytes);
[...]
MBR, Sergei
next prev parent reply other threads:[~2016-02-06 12:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 11:48 [net-next 00/20][pull request] 40GbE Intel Wired LAN Driver Updates 2016-02-03 Jeff Kirsher
2016-02-04 11:48 ` [net-next 01/20] i40e: Add mac_filter_element at the end of the list instead of HEAD Jeff Kirsher
2016-02-04 11:48 ` [net-next 02/20] i40e/i40evf: Fix RSS rx-flow-hash configuration through ethtool Jeff Kirsher
2016-02-04 11:48 ` [net-next 03/20] i40e: Replace X722 mac check in ethtool get_settings Jeff Kirsher
2016-02-04 11:48 ` [net-next 04/20] i40evf: allow channel bonding of VFs Jeff Kirsher
2016-02-04 11:48 ` [net-next 05/20] i40e: define function capabilities in only one place Jeff Kirsher
2016-02-04 11:48 ` [net-next 06/20] i40evf: null out ring pointers on free Jeff Kirsher
2016-02-04 11:48 ` [net-next 07/20] i40e: Cleanup the code with respect to restarting autoneg Jeff Kirsher
2016-02-04 11:48 ` [net-next 08/20] i40e: update features with right offload Jeff Kirsher
2016-02-04 11:49 ` [net-next 09/20] i40e: bump version to 1.4.10 Jeff Kirsher
2016-02-04 11:49 ` [net-next 10/20] i40e: add new device IDs for X722 Jeff Kirsher
2016-02-04 11:49 ` [net-next 11/20] i40e: Extend ethtool RSS hooks " Jeff Kirsher
2016-02-04 11:49 ` [net-next 12/20] i40e/i40evf: Fix for UDP/TCP RSS " Jeff Kirsher
2016-02-04 11:49 ` [net-next 13/20] i40evf: add new write-back mode Jeff Kirsher
2016-02-06 12:38 ` Sergei Shtylyov [this message]
2016-02-04 11:49 ` [net-next 14/20] i40e/i40evf: Use private workqueue Jeff Kirsher
2016-02-04 11:49 ` [net-next 15/20] i40e: add new proxy-wol bit for X722 Jeff Kirsher
2016-02-04 11:49 ` [net-next 16/20] i40e: Limit DCB FW version checks to X710/XL710 devices Jeff Kirsher
2016-02-04 11:49 ` [net-next 17/20] i40e: AQ Add Run PHY Activity struct Jeff Kirsher
2016-02-04 11:49 ` [net-next 18/20] i40e: AQ Geneve cloud tunnel type Jeff Kirsher
2016-02-04 11:49 ` [net-next 19/20] i40e: AQ Add external power class to get link status Jeff Kirsher
2016-02-04 11:49 ` [net-next 20/20] i40e: add 100Mb ethtool reporting Jeff Kirsher
2016-02-06 7:42 ` [net-next 00/20][pull request] 40GbE Intel Wired LAN Driver Updates 2016-02-03 David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56B5E93D.6080709@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=anjali.singhai@intel.com \
--cc=davem@davemloft.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jogreene@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
--cc=sassmann@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.