Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-29 Thread Song Liu
> On May 29, 2018, at 7:02 AM, David Miller wrote: > > From: Song Liu > Date: Fri, 25 May 2018 11:11:44 -0700 > >> Summary: >> >> At the end of sch_direct_xmit(), we are in the else path of >> !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following >> condition will always f

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-29 Thread David Miller
From: Song Liu Date: Fri, 25 May 2018 11:11:44 -0700 > Summary: > > At the end of sch_direct_xmit(), we are in the else path of > !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following > condition will always fail and netif_xmit_frozen_or_stopped() is not > checked at all. > >

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-28 Thread Song Liu
> On May 26, 2018, at 12:43 PM, John Fastabend wrote: > > On 05/25/2018 12:46 PM, Song Liu wrote: >> On Fri, May 25, 2018 at 11:11 AM, Song Liu wrote: >>> Summary: >>> >>> At the end of sch_direct_xmit(), we are in the else path of >>> !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-26 Thread John Fastabend
On 05/25/2018 12:46 PM, Song Liu wrote: > On Fri, May 25, 2018 at 11:11 AM, Song Liu wrote: >> Summary: >> >> At the end of sch_direct_xmit(), we are in the else path of >> !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following >> condition will always fail and netif_xmit_frozen_o

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-25 Thread Song Liu
On Fri, May 25, 2018 at 11:11 AM, Song Liu wrote: > Summary: > > At the end of sch_direct_xmit(), we are in the else path of > !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following > condition will always fail and netif_xmit_frozen_or_stopped() is not > checked at all. > > if

[PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-25 Thread Song Liu
Summary: At the end of sch_direct_xmit(), we are in the else path of !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following condition will always fail and netif_xmit_frozen_or_stopped() is not checked at all. if (ret && netif_xmit_frozen_or_stopped(txq)) return false