diff options
author | Paul Durrant | 2013-12-11 10:57:16 +0000 |
---|---|---|
committer | David S. Miller | 2013-12-12 13:35:38 -0500 |
commit | d9601a36ffdb5c142697bef1228afb5ba4ee4003 (patch) | |
tree | 0ab7a3fba3e2c7f238a6f33d5eeaf9d360ddd37d /arch/sparc/kernel/asm-offsets.c | |
parent | 10574059ce0451c6572c85329c772aa15085f8eb (diff) |
xen-netback: napi: don't prematurely request a tx event
This patch changes the RING_FINAL_CHECK_FOR_REQUESTS in
xenvif_build_tx_gops to a check for RING_HAS_UNCONSUMED_REQUESTS as the
former call has the side effect of advancing the ring event pointer and
therefore inviting another interrupt from the frontend before the napi
poll has actually finished, thereby defeating the point of napi.
The event pointer is updated by RING_FINAL_CHECK_FOR_REQUESTS in
xenvif_poll, the napi poll function, if the work done is less than the
budget i.e. when actually transitioning back to interrupt mode.
Reported-by: Malcolm Crossley <malcolm.crossley@citrix.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/asm-offsets.c')
0 files changed, 0 insertions, 0 deletions