RE: [patch iproute2 v2] tc: add -bs option for batch mode

2017-12-22 Thread Chris Mi
> -Original Message- > From: David Ahern [mailto:dsah...@gmail.com] > Sent: Friday, December 22, 2017 6:04 AM > To: Chris Mi ; netdev@vger.kernel.org > Cc: gerlitz...@gmail.com > Subject: Re: [patch iproute2 v2] tc: add -bs option for batch mode > > On 12/20/17

Re: [patch iproute2 v2] tc: add -bs option for batch mode

2017-12-21 Thread David Ahern
On 12/20/17 2:26 AM, Chris Mi wrote: > Currently in tc batch mode, only one command is read from the batch > file and sent to kernel to process. With this patch, we can accumulate > several commands before sending to kernel. The batch size is specified > using option -bs or -batchsize. > > To accu

[patch iproute2 v2] tc: add -bs option for batch mode

2017-12-20 Thread Chris Mi
Currently in tc batch mode, only one command is read from the batch file and sent to kernel to process. With this patch, we can accumulate several commands before sending to kernel. The batch size is specified using option -bs or -batchsize. To accumulate the commands in tc, we allocate an array o