[LTP] [PATCH 2/2] if-mtu-change.sh: Lower CHANGE_INTERVAL for netns
Alexey Kodanev
alexey.kodanev@oracle.com
Tue Feb 9 13:45:20 CET 2021
On 08.02.2021 19:04, Petr Vorel wrote:
> How about allow to overwrite CHANGE_INTERVAL even for netns?
> i.e move tst_is_int $CHANGE_INTERVAL && TST_TIMEOUT=$CHANGE_INTERVAL
> after the test (although it's unlikely anybody would use sec value for netns
> and ms value for ssh):
>
> # CHANGE_INTERVAL: The interval of the mtu change
> TST_TIMEOUT=1
> if tst_net_use_netns; then
> CHANGE_INTERVAL=${CHANGE_INTERVAL:-100ms}
> else
> CHANGE_INTERVAL=${CHANGE_INTERVAL:-5}
> fi
> tst_is_int $CHANGE_INTERVAL && TST_TIMEOUT=$CHANGE_INTERVAL
> TST_TIMEOUT=$(((TST_TIMEOUT + 30) * MTU_CHANGE_TIMES))
>
Yeah, looks good.
More information about the ltp
mailing list