From: chrubis@suse.cz
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v5] network: tcp_fastopen: add TCP Fast Open test
Date: Mon, 17 Mar 2014 17:01:22 +0100 [thread overview]
Message-ID: <20140317160122.GA1977@rei> (raw)
In-Reply-To: <53271B93.6010500@oracle.com>
Hi!
> >>> This version looks good. I would be happier if the shell part was ported
> >>> to the new test.sh but I can live with it as it is now.
> >>>
> >>> And this patch is blocked by the thread safety patch for the tst_res.c.
> >>> I guess I will commit it next week, it has been on the ML long enough.
> >>>
> >> OK, thanks. I can do porting later along with the fix which I would like
> >> to add to the test: there is recently added tst_get_unused_port()
> >> function, but how can I use it in the script, should I add it to
> >> tools/apicmds?
> > Yes please.
> >
> OK, so what could be the parameters for the command?
> The function takes family and type, as a result command could be as follows:
> $ tst_get_unused_port ipv4 stream
> then we need to parse strings and pass the right ones to the C function.
>
> or we can set ids and explain the meaning in the help:
> $ tst_get_unused_port 1 0
>
> Which one is better?
I would vote for the strings. You can easily decleare an array of
structures with string-value paris and search in these. It's not that
much of work and the shell code would be much easier to read.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-03-17 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 11:29 [LTP] [PATCH v5] network: tcp_fastopen: add TCP Fast Open test Alexey Kodanev
2014-03-13 14:48 ` chrubis
[not found] ` <5326CE7C.5070603@oracle.com>
2014-03-17 13:18 ` chrubis
[not found] ` <53271B93.6010500@oracle.com>
2014-03-17 16:01 ` chrubis [this message]
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=20140317160122.GA1977@rei \
--to=chrubis@suse.cz \
--cc=alexey.kodanev@oracle.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=vasily.isaenko@oracle.com \
/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