[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130304.141507.1100300683952317840.davem@davemloft.net>
Date: Mon, 04 Mar 2013 14:15:07 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: Frank.Li@...escale.com
Cc: lznuaa@...il.com, shawn.guo@...aro.org, B38611@...escale.com,
linux-arm-kernel@...ts.infradead.org, netdev@...r.kernel.org,
s.hauer@...gutronix.de
Subject: Re: [PATCH v3 1/1 net-next] net: fec: put tx to napi poll function
to fix dead lock
From: Frank Li <Frank.Li@...escale.com>
Date: Mon, 4 Mar 2013 11:34:25 +0800
> up stack ndo_start_xmit already hold lock.
> fec_enet_start_xmit needn't spin lock.
> stat_xmit just update fep->cur_tx
> fec_enet_tx just update fep->dirty_tx
>
> Reserve a empty bdb to check full or empty
> cur_tx == dirty_tx means full
> cur_tx == dirty_tx +1 means empty
>
> So needn't is_full variable.
...
> Signed-off-by: Frank Li <Frank.Li@...escale.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists