[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9848F2DB572E5649BA045B288BE08FBE015E5576@039-SN2MPN1-023.039d.mgd.msft.net>
Date: Thu, 1 Aug 2013 15:50:51 +0000
From: Duan Fugang-B38611 <B38611@...escale.com>
To: Denis Kirjanov <kda@...ux-powerpc.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"venza@...wnhat.org" <venza@...wnhat.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH v2] sis900: Fix the tx queue timeout issue
On Thursday, August 01, 2013 at 3:01 PM, Denis Kirjanov wrote:
> @@ -1613,9 +1613,12 @@ sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
> unsigned int count_dirty_tx;
>
> /* Don't transmit data before the complete of auto-negotiation */
> - if(!sis_priv->autong_complete){
> - netif_stop_queue(net_dev);
> - return NETDEV_TX_BUSY;
> + if (unlikely(!sis_priv->autong_complete)) {
> + if (netif_msg_tx_err(sis_priv) && net_ratelimit())
> + netdev_dbg(net_dev, "Auto negotiation in progress\n");
> + net_dev->stats.tx_dropped++;
> + dev_kfree_skb(skb);
> + return NETDEV_TX_OK;
> }
I always insist on that tx queue timeout is caused by un-correctly phy link handler flow.
The link up handler flow: Auto-negotiation done-> netif_carrier_on()
The issue cannot be processed in xmit callback, which must be handled in link adjust process.
Thanks,
Andy
--
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