From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shimoda, Yoshihiro" Date: Tue, 12 Jun 2012 06:47:00 +0000 Subject: Re: [PATCH net-next 5/5] net: sh_eth: use NAPI Message-Id: <4FD6E5E4.7030702@renesas.com> List-Id: References: <4FD6D154.1000000@renesas.com> <1339480115.22704.20.camel@edumazet-glaptop> In-Reply-To: <1339480115.22704.20.camel@edumazet-glaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Eric Dumazet Cc: netdev , SH-Linux 2012/06/12 14:48, Eric Dumazet wrote: > On Tue, 2012-06-12 at 14:19 +0900, Shimoda, Yoshihiro wrote: < snip > >> + if ((mdp->cur_tx - mdp->dirty_tx) >= (mdp->num_tx_ring - 4)) { >> + if (netif_msg_tx_queued(mdp)) { >> + dev_warn(&ndev->dev, "TxFD exhausted.\n"); >> + netif_stop_queue(ndev); >> + } >> + } >> + >> return NETDEV_TX_OK; >> } > > > I have no idea why you call netif_stop_queue() only if > netif_msg_tx_queued(mdp) > > You should test your driver under heavy TX load. > Thank you for the point. I checked the netif-msg.txt about netif_msg_tx_queued(). It is one of the network interface message level setting. So, the driver's behavior should not be changed by the level, I think. I will modify the patch. Best regards, Yoshihiro Shimoda