Thread (33 messages) 33 messages, 3 authors, 2016-04-07

[PATCH net-next V3 05/16] net: fec: reduce interrupts

flat view
STALE3843d

From: davem@davemloft.net (David Miller)
Date: 2016-04-06 21:20:08
Also in: netdev

Revision v3 of 4 in this series.

Revisions (4)
  1. v2 [diff vs current]
  2. v3
  3. v3
  4. v3 current
From: Troy Kisky <redacted>
Date: Tue,  5 Apr 2016 19:25:51 -0700
By clearing the NAPI interrupts in the NAPI routine
and not in the interrupt handler, we can reduce the
number of interrupts. We also don't need any status
variables as the registers are still valid.

Also, notice that if budget pkts are received, the
next call to fec_enet_rx_napi will now continue to
receive the previously pending packets.

To test that this actually reduces interrupts, try
this command before/after patch

cat /proc/interrupts |grep ether; \
ping -s2800 192.168.0.201 -f -c1000 ; \
cat /proc/interrupts |grep ether

For me, before this patch is 2996 interrupts.
After patch is 2010 interrupts.

Signed-off-by: Troy Kisky <redacted>
I really don't think this is a good idea at all.

I would instead really rather see you stash away the
status register values into some piece of software state,
and then re-read them before you are about to finish a
NAPI poll cycle.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help