From patchwork Thu Sep 24 07:17:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 1370386 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2020-01-29 header.b=fFOPt9PZ; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BxmcC3z1hz9sSC for ; Thu, 24 Sep 2020 17:18:33 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id A9E483C4D55 for ; Thu, 24 Sep 2020 09:18:26 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) by picard.linux.it (Postfix) with ESMTP id 8C4063C078F for ; Thu, 24 Sep 2020 09:18:24 +0200 (CEST) Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id DB30C100023E for ; Thu, 24 Sep 2020 09:18:23 +0200 (CEST) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O78kmO175505 for ; Thu, 24 Sep 2020 07:18:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=BVltFjNXufER6WVbUZkVPLd7eTYqdyVhtRCkOB+kzVg=; b=fFOPt9PZL1TGdoXzqkUdZV1AvgW65tAHhO4AdiivGbEqtBMrMaZiF/uvr0s7gTNTvNfA BV0oTPDxNpA/qZb0RrnkdztwGtPknn2qIGS2juLrgHdIqSIcc+BA8gTZlUeO69k/gTWK TXhww5E9W0aONQV4x3SC+y6gRmMcbm1Nb7lsH2zXFH0zJAWwc64lK2zHf0k5Wf0/UiT+ G/uTpl1aCbrzAb6iX/N02nzkhUYPEfsk/U9ZPZcLt5SY26BgOlljLHhWnO+1Mt3M+Anu WJ4y/6FBZqwBJgOIBtZW9u2rff0QlZirBPm+b/lwOQ235vZC5FTbF8AYZN2gFmufWrZ3 hA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 33ndnupgvc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 24 Sep 2020 07:18:21 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7ASHr084070 for ; Thu, 24 Sep 2020 07:18:21 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 33nurvtsy8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 24 Sep 2020 07:18:21 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08O7IJOE005766 for ; Thu, 24 Sep 2020 07:18:20 GMT Received: from gyrotron.uk.oracle.com (/10.175.183.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 00:18:19 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Thu, 24 Sep 2020 10:17:36 +0300 Message-Id: <20200924071740.6963-1-alexey.kodanev@oracle.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 suspectscore=1 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=1 bulkscore=0 clxscore=1011 impostorscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH 1/5] network/ipsec: fix warning when using wrong option for ipv4 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This patch is fixing the warning in ipsec vti setup: Warning: nodad option can be set only for IPv6 addresses Signed-off-by: Alexey Kodanev --- testcases/network/stress/ipsec/ipsec_lib.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testcases/network/stress/ipsec/ipsec_lib.sh b/testcases/network/stress/ipsec/ipsec_lib.sh index d40941d45..198c9315d 100644 --- a/testcases/network/stress/ipsec/ipsec_lib.sh +++ b/testcases/network/stress/ipsec/ipsec_lib.sh @@ -295,11 +295,12 @@ tst_ipsec_setup_vti() tst_ipsec_vti lhost $ip_loc $ip_rmt $tst_vti tst_ipsec_vti rhost $ip_rmt $ip_loc $tst_vti - local mask= + local mask address_opt if [ "$TST_IPV6" ]; then ip_loc_tun="${IPV6_NET32_UNUSED}::1"; ip_rmt_tun="${IPV6_NET32_UNUSED}::2"; mask=64 + address_opt=nodad ROD ip -6 route add ${IPV6_NET32_UNUSED}::/$mask dev $tst_vti else ip_loc_tun="${IPV4_NET16_UNUSED}.1.1"; @@ -311,6 +312,6 @@ tst_ipsec_setup_vti() tst_res TINFO "Add IPs to vti tunnel, " \ "loc: $ip_loc_tun/$mask, rmt: $ip_rmt_tun/$mask" - ROD ip a add $ip_loc_tun/$mask dev $tst_vti nodad + ROD ip a add $ip_loc_tun/$mask dev $tst_vti $address_opt tst_rhost_run -s -c "ip a add $ip_rmt_tun/$mask dev $tst_vti" } From patchwork Thu Sep 24 07:17:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 1370387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2020-01-29 header.b=jPxBp8Ke; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BxmcF6Ssqz9sSC for ; Thu, 24 Sep 2020 17:18:37 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 2E7153C5FEC for ; Thu, 24 Sep 2020 09:18:35 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) by picard.linux.it (Postfix) with ESMTP id 997593C29BE for ; Thu, 24 Sep 2020 09:18:24 +0200 (CEST) Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id D3587600B6F for ; Thu, 24 Sep 2020 09:18:23 +0200 (CEST) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O78kZU175501 for ; Thu, 24 Sep 2020 07:18:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=FqHPSIf5kTzBUfsVT/n+vqi2wbatHV/XQBIBNw7ZnUA=; b=jPxBp8KegCNGC3ENm+DOpQemSJ8jEJ3s+hybgyXBdHM68d94Dq+goLZRq1Hl9ALND0hW vT6v8/cc05FaRpKJZy5NHyQdCo7hx6/ipQkreYD5UMCBrZVlKFsxdIqxVzH5zw0kI5Nw hr58V847TZ0ynnYfvD4SNErYTDFvafpDpcej9xzxdHoKqEiGYWgrY3Jj3DSkD+lO0k/e iE7CrcqgURmmUzWj3OFBCtY0L2/M1QywFC0fLRbX8rRHHuyghMDt8zAOJ0Mgm4qqUAM1 xnud+bwYxOwxevLVcCGmRYOSVYvJLT6XzZ6BgL/2oRneeSuTRj6uGC4+zbmeq30jNh6q 3g== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 33ndnupgvf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 24 Sep 2020 07:18:22 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7BTFn132843 for ; Thu, 24 Sep 2020 07:18:21 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 33nux2bq7m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 24 Sep 2020 07:18:21 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08O7ILIC030168 for ; Thu, 24 Sep 2020 07:18:21 GMT Received: from gyrotron.uk.oracle.com (/10.175.183.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 00:18:20 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Thu, 24 Sep 2020 10:17:37 +0300 Message-Id: <20200924071740.6963-2-alexey.kodanev@oracle.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200924071740.6963-1-alexey.kodanev@oracle.com> References: <20200924071740.6963-1-alexey.kodanev@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 suspectscore=1 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=1 bulkscore=0 clxscore=1015 impostorscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH 2/5] network/virt_lib: use test ip version in virt_compare_netperf() X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This will match virtual device underlying ip version. Signed-off-by: Alexey Kodanev --- testcases/network/virt/virt_lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/network/virt/virt_lib.sh b/testcases/network/virt/virt_lib.sh index f488932ff..827829633 100644 --- a/testcases/network/virt/virt_lib.sh +++ b/testcases/network/virt/virt_lib.sh @@ -292,10 +292,10 @@ virt_compare_netperf() local vt="$(cat res_ipv4)" local vt6="$(cat res_ipv6)" - tst_netload -H $ip_remote $opts -d res_ipv4 + tst_netload -H $(tst_ipaddr rhost) $opts -d res_lan - local lt="$(cat res_ipv4)" - tst_res TINFO "time lan($lt) $virt_type IPv4($vt) and IPv6($vt6) ms" + local lt="$(cat res_lan)" + tst_res TINFO "time lan IPv${TST_IPVER}($lt) $virt_type IPv4($vt) and IPv6($vt6) ms" per=$(( $vt * 100 / $lt - 100 )) per6=$(( $vt6 * 100 / $lt - 100 )) From patchwork Thu Sep 24 07:17:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 1370388 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2020-01-29 header.b=nHLn+43Q; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BxmcR4hnLz9sTH for ; Thu, 24 Sep 2020 17:18:47 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 180823C5FF1 for ; Thu, 24 Sep 2020 09:18:45 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by picard.linux.it (Postfix) with ESMTP id 6AEA93C32C0 for ; Thu, 24 Sep 2020 09:18:26 +0200 (CEST) Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id D01FC1A0064E for ; Thu, 24 Sep 2020 09:18:25 +0200 (CEST) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7997p175725; Thu, 24 Sep 2020 07:18:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=mSZjdRWsk+xjvmTwoagqFhzId+BaZguAb82Q+di4YaA=; b=nHLn+43QuOxHP4nbpl/K5PRQnaidSrJzRQHKLurQEtShABR4Rz+ClHiXhhqLuTPNJXJX f36nefqpu1l0MmqaI6rVZwuavR2haUq3u8HPmM14AXrbZGAs9C0S/aPLGWgHXzPcSsmk LLi9s3JD5gDRZiQnBPTj1TO2AMZgDH29GeimGqW1kKQsVdDzW4k9mZQdfJahz5DU9lxi oLXha7hZVOj13KqEWr2hnEUOHEk6Xkn/FZbaF0u98dtzedBKJIJeN+Ek4+AhthsK6rMt fv0LbLVS2h8xAodWV/yXaEL+LCii0H4VcQeJN3qBTMOFmW85AwbgOfSAFLWpEYhvMHVo AQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 33ndnupgvk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Sep 2020 07:18:24 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7ASvT084057; Thu, 24 Sep 2020 07:18:23 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 33nurvtt04-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Sep 2020 07:18:23 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08O7IM76005774; Thu, 24 Sep 2020 07:18:22 GMT Received: from gyrotron.uk.oracle.com (/10.175.183.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 00:18:22 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Thu, 24 Sep 2020 10:17:38 +0300 Message-Id: <20200924071740.6963-3-alexey.kodanev@oracle.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200924071740.6963-1-alexey.kodanev@oracle.com> References: <20200924071740.6963-1-alexey.kodanev@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 suspectscore=1 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=1 bulkscore=0 clxscore=1015 impostorscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH resend 3/5] network/nsf_lib.sh: TCONF on mount (udp/udp6) failure for Linux v5.6+ X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Most likely support is disabled with NFS_DISABLE_UDP_SUPPORT config option (default y). commit b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol") Signed-off-by: Alexey Kodanev Reviewed-by: Petr Vorel --- testcases/network/nfs/nfs_stress/nfs_lib.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh index e236cd485..1bd057717 100644 --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh @@ -87,11 +87,17 @@ nfs_mount() tst_res TINFO "Mounting NFS: $mnt_cmd" if [ -n "$LTP_NETNS" ] && [ -z "$LTP_NFS_NETNS_USE_LO" ]; then - tst_rhost_run -s -c "$mnt_cmd" - return + tst_rhost_run -c "$mnt_cmd" + else + $mnt_cmd > /dev/null fi - ROD $mnt_cmd + if [ $? -ne 0 ]; then + if [ "$type" = "udp" -o "$type" = "udp6" ] && tst_kvcmp -ge 5.6; then + tst_brk TCONF "UDP support disabled with the kernel config NFS_DISABLE_UDP_SUPPORT?" + fi + tst_brk TBROK "mount command failed" + fi } nfs_setup() From patchwork Thu Sep 24 07:17:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 1370390 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2020-01-29 header.b=I15UcO+y; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bxmcp0BzBz9sSC for ; Thu, 24 Sep 2020 17:19:05 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 2E79F3C32B7 for ; Thu, 24 Sep 2020 09:19:03 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id B7BBC3C4D59 for ; Thu, 24 Sep 2020 09:18:34 +0200 (CEST) Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 4E147200C2B for ; Thu, 24 Sep 2020 09:18:28 +0200 (CEST) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O79i9m122119 for ; Thu, 24 Sep 2020 07:18:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=QwE4Fs7ndzrUBbi/iZTbdSuoEehxJfgkigCzlUKQ6lA=; b=I15UcO+yQs6icbMqMRjrSeLE3xsSVT1yWQN5AfvxjuZhfwLmbp1jInUadeM2CT0ZAcIm RenfOqmFH2yxLIJFsDibwSNykhA1lAPGmlOM1gddD903MLFxqppEX18wAmv1w16jKoLO +hDamksG7Lb3K3yvAbkX1a035KJtrZQIrE5Uu9EUm827tm/mj4Wkz58cQ6Ta+qcgQtfa cBws4f0ndIBPzwZCt0av8SQfiiPMJTkn2894hGvQWs3z0z7DmJR4pPjB8m373al1ACdU j87f/wfpMnLYd96pyNoey7CM9kXYWmYpIMyHRSpUw+atxEwK6VU4V2AX3/irhNrr5uWh /Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 33q5rgmt50-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 24 Sep 2020 07:18:25 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7ASj4084011 for ; Thu, 24 Sep 2020 07:18:24 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 33nurvtt0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 24 Sep 2020 07:18:24 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08O7IN54008474 for ; Thu, 24 Sep 2020 07:18:23 GMT Received: from gyrotron.uk.oracle.com (/10.175.183.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 00:18:23 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Thu, 24 Sep 2020 10:17:39 +0300 Message-Id: <20200924071740.6963-4-alexey.kodanev@oracle.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200924071740.6963-1-alexey.kodanev@oracle.com> References: <20200924071740.6963-1-alexey.kodanev@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 suspectscore=1 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=1 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Virus-Scanned: clamav-milter 0.102.4 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH 4/5] network/netstress: replace rand with rand_r() in the client thread X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Store seed per client thread in order to get reproducible results. Signed-off-by: Alexey Kodanev --- configure.ac | 1 + testcases/network/netstress/netstress.c | 33 ++++++++++++++++--------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 142bfe26e..03e4e09c9 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,7 @@ AC_CHECK_FUNCS_ONCE([ \ profil \ pwritev \ pwritev2 \ + rand_r \ readlinkat \ recvmmsg \ renameat \ diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c index c5da4d464..e79e64220 100644 --- a/testcases/network/netstress/netstress.c +++ b/testcases/network/netstress/netstress.c @@ -31,6 +31,13 @@ #include "tst_test.h" #include "tst_safe_net.h" +#if !defined(HAVE_RAND_R) +static int rand_r(LTP_ATTRIBUTE_UNUSED unsigned int *seed) +{ + return rand(); +} +#endif + static const int max_msg_len = (1 << 16) - 1; static const int min_msg_len = 5; @@ -62,6 +69,7 @@ static const int end_byte = 0x0a; static int init_cln_msg_len = 32; static int init_srv_msg_len = 128; static int max_rand_msg_len; +static int init_seed; /* * The number of requests from client after @@ -344,10 +352,11 @@ union net_size_field { uint16_t value; }; -static void make_client_request(char client_msg[], int *cln_len, int *srv_len) +static void make_client_request(char client_msg[], int *cln_len, int *srv_len, + unsigned int *seed) { if (max_rand_msg_len) - *cln_len = *srv_len = min_msg_len + rand() % max_rand_msg_len; + *cln_len = *srv_len = min_msg_len + rand_r(seed) % max_rand_msg_len; memset(client_msg, client_byte, *cln_len); client_msg[0] = start_byte; @@ -362,7 +371,7 @@ static void make_client_request(char client_msg[], int *cln_len, int *srv_len) client_msg[*cln_len - 1] = end_byte; } -void *client_fn(LTP_ATTRIBUTE_UNUSED void *arg) +void *client_fn(void *id) { int cln_len = init_cln_msg_len, srv_len = init_srv_msg_len; @@ -371,13 +380,14 @@ void *client_fn(LTP_ATTRIBUTE_UNUSED void *arg) char client_msg[max_msg_len]; int i = 0; intptr_t err = 0; + unsigned int seed = init_seed ^ (intptr_t)id; inf.raddr_len = sizeof(inf.raddr); inf.etime_cnt = 0; inf.timeout = wait_timeout; inf.pmtu_err_cnt = 0; - make_client_request(client_msg, &cln_len, &srv_len); + make_client_request(client_msg, &cln_len, &srv_len, &seed); /* connect & send requests */ inf.fd = client_connect_send(client_msg, cln_len); @@ -407,7 +417,7 @@ void *client_fn(LTP_ATTRIBUTE_UNUSED void *arg) } if (max_rand_msg_len) - make_client_request(client_msg, &cln_len, &srv_len); + make_client_request(client_msg, &cln_len, &srv_len, &seed); SAFE_SEND(1, inf.fd, client_msg, cln_len, send_flags); @@ -468,9 +478,9 @@ static void client_init(void) family = remote_addrinfo->ai_family; clock_gettime(CLOCK_MONOTONIC_RAW, &tv_client_start); - int i; + intptr_t i; for (i = 0; i < clients_num; ++i) - SAFE_PTHREAD_CREATE(&thread_ids[i], 0, client_fn, NULL); + SAFE_PTHREAD_CREATE(&thread_ids[i], 0, client_fn, (void *)i); } static void client_run(void) @@ -496,7 +506,7 @@ static void client_run(void) int msg_len = min_msg_len; max_rand_msg_len = 0; - make_client_request(client_msg, &msg_len, &msg_len); + make_client_request(client_msg, &msg_len, &msg_len, NULL); /* ask server to terminate */ client_msg[0] = start_fin_byte; int cfd = client_connect_send(client_msg, msg_len); @@ -861,10 +871,9 @@ static void setup(void) if (max_rand_msg_len) { max_rand_msg_len -= min_msg_len; - unsigned int seed = max_rand_msg_len ^ client_max_requests; - - srand(seed); - tst_res(TINFO, "srand() seed 0x%x", seed); + init_seed = max_rand_msg_len ^ client_max_requests; + srand(init_seed); /* in case rand_r() is missing */ + tst_res(TINFO, "rand start seed 0x%x", init_seed); } /* if client_num is not set, use num of processors */ From patchwork Thu Sep 24 07:17:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 1370389 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2020-01-29 header.b=M1YH8AXZ; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bxmcd2XNDz9sSC for ; Thu, 24 Sep 2020 17:18:56 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 6988F3C5FE5 for ; Thu, 24 Sep 2020 09:18:54 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) by picard.linux.it (Postfix) with ESMTP id 47A483C59F6 for ; Thu, 24 Sep 2020 09:18:29 +0200 (CEST) Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 9E85D1401256 for ; Thu, 24 Sep 2020 09:18:28 +0200 (CEST) Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O79bcc025596 for ; Thu, 24 Sep 2020 07:18:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=dllox0nnQYJErSjmfyl4HS3ydqNoohOKHLImrZcJU3A=; b=M1YH8AXZarEFWNHKoQoBD3U4wNWMIDf9ZqlDMHHfjZXvuqACGxXn/boI3Q3s0xmzHB+r icQ/m1ERixCoF9/2dlw8gPl2iXRrrVh4+BY2NkaqK+DxSA5nA2Rd086/N/FfuhR4i8KF n06IzAXY4vPXp2EFJGbQSN7A40LDB+Zrlt/cS+PJgKsdeWK92iGHwBXSxpbhKxANWtKE y5yCI3qLhqhrdRyp782tfFb2KUJMlS3pdnk8GA31hdkizUHYJVndUrAozJA0MBlyICZ8 49YVinGCaMzT9aRPXKMG8Tog/2yLHXhDPI5oNNGeNAgxh9ApzriTjd2+ZDnO0xGR07Xl 7A== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 33qcpu3ctn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 24 Sep 2020 07:18:26 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O7AFeb008695 for ; Thu, 24 Sep 2020 07:18:26 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 33r28wmtfv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 24 Sep 2020 07:18:26 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08O7IOVb030217 for ; Thu, 24 Sep 2020 07:18:25 GMT Received: from gyrotron.uk.oracle.com (/10.175.183.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 00:18:24 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Thu, 24 Sep 2020 10:17:40 +0300 Message-Id: <20200924071740.6963-5-alexey.kodanev@oracle.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200924071740.6963-1-alexey.kodanev@oracle.com> References: <20200924071740.6963-1-alexey.kodanev@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=933 suspectscore=1 adultscore=0 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 mlxlogscore=941 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 spamscore=0 malwarescore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240054 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH 5/5] network/ipneigh01: use ROD when deleting the entries X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Alexey Kodanev Reviewed-by: Petr Vorel --- testcases/network/tcp_cmds/ipneigh/ipneigh01.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh index e15dd708c..6ad987c49 100755 --- a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh +++ b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh @@ -20,14 +20,14 @@ do_setup() case $CMD in ip) SHOW_CMD="ip neigh show" - DEL_CMD="ip neigh del $(tst_ipaddr rhost) dev $(tst_iface)" + DEL_CMD="ROD ip neigh del $(tst_ipaddr rhost) dev $(tst_iface)" ;; arp) if [ -n "$TST_IPV6" ]; then tst_brk TCONF "'arp' doesn't support IPv6" fi SHOW_CMD="arp -a" - DEL_CMD="arp -d $(tst_ipaddr rhost) -i $(tst_iface)" + DEL_CMD="ROD arp -d $(tst_ipaddr rhost) -i $(tst_iface)" ;; *) tst_brk TBROK "unknown or missing command, use -c [ arp | ip ]" @@ -75,7 +75,7 @@ do_test() [ "$ret" -ne 0 ] && \ tst_brk TFAIL "$entry_name entry '$(tst_ipaddr rhost)' not listed" - $DEL_CMD || tst_brk TFAIL "fail to delete entry" + $DEL_CMD $SHOW_CMD | grep -q "$(tst_ipaddr rhost).*$(tst_hwaddr rhost)" && \ tst_brk TFAIL "'$DEL_CMD' failed, entry has " \