[PATCH v3 1/1 net-next] net: fec: put tx to napi poll function to fix dead lock

David Miller davem at davemloft.net
Mon Mar 4 14:15:07 EST 2013


From: Frank Li <Frank.Li at freescale.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 at freescale.com>

Applied.



More information about the linux-arm-kernel mailing list