public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCHv2 3/3] network/stress/icmp: use ip xfrm for icmp4-uni-basic01 ipsec testing
Date: Thu, 17 Mar 2016 11:43:34 +0300	[thread overview]
Message-ID: <56EA6E36.3030203@oracle.com> (raw)
In-Reply-To: <20160316141026.GD29634@Leo.nay.redhat.com>

Hi,
On 03/16/2016 05:10 PM, Hangbin Liu wrote:
> On Wed, Mar 16, 2016 at 11:36:48AM +0300, Alexey Kodanev wrote:
>>> +. ipsec_lib.sh
>>> +
>>>   # Test description
>>>   tst_resm TINFO "Verify that the kernel is not crashed with receiving and sending various size of ICMP message with the following conditions"
>>> @@ -100,16 +103,12 @@ ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65507"}
>>>   #-----------------------------------------------------------------------
>>>   do_cleanup()
>>>   {
>>> -    # Kill the icmp traffic server
>>> -    killall_icmp_traffic
>>> -
>>>       # Unset SAD/SPD
>>> -    output_ipsec_conf flush | setkey -c >/dev/null 2>&1
>>> -    $LTP_RSH $RHOST ${LTPROOT}/'testcases/bin/output_ipsec_conf flush | PATH=/sbin:/usr/sbin:$PATH setkey -c' >/dev/null 2>&1
>>> +    tst_ipsec flush
>>>       # Clean up each interface
>>> -    initialize_if lhost ${LINK_NUM}
>>> -    initialize_if rhost ${LINK_NUM}
>>> +    tst_init_iface lhost ${LINK_NUM}
>>> +    tst_init_iface rhost ${LINK_NUM}
>> Again, we don't need it here.
> Hi Alexey,
>
> Thanks for your patient review. I will correct all the other problems you
> mentioned. There only one thing. We will add the ip address before each test.
> e.g.
>
> tst_add_ipaddr lhost $LINK_NUM
> if [ $? -ne 0 ]; then
>      tst_brkm TBROK "Failed to add any IP address at the local host"
> fi
>
> If we do not remove the address after test. the next time we will get TBROK
> when add address since there already have one.
>
> I saw you use lhost_addr=$(tst_ipaddr) directly after source test_net.sh in
> broken_ip4_lib.sh. But I didn't find when you init the iface addr. Could you
> tell me the secret?

It's simple, none of network tests (except somespecific 
stress/interfacegroup)
initialized IP addresses, all of them assumed that the test interfaces and
management link are properly configured before start of the tests. So if the
test don't need any additional IP address, we don't touch them.

May be we could add address verification code to initialization functions...
a check that address is not assigned... but I'm not sure if it's useful.

Thanks,
Alexey


      reply	other threads:[~2016-03-17  8:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15  9:50 [LTP] [PATCHv2 0/3] networking/stress: add ip xfrm ipsec support Hangbin Liu
2016-03-15  9:50 ` [LTP] [PATCHv2 1/3] lib/test_net.sh: add tst_ping() to check icmp connectivity Hangbin Liu
2016-03-15 12:00   ` Alexey Kodanev
2016-03-15 12:41     ` Hangbin Liu
2016-03-16  8:16       ` Alexey Kodanev
2016-03-15  9:50 ` [LTP] [PATCHv2 2/3] network/stress: add ipsec lib Hangbin Liu
2016-03-16  8:27   ` Alexey Kodanev
2016-03-15  9:50 ` [LTP] [PATCHv2 3/3] network/stress/icmp: use ip xfrm for icmp4-uni-basic01 ipsec testing Hangbin Liu
2016-03-16  8:36   ` Alexey Kodanev
2016-03-16 14:10     ` Hangbin Liu
2016-03-17  8:43       ` Alexey Kodanev [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=56EA6E36.3030203@oracle.com \
    --to=alexey.kodanev@oracle.com \
    --cc=ltp@lists.linux.it \
    /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