Re: [Patch net-next v3 1/3] net: introduce helper dev_change_tx_queue_len()

2018-06-27 Thread Cong Wang
On Wed, Jun 27, 2018 at 9:14 AM Eric Dumazet wrote: > > > > On 01/25/2018 06:26 PM, Cong Wang wrote: > > This patch promotes the local change_tx_queue_len() to a core > > helper function, dev_change_tx_queue_len(), so that rtnetlink > > and net-sysfs could share the code. This also prepares for th

Re: [Patch net-next v3 1/3] net: introduce helper dev_change_tx_queue_len()

2018-06-27 Thread Eric Dumazet
On 01/25/2018 06:26 PM, Cong Wang wrote: > This patch promotes the local change_tx_queue_len() to a core > helper function, dev_change_tx_queue_len(), so that rtnetlink > and net-sysfs could share the code. This also prepares for the > following patch. > > Note, the -EFAULT in the original code

[Patch net-next v3 1/3] net: introduce helper dev_change_tx_queue_len()

2018-01-25 Thread Cong Wang
This patch promotes the local change_tx_queue_len() to a core helper function, dev_change_tx_queue_len(), so that rtnetlink and net-sysfs could share the code. This also prepares for the following patch. Note, the -EFAULT in the original code doesn't make sense, we should propagate the errno from