Re: [Patch net-next v2 2/3] net_sched: plug in qdisc ops change_tx_queue_len

2018-01-25 Thread Cong Wang
On Wed, Jan 24, 2018 at 4:05 PM, John Fastabend wrote: > On 01/23/2018 10:18 AM, Cong Wang wrote: >> +int dev_qdisc_change_tx_queue_len(struct net_device *dev) >> +{ >> + bool up = dev->flags & IFF_UP; >> + unsigned int i; >> + int ret = 0; >> + >> + if (up) >> + dev_de

Re: [Patch net-next v2 2/3] net_sched: plug in qdisc ops change_tx_queue_len

2018-01-24 Thread John Fastabend
On 01/23/2018 10:18 AM, Cong Wang wrote: > Introduce a new qdisc ops ->change_tx_queue_len() so that > each qdisc could decide how to implement this if it wants. > Previously we simply read dev->tx_queue_len, after pfifo_fast > switches to skb array, we need this API to resize the skb array > when

[Patch net-next v2 2/3] net_sched: plug in qdisc ops change_tx_queue_len

2018-01-23 Thread Cong Wang
Introduce a new qdisc ops ->change_tx_queue_len() so that each qdisc could decide how to implement this if it wants. Previously we simply read dev->tx_queue_len, after pfifo_fast switches to skb array, we need this API to resize the skb array when we change dev->tx_queue_len. To avoid handling rac