Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2018-01-02 Thread Chris Mi
On Mon, Dec 25, 2017 at 05:46:57PM +0900, Chris Mi wrote: @@ -267,6 +287,7 @@ int main(int argc, char **argv) { int ret; char *batch_file = NULL; + int batch_size = 1; while (argc > 1) { if (argv[1][0] != '-') @@ -297,6 +318,14 @@ int main(int argc

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2018-01-02 Thread Chris Mi
On 12/25/17 2:46 AM, Chris Mi wrote: Signed-off-by: Chris Mi --- tc/m_action.c | 91 +-- tc/tc.c| 47 ++ tc/tc_common.h | 8 +++- tc/tc_filter.c | 121 + 4 fil

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-27 Thread Marcelo Ricardo Leitner
On Wed, Dec 27, 2017 at 01:40:24PM -0800, Stephen Hemminger wrote: > On Wed, 27 Dec 2017 18:39:29 -0200 > Marcelo Ricardo Leitner wrote: > > > > > + send = false; > > > > + else > > > > + send = true; > > > > + > > > > + ret

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-27 Thread Stephen Hemminger
On Wed, 27 Dec 2017 18:39:29 -0200 Marcelo Ricardo Leitner wrote: > > > + send = false; > > > + else > > > + send = true; > > > + > > > + ret = do_cmd(largc, largv, batch_size, msg_iov_index++, send); > > > > What happens if tc commands are inter

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-27 Thread Marcelo Ricardo Leitner
On Wed, Dec 27, 2017 at 09:39:15AM -0600, David Ahern wrote: > On 12/25/17 2:46 AM, Chris Mi wrote: > > Signed-off-by: Chris Mi > > --- > > tc/m_action.c | 91 +-- > > tc/tc.c| 47 ++ > > tc/tc_common.h | 8 +++- > > tc/tc_f

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-27 Thread Marcelo Ricardo Leitner
On Mon, Dec 25, 2017 at 05:46:57PM +0900, Chris Mi wrote: > @@ -267,6 +287,7 @@ int main(int argc, char **argv) > { > int ret; > char *batch_file = NULL; > + int batch_size = 1; > > while (argc > 1) { > if (argv[1][0] != '-') > @@ -297,6 +318,14 @@ int main(in

Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-27 Thread David Ahern
On 12/25/17 2:46 AM, Chris Mi wrote: > Signed-off-by: Chris Mi > --- > tc/m_action.c | 91 +-- > tc/tc.c| 47 ++ > tc/tc_common.h | 8 +++- > tc/tc_filter.c | 121 > +

[patch iproute2 v3 3/4] tc: Add -bs option to batch mode

2017-12-25 Thread Chris Mi
Signed-off-by: Chris Mi --- tc/m_action.c | 91 +-- tc/tc.c| 47 ++ tc/tc_common.h | 8 +++- tc/tc_filter.c | 121 + 4 files changed, 204 insertions(+), 63 deletions(-)