summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/liquidio/octeon_main.h
diff options
context:
space:
mode:
authorIntiyaz Basha2018-09-10 08:34:21 +0200
committerDavid S. Miller2018-09-12 08:37:06 +0200
commit4b6e326b2d346b7935ec9a1e6385e27be8a36837 (patch)
tree4a53c9281f38d4f714a1301513304923ff81fdf3 /drivers/net/ethernet/cavium/liquidio/octeon_main.h
parentliquidio: Disabling tasklet when NAPI is active (diff)
downloadkernel-qcow2-linux-4b6e326b2d346b7935ec9a1e6385e27be8a36837.tar.gz
kernel-qcow2-linux-4b6e326b2d346b7935ec9a1e6385e27be8a36837.tar.xz
kernel-qcow2-linux-4b6e326b2d346b7935ec9a1e6385e27be8a36837.zip
liquidio: Per queue oom work queue
Removed oom task unconditional rescheduling every 250ms and created per queue oom work queue for refilling buffers. The oom task refills only if the available descriptors is fallen to 64. There will be no packets coming in after hitting this level. So NAPI will not run until oom task refills the buffers. Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com> Acked-by: Derek Chickles <derek.chickles@cavium.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/octeon_main.h')
-rw-r--r--drivers/net/ethernet/cavium/liquidio/octeon_main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_main.h b/drivers/net/ethernet/cavium/liquidio/octeon_main.h
index 38c055f3c213..073d0647b439 100644
--- a/drivers/net/ethernet/cavium/liquidio/octeon_main.h
+++ b/drivers/net/ethernet/cavium/liquidio/octeon_main.h
@@ -70,6 +70,10 @@ void octeon_update_tx_completion_counters(void *buf, int reqtype,
void octeon_report_tx_completion_to_bql(void *txq, unsigned int pkts_compl,
unsigned int bytes_compl);
void octeon_pf_changed_vf_macaddr(struct octeon_device *oct, u8 *mac);
+
+void octeon_schedule_rxq_oom_work(struct octeon_device *oct,
+ struct octeon_droq *droq);
+
/** Swap 8B blocks */
static inline void octeon_swap_8B_data(u64 *data, u32 blocks)
{