Re: [PATCH iproute2-next] rdma: Add batch command support

2018-02-21 Thread Leon Romanovsky
On Wed, Feb 21, 2018 at 09:10:45AM -0700, David Ahern wrote: > On 2/21/18 5:38 AM, Leon Romanovsky wrote: > > @@ -36,17 +37,54 @@ static int rd_cmd(struct rd *rd) > > { 0 } > > }; > > > > + rd->argc = argc; > > + rd->argv = argv; > > + > > return rd_exec_cmd(rd, cmds,

Re: [PATCH iproute2-next] rdma: Add batch command support

2018-02-21 Thread David Ahern
On 2/21/18 5:38 AM, Leon Romanovsky wrote: > @@ -36,17 +37,54 @@ static int rd_cmd(struct rd *rd) > { 0 } > }; > > + rd->argc = argc; > + rd->argv = argv; > + > return rd_exec_cmd(rd, cmds, "object"); > } > > -static int rd_init(struct rd *rd, int argc, char

[PATCH iproute2-next] rdma: Add batch command support

2018-02-21 Thread Leon Romanovsky
From: Leon Romanovsky Implement an option (-b) to execute RDMAtool commands from supplied file. This follows the same model as in use for ip and devlink tools, by expecting every new command to be on new line. These commands are expected to be without any -* (e.g. -d, -j,