From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Chris Mi <chrism@mellanox.com>
Cc: netdev@vger.kernel.org, gerlitz.or@gmail.com,
stephen@networkplumber.org, dsahern@gmail.com
Subject: Re: [patch iproute2 v3 3/4] tc: Add -bs option to batch mode
Date: Wed, 27 Dec 2017 17:56:10 -0200 [thread overview]
Message-ID: <20171227195609.GA22042@localhost.localdomain> (raw)
In-Reply-To: <20171225084658.24076-4-chrism@mellanox.com>
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, char **argv)
> if (argc <= 1)
> usage();
> batch_file = argv[1];
> + } else if (matches(argv[1], "-batchsize") == 0 ||
> + matches(argv[1], "-bs") == 0) {
> + argc--; argv++;
> + if (argc <= 1)
> + usage();
> + batch_size = atoi(argv[1]);
> + if (batch_size > MSG_IOV_MAX)
> + batch_size = MSG_IOV_MAX;
what about
if (batch_size < 1)
batch_size = 1;
> } else if (matches(argv[1], "-netns") == 0) {
> NEXT_ARG();
> if (netns_switch(argv[1]))
next prev parent reply other threads:[~2017-12-27 19:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-25 8:46 [patch iproute2 v3 0/4] tc: Add -bs option to batch mode Chris Mi
2017-12-25 8:46 ` [patch iproute2 v3 1/4] lib/libnetlink: Add a function rtnl_talk_msg Chris Mi
2017-12-27 14:33 ` David Ahern
2018-01-02 13:59 ` Chris Mi
2017-12-25 8:46 ` [patch iproute2 v3 2/4] utils: Add a function setcmdlinetotal Chris Mi
2017-12-27 14:34 ` David Ahern
2018-01-02 14:03 ` Chris Mi
2017-12-25 8:46 ` [patch iproute2 v3 3/4] tc: Add -bs option to batch mode Chris Mi
2017-12-27 15:39 ` David Ahern
2017-12-27 20:39 ` Marcelo Ricardo Leitner
2017-12-27 21:40 ` Stephen Hemminger
2017-12-27 22:06 ` Marcelo Ricardo Leitner
2018-01-02 14:17 ` Chris Mi
2017-12-27 19:56 ` Marcelo Ricardo Leitner [this message]
2018-01-02 14:19 ` Chris Mi
2017-12-25 8:46 ` [patch iproute2 v3 4/4] man: Add -bs option to tc manpage Chris Mi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171227195609.GA22042@localhost.localdomain \
--to=marcelo.leitner@gmail.com \
--cc=chrism@mellanox.com \
--cc=dsahern@gmail.com \
--cc=gerlitz.or@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).