netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] net: arc_emac: fix tx issues
@ 2014-07-20 15:44 Beniamino Galvani
  2014-07-20 15:44 ` [RFC PATCH 1/2] net: arc_emac: enable tx interrupts Beniamino Galvani
  2014-07-20 15:44 ` [RFC PATCH 2/2] net: arc_emac: prevent reuse of unreclaimed tx descriptors Beniamino Galvani
  0 siblings, 2 replies; 3+ messages in thread
From: Beniamino Galvani @ 2014-07-20 15:44 UTC (permalink / raw)
  To: netdev
  Cc: Alexey Brodkin, Vineet Gupta, Heiko Stübner, Max Schwarz,
	Florian Fainelli, Wei Yongjun, Thierry Reding, David S. Miller,
	Eric Dumazet, linux-kernel, Beniamino Galvani

Hi,

I've found a strange behaviour of the ARC EMAC driver while doing some
tests on a Rockchip based Radxa Rock board and the following patches
are a try to solve the problem. I'm not sure if they are correct or if
there's a better way to do the same thing, so I'd like to receive some
feedback on this.

The problem I'm facing is that the transmission of a UDP stream from
the device stops immediately with the socket send buffer full and this
seems due to the current implementation of tx reclaiming.

With the two patches below, which do the following:

 - enable tx interrupts, which are used to trigger a napi poll and
   thus a clean of tx ring
 - fix a possible race between xmit and tx clean

everything seems to work properly.

Any comments are welcome,
Beniamino

Beniamino Galvani (2):
  net: arc_emac: enable tx interrupts
  net: arc_emac: prevent reuse of unreclaimed tx descriptors

 drivers/net/ethernet/arc/emac_main.c |   56 +++++++++++++++++++++++-----------
 1 file changed, 38 insertions(+), 18 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-20 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-20 15:44 [RFC PATCH 0/2] net: arc_emac: fix tx issues Beniamino Galvani
2014-07-20 15:44 ` [RFC PATCH 1/2] net: arc_emac: enable tx interrupts Beniamino Galvani
2014-07-20 15:44 ` [RFC PATCH 2/2] net: arc_emac: prevent reuse of unreclaimed tx descriptors Beniamino Galvani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).