diff options
author | Govindarajulu Varadarajan <_govind@gmx.com> | 2014-06-23 16:08:05 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-23 14:32:20 -0700 |
commit | 4cfe878537cec0e9c0f84b93cc6aa9526f6942b5 (patch) | |
tree | c3f002369ac3d8c478efb797561e9069f7c35f98 /drivers/net/ethernet/cisco/enic/enic.h | |
parent | 14747cd977195a8aae13d0b1ad021e33c8786afe (diff) | |
download | talos-obmc-linux-4cfe878537cec0e9c0f84b93cc6aa9526f6942b5.tar.gz talos-obmc-linux-4cfe878537cec0e9c0f84b93cc6aa9526f6942b5.zip |
enic: do tx cleanup in napi poll
Till now enic had been doing tx clean in isr.
Using napi infrastructure to move the tx clean up out of isr to softirq.
Now, wq isr schedules napi poll. In enic_poll_msix_wq we clean up the tx queus.
This is applicable only on MSIX. In INTx and MSI we use single napi to clean
both rx & tx queues.
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/enic.h')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h index b9b9178e174e..c8aa9fb81d3c 100644 --- a/drivers/net/ethernet/cisco/enic/enic.h +++ b/drivers/net/ethernet/cisco/enic/enic.h @@ -178,7 +178,7 @@ struct enic { unsigned int rq_count; u64 rq_truncated_pkts; u64 rq_bad_fcs; - struct napi_struct napi[ENIC_RQ_MAX]; + struct napi_struct napi[ENIC_RQ_MAX + ENIC_WQ_MAX]; /* interrupt resource cache line section */ ____cacheline_aligned struct vnic_intr intr[ENIC_INTR_MAX]; |