From patchwork Sat Jul 22 00:36:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124165 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp546875vqg; Fri, 21 Jul 2023 17:42:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkGFGkUu5LDJ8Wb6Wo8thxgIKjTI/J9WCOSI6eiNEWNsB1A59qgFgTlbJL+27KPzHoXLm5 X-Received: by 2002:a17:906:778f:b0:982:45ca:ac06 with SMTP id s15-20020a170906778f00b0098245caac06mr2798929ejm.60.1689986525029; Fri, 21 Jul 2023 17:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986525; cv=none; d=google.com; s=arc-20160816; b=ITwOjvw0e8mwmWecIoayY0UmHQuTdevah8buWfAfpqipL5J98opvsvsNZNgiprAzsZ Z3BjfBlnW/hKQKztc9MAsCcbfWHoynNbjYM4Et2D+Pqq3jtDgOnyO1QVPklGNE6wThju jxEl41/X6yIN73wk+aWtpfNiQe/KFot9OaWl0S916T/rmHetwhWadsD+n/pJO/Mk7IVv WnL3SJXCTjb5a/axgtKRpYPDsWpM5Vki4aO7AUqgSkRTkleB3x8VCOOVxeCP9bbECbaF AFkTAixWOQjmg6tGIb6hx7nSCHyib3/bwMnHg3QcGt81UbbJljR+lUwjO/5bsX9f64R3 Eldg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=OFISU5aCKv/x+B/o5jxKB/4fMVE6njPGsatdC4licCE=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=ig9SgNIo0epZllYK3nQk52HzsvO+CrHJx/lH6xfieAXDBYsHrwfkILd9F9NY2WncBr mLLqTKmYyJmhEkpbwIWlztp4UU+E0klJlINWzL/FiKZvqPCDwY/0kC6FfIONZBeAg0k+ zGyMLAr1/r/4k/6COh2DiS8eUYetInV9szTUIWhMWzKCZuTsrsNAl2fkCpFMLgMxTCTk 6FgactOSuXc1E/nYA4zIPoqoFbrYy7JQ51n1jkUJFSAn/hTrF45lSacTmbgClRDzBnU+ yIyADShlTUJeu6A7jEy7yCv4vqY3YT253sLR4Wd6IhrNjYj6ZnZgmzRjWwY5MVIy7AcW 1rhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=PEQ44MRw; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Gm+fzv98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y25-20020a17090668d900b0099b422f9c93si2452623ejr.524.2023.07.21.17.41.41; Fri, 21 Jul 2023 17:42:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=PEQ44MRw; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Gm+fzv98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbjGVAhD (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGVAhB (ORCPT ); Fri, 21 Jul 2023 20:37:01 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF06B35AB; Fri, 21 Jul 2023 17:37:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 79CEA6016E; Sat, 22 Jul 2023 02:36:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986219; bh=QMQEJwodT9o6IRxHFTIzt5RjgYwj1u0/oGn1cqYAU4c=; h=From:To:Cc:Subject:Date:From; b=PEQ44MRweThypBxWnT+EIhVDBZ241yyRAcnFa0vAtS/wG5FErRs0pN4x6enAEA7kk KSkA+IGdo/3po02P6SU0jYtNOWEy+FxTd02rv+GmNdO9LGbn8MvhEroqEQ163lfa4t P8EkjW5SNp5ITRq/8bwN1YneQ+EB6nM3D++j6BjiwKez4pxNhPoqF786Tv9E3KR4Nz Y1YNRbcp2T0119cZB4OQtUw/VsRjRCzPIzgvnkuhuv3Um4vif2dpgU4S8mcisFkuxR uQb3ugN7jqHwvKUtWcMGWCIiYl2F/yQjtOOXaWSKAs3JZz0L1IoxORnfatdlnVXHxW hk2ZGvNPcmFoQ== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTkdtiiJxTHU; Sat, 22 Jul 2023 02:36:57 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 35D2F6015F; Sat, 22 Jul 2023 02:36:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986217; bh=QMQEJwodT9o6IRxHFTIzt5RjgYwj1u0/oGn1cqYAU4c=; h=From:To:Cc:Subject:Date:From; b=Gm+fzv98GfXBxtE53VsjjfyRLGd3FzaW5WjkGwUgCO5J6DiGc/2VYnydkWp7ECDJw zfA6pDFbnuSz1PtP0ssU7erKX+Symrdh/aN7eLrXv8sfcKCzk2I03cE+nnqHpdj215 k+Znsb2XfGb0xgWDFKhgv+FomDcB1QPPjNx3/ghG89DpgRi9PSrffqnXNKYx3HTWMr Ed//S7kPKUYDbaJHVnxhvoufdzk7I8CaO1qHyEIVK71jQmLIZsKq2yWivegcJEQAr/ wHMLcOH+nKd9s3KqY13ZKls8k/YbXZM3GRfE2juB1j83ns3yHjUtIdducmXhtIEQDX 183XBirqKgxeA== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 01/11] selftests: forwarding: custom_multipath_hash.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:00 +0200 Message-Id: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772079310475419793 X-GMAIL-MSGID: 1772079310475419793 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 511e8db54036c ("selftests: forwarding: Add test for custom multipath hash") Cc: Ido Schimmel Cc: netdev@vger.kernel.org Tested-by: Mirsad Todorovac Signed-off-by: Petr Machata --- tools/testing/selftests/net/forwarding/custom_multipath_hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh b/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh index 56eb83d1a3bd..c7ab883d2515 100755 --- a/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh +++ b/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh @@ -363,7 +363,7 @@ custom_hash() custom_hash_v6 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124166 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp546894vqg; Fri, 21 Jul 2023 17:42:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGywuImhaWJ/7+dL2Mm+sEm+U+eokJAVFcTsUSs/uQ6h4ayKXVPck8i+Re93nah0/M2mS2o X-Received: by 2002:a17:906:3193:b0:993:d7ff:afe7 with SMTP id 19-20020a170906319300b00993d7ffafe7mr2808716ejy.13.1689986528020; Fri, 21 Jul 2023 17:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986528; cv=none; d=google.com; s=arc-20160816; b=q5rv/cjLqfUE7TF0K4arwEOmVHSBfCkeTKnsjE6flEexRpvB8RKm7wZjE4iIzx7bbP xt5bTu6+9dkVQ9BjrQjFrrwTlHrQy8BlMbQIypb+oRCrpMNByqaTleTZ3t4LHqBlq6ip De+SIYN/S5ObdIgTKRsj8Ff/ZegyuCPYjHJIE46CmKW0xNZPtNUjZYGNEqE4bUFvNTOC /Optux+3SZIvDb8ZPvLglACP/ZVZxG6urW+G3+nhYZLvjAmC3K9v746hvNBUdHbkovNE z7VPsGv/MTGuING18C2kTc//kuIfrAbD/WgplKmDUVhtRd+vWipCC1KUofRTm4VjOZvH sxSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=m3HkE4C7+snzlWCd43brprSizExIj8PZkTMFO8n6ZjM=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=ZWl/iF1d4ixUmQxSIjZqtgp/F6pmmcgrkvtZZhTjmKnV0p+IrGNpNzqOUPudEtpJEQ Ht58RgCkMqUIodTg4FEbAX/rSnaLWmtGB7vC4RN95h9UxSOjzjFWKvjp1gMcgn4AUTX7 kYZwJTzhFf4BNrOy94vEG2viihkWcIE9vudBfG9LMK8x2vRihtylQ20DSOPRg6ZMfBUG erq0iR3E/R53Qwv3xzds6/w86N5b0WWF2c/FGtRDK40xJIjtbvR7WG288q7DT84BXCM5 2XnGt+ZaTx1boaMl68C9j4jtoWML3xgYXNt5iKSeLUR/aVv13WP6ifMQjOuoBxF6Tp0F zRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=BO3I7SJc; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=D6aZ04F8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170906b10d00b00991dfb5dfb7si2940542ejy.573.2023.07.21.17.41.45; Fri, 21 Jul 2023 17:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=BO3I7SJc; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=D6aZ04F8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229477AbjGVAhV (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbjGVAhT (ORCPT ); Fri, 21 Jul 2023 20:37:19 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C59663C10; Fri, 21 Jul 2023 17:37:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 9DD8F6016E; Sat, 22 Jul 2023 02:37:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986233; bh=QsuXCGAwOh2wClg+15zK1xj3+9ZgIEV9Mxn1Nstx2xI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BO3I7SJcmjm4SpPb87PXXsPW5WvN9Kdq8YMumZhailfO2ze8Jo4+S+uzjkdk37g6q d5GoT5fqVbz+EXmLcZnXi/EULG0OZbXVgbsViR5zAL6ejH15iRFkxSx1mh1cQcxQwP 7c9TH3b0e1JIkMD4gckWNshRV5jTa87EuFHZlYkPlJQb34i1FkANdjYGicJx6rkxtz KuHvs3YjadspjlVsol1q/CqI2eG3XVBDAlTdG1+UjQFY3KSO2PoSTk1QDHrad7TIIf 4Ijk2tKM9WEJY6p3yYIIMyylmerstprPxmK/keZBCbaFEonoFbaAPCGsRlfakBZrQT LzAXiq0X8ZyoQ== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3M1XdNMalUBo; Sat, 22 Jul 2023 02:37:11 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 62D336015F; Sat, 22 Jul 2023 02:37:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986231; bh=QsuXCGAwOh2wClg+15zK1xj3+9ZgIEV9Mxn1Nstx2xI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D6aZ04F8IDRyBsgkG+RL6hYYCwhX0DL3ddudN29gAXx4bkNQzYDAKleQLQzQOfLAI B93l//NPF/WjMJCew7JBgjR+gh6DQ/b+ZW/LulPg5ZJPCT+orGFas9LyKQv6ICnqF9 3nnJI8Kavw+6fNuoY+6GBd3P/UaZMYieM7mQOyreUf0Yv/Kjmx7p72wfW16PmzJbGW XUTe0dbj+j3oqJvLeUb0DldRTRpkNeznr0soEt85eOhDOqlZHqrR46/XaaUyyc0a6R Hj+RaBm8iz4z3hGvUAHRIXBt/xaOsD2eXNgn1EDYRaLr/OxSDyt+v6H1E56SB/xFJp e1I4JHwatGQfg== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 02/11] selftests: forwarding: gre_custom_multipath_hash.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:01 +0200 Message-Id: <20230722003609.380549-2-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772079313658285886 X-GMAIL-MSGID: 1772079313658285886 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 185b0c190bb6d ("selftests: forwarding: Add test for custom multipath hash with IPv4 GRE") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- .../selftests/net/forwarding/gre_custom_multipath_hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh b/tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh index 0446db9c6f74..ca24dbed3bdf 100755 --- a/tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh +++ b/tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh @@ -455,7 +455,7 @@ custom_hash() sysctl_restore net.ipv4.fib_multipath_hash_policy } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp561391vqg; Fri, 21 Jul 2023 18:26:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFG6y3V10y6H1zk1QELcMAx6uDY/JcneZ4JwfDWW4L8kx9FCGHGytqshXDtKx6j5IudHRPO X-Received: by 2002:a17:90a:3909:b0:262:ce9e:8a25 with SMTP id y9-20020a17090a390900b00262ce9e8a25mr5777021pjb.22.1689989172550; Fri, 21 Jul 2023 18:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989172; cv=none; d=google.com; s=arc-20160816; b=Tlg6jrhRhw3UYVdodS1B4kRGuOuPZcjQiGVzz16XIjVVTyDBGZDwdhZgXnYAbx29Iv 4FH3E6lPk81NtAANYsTsUCMsLV9QjadBic7ZArPbBdw0eAUz3kZ03PKItZAFl7GsKLLb w3j6dA0UgEDp4k4nZP9X4MZ4yPE5Aa9daOgTIr5ktUr1wOS2J/aorT7gOCOm8GiW7e+U 7Db0FE8omtZchBLS1uFZFWKQGQUNJ5STHXAJPbYc8toKu4E++Y5oByuNUuc6JbxE7m0T TFl/WdA6wsdwd5F5OQCci3EZYdboEwqUsznbVHug2YdhM3Kr33b2RdwCjyayXQoP+dmx cp7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=mC10GCIOn110kt/MDAi5X+eOP5Td39J+Dohs1jbegCo=; fh=ZfIRNwZHEJFw432aG2FHt+C3hHsUAo8WOXuTLdAu2C8=; b=u9Fyej8QDIwJtfTcei+Ptmlnu3PsLwffKRDqY0/uPsqq9JxzJevJiufj7QXjXuk1D4 ze/QbDHBnnSeiDQ945FXRHys4uRsA8J1SAhlXZnJqgNIjIcn94deiGws1Zc3qSPKU/Jj WfiJCzOaAh2/Vdo8AJJP3BTjYAqGXvrZm51DHmcCIuB5tRc7emqnzN4u4G484Qz19Xhm wWgPslu4rbTFFabGm/dtvJWCYS1u6uprIJDsI33xKTSM0NhQKSGp2bTN1fR3DmT5TM9e ibLuLZpXYf4jFHP/b4NFfj4cJajF/kdGoY1KSqc2NAkQRYVFm5G0+k0Ph53uc280ZCoC bZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=m57OF3cE; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=yOcoyZ5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a17090aad4a00b00259a3c7fb52si4310274pjv.27.2023.07.21.18.26.00; Fri, 21 Jul 2023 18:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=m57OF3cE; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=yOcoyZ5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjGVAhd (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjGVAh2 (ORCPT ); Fri, 21 Jul 2023 20:37:28 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F245E35AC; Fri, 21 Jul 2023 17:37:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 461976018D; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986241; bh=GyTx+in0QuEFu64I6/v5X/cdAZdpOWmLIok82+GgJl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m57OF3cEwRXSUI+sZv3oBxK91/5ZhUthMvF/Jujj5s4mKzjmIweTiIcgoBcfRkdsL ooFcUlVsWOltfOp9Y+d3Kg6++guHNP8N2KZcNGa9C/jAGwb8tYFsGRLEhtkI4eb1WA V+pZ40ceSK6fu62R24iVN7wwQDymQDimeNTA5KyWEd50PPgyfJXckTA1qr1mx7a9kb 6r5YiA9Dsnet9UiBZT+Oc1Dx1Vh+5G23OQHVTnM41IppZdMAq5jqJn1yD6xVGLHrxm CAIq2RWeUowD682IZ2v7ulBpXzxrDUuLtfsI0mp37Zy426xEr0cS7O0ZRvO23m2lEd YKzs6ADinwjTw== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id plxVHBFTzZ2k; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 246816015F; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=GyTx+in0QuEFu64I6/v5X/cdAZdpOWmLIok82+GgJl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yOcoyZ5LT17jGebiILXBb4YY/in8ro87VP97TSC7RjcJfn6GIkQ82e1V7ZtVBvL+Y DohthD1Rh2+inXFdmA/3sk+hRu++i1ONjVurkltvmsZYkn1vz+6Ofk64E2WsTDP2v2 uFX7zQNOIwcRuQvzygfECoXt3EbQpP2gopSPURlevv/R9YvktPSi2mVimpo7DScKNF MpktvnmOoRF/jvWWBke0SKM6ASpiSNJ+SDN77sYbNiH6ll9iXYNKf3RHWp9fOOYCl6 iTJFm130YbV6NeQ2Tvq4seFgRA+Jxt2KjkZTVWOQmW0v9awjZ8ywLvDvyck186oZTv FVAT8Gi84s1ug== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Stephen Suryaputra Subject: [PATCH v1 03/11] selftests: forwarding: gre_inner_v4_multipath.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:02 +0200 Message-Id: <20230722003609.380549-3-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772082086634930207 X-GMAIL-MSGID: 1772082086634930207 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 2800f2485417a ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel") Cc: Stephen Suryaputra Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- .../testing/selftests/net/forwarding/gre_inner_v4_multipath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh b/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh index e4009f658003..3b2941b9e89b 100755 --- a/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh +++ b/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh @@ -296,7 +296,7 @@ multipath_ipv4() multipath4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124167 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp547201vqg; Fri, 21 Jul 2023 17:43:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBHdnblSFCgQotSzak456sMf0jLSE9nMgse9kpfuFLsQnOHDg/EtidK7OzndoQQzYxfoet X-Received: by 2002:a17:907:7707:b0:987:f6d6:572c with SMTP id kw7-20020a170907770700b00987f6d6572cmr2446924ejc.25.1689986586622; Fri, 21 Jul 2023 17:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986586; cv=none; d=google.com; s=arc-20160816; b=ptwqZUAGi5/nsesGUJ/79r6uMyg5TSpd3Kz7PDUy5Kg1Gnh/o7bspl6j+yhg/TOLQr 8J1LdASBwf9Joc+1ag6QYaO7oNv9L4jZTQs1nfEXGiwIVP6A4la5A4DRnZXLV2swsgCy 37xtBrSc61rk7PK19dmkQaqMp7G5Ig9D8esZgHWBEYW/yjXOMaTvPyx4otYyocq4MQ/u bUr9nptv4JLQOmphGpYXgMLjuREZbJ5acoZFnbiq3xwyIEVO7xRpwb8gldJgfxvwHtGL 16voH6flr+N2D/bohQ/JivecWkCeiwvTnLWpyKzYpd5LVbm/Tid4BXwSg6PtgSf0iv9E K/ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=ik356/YjK3VdkPnG/0xCUcil98ABzMGhiijRtxnxYIo=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=bFbfZ5NAC03ydfjY+xfHiqislSZ8mmoinZvTQsGzqVBsoaarxiM8GJHsCW8oTz3UUG WGJBJvITFBOssAisFm5j+R2czlnqKbvL1rdlyQ4/hFb8Ujen5yfTp7XfMdau9o5fsd9p hDgkSE0J1Sk7WWCgwkhUMisXD6ChVotb8OGLIhGZUx1MOhIxMZiN1yVTnd/lOoTm/ztw dkw30hfRh/YY6cc9+f4pQNtBAb5LYisPzXnnwi+of7iiwG8RegVjSbgUmuzvLWIVPqaV tBo1Ke/dcnNvGQr0xpxQLC2jFEvTVupIGFUxcIfZ2hMoobdNsR/vE5dbvDP4bOeGQOOU G3xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=MfDNSlaU; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=bN0Huft2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170906b10d00b00991dfb5dfb7si2940542ejy.573.2023.07.21.17.42.43; Fri, 21 Jul 2023 17:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=MfDNSlaU; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=bN0Huft2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbjGVAha (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbjGVAhZ (ORCPT ); Fri, 21 Jul 2023 20:37:25 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D529135AB; Fri, 21 Jul 2023 17:37:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 520BB6015F; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986241; bh=Bc0dIUG/XF3GLflgprZ9fOJOZFSZr/NOgaX0ho+Cj8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MfDNSlaUJsXJ6zY4IWcQDHeJ6wCBFZdlFx8QyQm8Jwjf/odNvPQHc8+zm/ToOzK/Y xxbR/+GlqEtt9LmKmKscUQxHUZU5DVxKlSkUAKZNrAL1XkjLq97bK386wcXJbqAyNZ v9uewOSYiMyXq8dir1+bee1yvtx4eIN7ak9muDrYn7jKwXtOeG64CAx7AjRtO8X61B Jpl6Or0Ps2XxtggyE4Z9Q67MII2dqvl3l/9xLdZrJYGZ6VCN7yelPi4YAuUDoLY/7h B8knHFMaP5r5FJl2FJOxsAFbCl8uGQZ4GUeFBCjnoMITIWBvhPkfV9TLFDZUaDCfYS cfm36jflKDwBA== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MvLS1Q3DjMCb; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 33E0960171; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=Bc0dIUG/XF3GLflgprZ9fOJOZFSZr/NOgaX0ho+Cj8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bN0Huft29JSlT6o255gAqANu1pKkw9Ur3Ecin+WVVnr0CPlq8zm7SpFhMk3fIJmCI BlbbEMnz3mZBKRFJDSDoWhoCPpmS6C0gW+iWoTvDU0qC6tY5qAQ2e+TJKmp07DFhQx 8N5G9TWyZAgtWFftFN+/fQNkBNjGp1O3MveE+prUi8zqwul5RtHUFVlr9o86cxLlNd b3av7367F9cezDPOuYBYrwebHScDcQXcmLO3h3UMBy9RV+MugXtNBPlvOX3oDydWc4 hv2e7JusywHbzLEcbQbBnzbFjTiQXAapkdU9lBWMmqGV6gujkJkec/2k4Y/zZ5Guof qdJq0/Umd1c/w== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 04/11] selftests: forwarding: gre_multipath_nh_res.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:03 +0200 Message-Id: <20230722003609.380549-4-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772079375037354044 X-GMAIL-MSGID: 1772079375037354044 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 902280cacc036 ("selftests: forwarding: Add resilient multipath tunneling nexthop test") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh b/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh index 088b65e64d66..83032c165c65 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh @@ -352,7 +352,7 @@ multipath_ipv6_l4() multipath6_l4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp560824vqg; Fri, 21 Jul 2023 18:24:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFM69K5GhnDHdWfGkWCfVkq2imYVaUq/dNIRhU94Rzsmc/ULKGhQV7tjICn5Ym0fRWHgevI X-Received: by 2002:a05:6a00:2290:b0:668:8493:2545 with SMTP id f16-20020a056a00229000b0066884932545mr1637934pfe.24.1689989058266; Fri, 21 Jul 2023 18:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989058; cv=none; d=google.com; s=arc-20160816; b=zCXm/MWW+LglzZ2ttoMH/fT9GG5lotfBdPMY8C0GdzzsR9bfmmKMOG5rC7rvRtqLS0 79kYkFrfbV7L0DfyQ8KKd4zMvRssrIKwXPUTITaSX53ZgIjYn58c52vjnvju1xWsumxj Cog84VcvdBF9X8lnez2C7vaWUlNnjcNLZOJLooycmHR+FOV5u1QINAU6CB43ACK5VTb8 LGO6bUYddnCNrsKY45B5DrAz8MIJCll4YqMpbQouDqsw++8zXAyZQR/VJ6W9xXxvfCh9 Knz7tIA76y+axfhwZajeu31xCfS8kt0zYVUe6Vn78iWS9Yn3qpu6El8sKM2BK4EGNzu5 14tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=yMkPRdkCFStmGBhtbNFkc8Lk+klJYKaJBwIMlnFokXo=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=Z1LOL8JvIfXr+Mg+9Ftlp2/nsEY3mg3StqLbIE2cg1XpycsFMYfxSfsTAIVvLkLy4v /XlngHmZUFCAc0/dleAr59OUwAPJYloa8Ehl3t1/Pze7f5bNuMCQNy793T87kazLfRLT t2krd3g79wktbXXARLwmywePySS+glNr/uuCFb5V61ScF55xFCgraHCxot9IPXuohG8y PW0yjg53O2ZoqyBrqKS6LkFzB4ppO/fuZkXDsI49lSQ2OJA6lNAO47x1I3dhWz83AtGY G1IOnZGqcUFb9ld1ljp7I+YyAF5x3aqHhJj5G5Tjoo1kVUVtR2gp2HWz8GNrR5pcyd0Y IOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=b5gOO2Q9; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dOy9XdPh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g185-20020a636bc2000000b00543ad7aa643si3796027pgc.815.2023.07.21.18.24.05; Fri, 21 Jul 2023 18:24:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=b5gOO2Q9; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dOy9XdPh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjGVAhh (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjGVAh3 (ORCPT ); Fri, 21 Jul 2023 20:37:29 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A046A3A92; Fri, 21 Jul 2023 17:37:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 5D9066016E; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986243; bh=7W3ynW0vvotn+/mE5zS4UF/4GcS0BEQbaUjU76Bkz1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b5gOO2Q9p7k87Wp9EEjtvpQQWxYc0wAjuibY4frrWvHjvG1UCZTJ7EFBEDrz2RxXI S9i2ZkUmaSkdeNcCr6iiCBvoSmT01WadWGy/RyjLTHyyGWdB9eqHZZT2jbk6s20dO+ 7enGMFNyktcGKpyUiNqjIW8UbtDbQr3NVRQoeoMs3Vtbh5j/XpaAVfWTjd2P0jwAuv p5NrWFWEEofjZQvkEkJTkOyxr8l2pnG+ax5Lt90bvgJ/1Li1AWb8MKxlHZGPnSPSdD AZeYnGfbUJ9N1Xtsh6z2ZhSCLCxvpekChqJdXwyuHMNfP3rrREzn4x83xN0i7i6rsb pWHFmrfbcAyDQ== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64sfHafPNM-S; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 42FD660177; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=7W3ynW0vvotn+/mE5zS4UF/4GcS0BEQbaUjU76Bkz1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dOy9XdPhdOHptX5peyzm3KrhunrfImNtT4XOenc1nyLGcd/AhGbHl4JROIiSLtOT+ nyYt0KoiK6ZM0ZbuQNGSX3qVi2rfoHWDQb5ykDgcdgMB+oz5AXhacAdfif/P618tHJ FYIDLfowL6Wz+mlLLnj/6zKjCAPM0vF7LiHh46Oj3zF5NzCTDJtTQHF4aAEBnK4c2w SrgS1O2mWBVUwBz4q6imxQmCvyOlb9vYS+cHetVLpVDLd7UpTtOZFnt0aG4z2cirDW 53L8kNpGYtr5aIksBtypO4urBA+NwXJXsP/yWARWlTjpqkfoPYThcjxWEzTjVVyLFX rTBuq0GBNWJiw== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 05/11] selftests: forwarding: gre_multipath_nh.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:04 +0200 Message-Id: <20230722003609.380549-5-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772081966570269154 X-GMAIL-MSGID: 1772081966570269154 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: e035146d65603 ("selftests: forwarding: Add multipath tunneling nexthop test") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/gre_multipath_nh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh b/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh index d03aa2cab9fd..8338b8693387 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh @@ -347,7 +347,7 @@ multipath_ipv6_l4() multipath6_l4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124168 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp547713vqg; Fri, 21 Jul 2023 17:45:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlEINIEbdN8XhKXJovnAd0n+dPmjIoNTkBYYKgANOU/awCcqEg5MVYUbAWyBxcu2DkxxvO4h X-Received: by 2002:a17:907:3d8a:b0:994:fec:e1b7 with SMTP id he10-20020a1709073d8a00b009940fece1b7mr9854125ejc.0.1689986705460; Fri, 21 Jul 2023 17:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986705; cv=none; d=google.com; s=arc-20160816; b=XFmEQF9jSfbXyH5gMLFg3QaoEwINp7uYRRzgKmf7bqzcvu70oBK8eOC31wJaeyFuzB 1/jjtdW20NpYeX1YeuX9eXlJuDjNcaHO5eee5wj3+d1W61lKPYJ7cY+aS8z5v0hvX3X8 y16uGU2uwE0Lw29P+2BC5C+sVkfswvGg+LjQDIDfuReFtvgT/K75ca7z9pg9C5lq2lna 52O+M1Hy0bh5xkmIbYOBEII9rQRxw+v0+PvGxEnpXWwSROEd1W2CmMmRtYmyrwnEQQD5 Mc/RDvAQeCr3549VeobjorFar9Il5VWUu+n6hyb1MPPYjRoSUl7uIUC0qmkrvWIppdWU OQ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=B3UjxKXe0sxj/XqGqfeI85IJ/xyQ9bRYFXtBdkX2fls=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=vJmguhJyuDnFU65DpRFq/ZEGRa6ujxCFxzp3Nw/975+xcl6lkN1j6czNyCYD6g8JDS syNwZ0QsCXf/XWwZiXPP63ua+6DX3cs921wfunMLro4tLwwkaxZ53+K0ER8U7ba74yue HQM0Hbs8D1hQpHL9HEgz8P0cl6AmdAYWGA5KBp7mLYqb2deomTJSA8BqBPmA52vZoHks 9H4Tr98/MMBhT8RvW8xZRKNglLlWH7ctVz7aUW3i+WFrWw0dIu2U0nIiPIePMs9bdhfQ DrpuVD+w3kzU299ql7VLmkQgrKpiOC6xDs+B3fl0+HxhlI1O9RHuIsDW2Rd/wMGKfrNW 7I6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=TsXJjIPx; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=qG6r7ZJA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a17090694d500b009892044ecb7si2956464ejy.496.2023.07.21.17.44.41; Fri, 21 Jul 2023 17:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=TsXJjIPx; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=qG6r7ZJA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231268AbjGVAhl (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjGVAh3 (ORCPT ); Fri, 21 Jul 2023 20:37:29 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F0D3A9B; Fri, 21 Jul 2023 17:37:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 6F40060171; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986243; bh=TDT1v0dxZBetJ381eDhND50soCJEI+UHL2fqhwIyxGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TsXJjIPxljgrUOqt0aas8xuyQKXeDlFyGolY7UOuMhrBoE7g0DdA6BB/ij9coqH+i dDYZ8znAm5rIzMSREkNoWT3KUtkjzRh8/0sM+RfDl4gTuUeyLyFKL+AovUrcRQjPox /YotyadJJ7yjhhV7MtR1TE+3ExDKV8QV6/8oYaZQCK/3IJFHaPyFBN1/sRazTda3wt lvWb8G/2eOpjZFNkv8jE2yrn57zylUNym2PK2ynCH3kNSYN9YMV1oM29QTq9rpdrD0 XCNhqyd817JrqPZux90hZN1Kae/IODn17RFzGsIbnIhEHHtZEU5FoK0sPY+WdcB9Tw BxKsv57xDQl4w== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G4Jy_5ef4K22; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 4F9756017E; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=TDT1v0dxZBetJ381eDhND50soCJEI+UHL2fqhwIyxGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qG6r7ZJA2BEs1rcQe6qLyW+h7b7ynKRJVjn2+uk3DRDUZy2tbrYaFbFztJDPAingx gXsvIFBO84y29yAlKyEY3i9PMZcTzaoNbsSZs69X6giGE3J1Wo936O8dtJcxRDiDIY CyD0rRUZhv496mPu0h4Ylf7vpm6qG9yoYTCUOrAh93aGJaxfZzOYfUvfdpKLIoFVXH 51vIPFVnzVevwL2UaUFraeVIk/wsC7qraLC598XGvL/OB5nBXLE4bcFpOELAqQ1WSK kCVE+JIX6xBYH+uyDAeolMK0w+wzCh8VmqUr2Fpspl3vYwU03isSr3DKvA0NKhNl6b dQAPES9UOCVxg== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 06/11] selftests: forwarding: ip6gre_custom_multipath_hash.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:05 +0200 Message-Id: <20230722003609.380549-6-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772079500010416727 X-GMAIL-MSGID: 1772079500010416727 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: b7715acba4d3d ("selftests: forwarding: Add test for custom multipath hash with IPv6 GRE") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- .../selftests/net/forwarding/ip6gre_custom_multipath_hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh b/tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh index d40183b4eccc..ea6270ec7478 100755 --- a/tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh +++ b/tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh @@ -457,7 +457,7 @@ custom_hash() sysctl_restore net.ipv6.fib_multipath_hash_policy } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124171 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp552850vqg; Fri, 21 Jul 2023 18:02:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4YzyVOl9fYnpXud/BhVDhxMe6bNBXJNeAOvl7C/Wz6YTcbEPL7Fg6uMWjYjYlf2lYJUaQ X-Received: by 2002:a17:906:847c:b0:994:569b:61b0 with SMTP id hx28-20020a170906847c00b00994569b61b0mr3010275ejc.2.1689987720497; Fri, 21 Jul 2023 18:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689987720; cv=none; d=google.com; s=arc-20160816; b=NcFP9UkZwuBCqabvlEVgfgvlgc6J6GrKAffFQDH41dYdWf3Q3SnUO5S2b1myiqFBJd MtBqTMEJXYeWR1F0Yd1MqK5QIJcBzrxeD2SwjbzJfnK1fS1p2/18lFXvgRUH9bqZKBOk E9DJpxL2kL54lZRAg9qEia/wgVAUM026KsDrpPp52za01xd0zbTvUMscQsI9/tbXP1AQ jwl0QLZbOdfOGblxKoVtW0tggKVoT7YEoE1UAPvoNHHDlguYgyThdPrzIjRVJqJB/HDp oz9LSKWaQBVHwho4/Zvdqam7NWD8IIvG/OzQhVJeZSvb7H17M4/tgdCUEPDGJEA1VRdH B4rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=0xQw+YLrjsplilil6GIr4p0Gx3VPktphzdCpgapGA+g=; fh=ZfIRNwZHEJFw432aG2FHt+C3hHsUAo8WOXuTLdAu2C8=; b=oor+Cvy4xc/m4cdKVGTigNwfT6l5RjXJCZE5s8oB2Uc3bMEG8iTm+6GwpyBw0NeIsl brOVU/m0diq9ihS8B1HyMZpgA1vs4FxbL6aZgy4Oxo/hmfDvnog+R9T1ps5+6qsWCSWb fTI6ObMWqlV2tfQvkJ1beGJMg73ydRB8xAKFvHFNsIz4TA50fTDlaC7k5ge13LSiWqpx 2wGHxIFSgP+r4fIeCJEB55bfoW1xDvzRkb/YnmF3TNBmDnKptj0eI4kGgqqiHh/GgmnZ kDSrtMJS6vDAypt2r0thYjULdnZHbIqOy//hDp7ua3Z2AFarOYTCJKzkneLvmTUXm5yQ aZVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=YU8RSR1N; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=CvbBph3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a170906524b00b009784f00c5besi2716258ejm.263.2023.07.21.18.01.33; Fri, 21 Jul 2023 18:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=YU8RSR1N; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=CvbBph3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231343AbjGVAhn (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbjGVAha (ORCPT ); Fri, 21 Jul 2023 20:37:30 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C492A3C0F; Fri, 21 Jul 2023 17:37:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 77ED96017E; Sat, 22 Jul 2023 02:37:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986245; bh=HwfcetItcDbQUyVPKY4tZ80kehqSuVRT0oF1J5uK1jg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YU8RSR1NdCV/Dx023N2TtGwF4TBdKLIXZT92YhyTHSblD0kq8uhOg2mnZ0aAzqAKq BSJZubtRgAGky2lzWdeN7ZZPPuPXNY1c6iwgxLObo3VMdBT8aiaeOG3T9/Z31T1Uqf NVoMofEpSQsEoL6/f8BL6auiKCQlRjPHV79RKj6jAMfbAvFoTFTWvPIT3kpEota2n9 ETfJoaxH/E3j4e3IAj6BKkJTFdZbJEgq8Sri6FZe2Z5DUtqOqudVrJ9VTjZkdM5uQC aC7hdSiXPDirw4rufwL5WK32TwgEVUYy+P35LyozA2Bcltplaram48rrIs0N958Cny jIFhzQsMi6E+w== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tNUQ11GI3Fis; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 5C07B6017F; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=HwfcetItcDbQUyVPKY4tZ80kehqSuVRT0oF1J5uK1jg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CvbBph3ZrKfysIxky4I+z2iwcdApcxGddnedz4YAw5O/IlbZ68eSBQ0tTwDS8rvUv 275u6hTPPkRZBpkeNld7kzEjNk6wMBg+kv1AJBfXLm6q/e22TL6DztB5/3HLCLsjva jrU1Uf4GUzWfvB9ywTTT+Me/1ESdKDO6XEQmPSs3OCJ8v/Wk5Q7XB6tJctrtYNCe0U 1q6FeG8O3hEiJonuluTinO5BmuWtB2NuthjZJvxzsC76wyqELRpdmbbDe/FAdzIFcV 1dKAHDh3ifknAqbbk/o10EOAPZM5NDLX7pSLYR2Sr8lPeTahwt9xRTn3oCc87jzMfk JtWJ/HlHF7I2A== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Stephen Suryaputra Subject: [PATCH v1 07/11] selftests: forwarding: ip6gre_inner_v4_multipath.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:06 +0200 Message-Id: <20230722003609.380549-7-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772080564165869141 X-GMAIL-MSGID: 1772080564165869141 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 2800f2485417a ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel") Cc: Stephen Suryaputra Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- .../selftests/net/forwarding/ip6gre_inner_v4_multipath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/ip6gre_inner_v4_multipath.sh b/tools/testing/selftests/net/forwarding/ip6gre_inner_v4_multipath.sh index a257979d3fc5..093cae3c2a49 100755 --- a/tools/testing/selftests/net/forwarding/ip6gre_inner_v4_multipath.sh +++ b/tools/testing/selftests/net/forwarding/ip6gre_inner_v4_multipath.sh @@ -295,7 +295,7 @@ multipath_ipv4() multipath4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp553226vqg; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNkaDzaP6oOaCQCoZWWCqE2VN6Z3aK0UxSwWndRdtI6dWCTPUEAtPzMZy5tu1KW0CXr9Fg X-Received: by 2002:a17:906:208d:b0:999:26d3:b815 with SMTP id 13-20020a170906208d00b0099926d3b815mr3092783ejq.64.1689987768093; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689987768; cv=none; d=google.com; s=arc-20160816; b=u1ONd6uQNctkj6QsiNl6YwAAYrAj+9CNgFIjONaSM3opKOsyEvvY50D0y2tBVEXtuJ LgMky/NtOFrRXne4Xg9jTgluY5ndx270VHwzmk1Q+SfXI5A8J62FEBrPWUGPg+m6UuLT JHvX7rGHwWvXReXoQdrLVmvbiuBqPsHTSxe0xCsRWj+m6GBpPY+lRPWg5w6/v7cmj57i Rh8JOmWBI2uuZu+6tzL2jk1JOXVUoYY4DJVeyF08sR7Q3OsxYAs12u9imMqJNHPvsdy9 jTsGbkbsE2zTTcH3QSM/CpDxMmd4/bvmLb357FBfALYIRUd2tIt1zboBgyW7v+CJDpBT 2TVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=a0ow7Np2IyYCTH94/scP92nDfcI16NF1ncd0yyE0opY=; fh=9Ti7kAqXw+Ygde3jVsQg72gmjUIkvhs2JRRbLoAPe6o=; b=KysPktBq+NSlW54oN79nsYM67EdoAvpiOkPJw5ysEwJIx+y/UAle2FBEuVkxHV9op8 JwTY91r33bsouHiWTgyBpJ4NcCYkYBlW8Jd4kwSv9kmeviu1Kr3u9ClA+bZZdBWhQsuA S262+jFjkpmKA1Zh3EWuB8+NOevZucY4reFqNzUCxVRmf9nxjs6w3y2B4Y5n/nPdZqOG 3H96A0dLThw5Lg8omCbxeSZBZbbXbzfy5Xkzwl1I4/q4q3/voFeoasjX1tSlo1ULwA0e /QA1TTVw0WkQx1vqS8IawPmas0BOlYoY0LHYwWbWFDT0qLaRyyc+qhvKmXmcR+4xC/Zr RNSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=0gAN3W35; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dWoEkSWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa5-20020a170907b9c500b00993949aad30si3136997ejc.37.2023.07.21.18.02.24; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=0gAN3W35; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dWoEkSWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbjGVAhr (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjGVAha (ORCPT ); Fri, 21 Jul 2023 20:37:30 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A283C13; Fri, 21 Jul 2023 17:37:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 8601E6017F; Sat, 22 Jul 2023 02:37:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986245; bh=pTPk5QVJQzy4beH8ZuTqLRthaCgM62PmnWjd63M9UV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0gAN3W35FU0YoUJaDkx6ltr9K5vnKfLaV9/25bnRwbqBaN2Y27AZ/HD5Wqd2Ul1Mf rhE+BDCI+iqSJqydmp+GFmViBwi1Pk9CFZdIlOoRhpERqAWWWgKpD83fqdD/m9Pt0o htBHCy4ZI2jWJztgw+LmgyhIvvfybK5E9ipW2Do+gqP/QRT3JVsKPgpIbVNstoY46Q VN8HAN7HF7npa2SkPPvNgod9MxZRYHdUOLmRxe9Y02IVnTC0lZJfHj8TYykwFGPvSo oU1cC2RPctXdHynJRrJQ3RiJu0fCstfr/KXNXS7w6xs2W7vZiXpvYL6/qVmuqMHk+u wWAQdz7q/lX1A== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k8aBC5yL3xMl; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 68C3A60182; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=pTPk5QVJQzy4beH8ZuTqLRthaCgM62PmnWjd63M9UV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWoEkSWWwGtCwM7ho0noxsldMed1jWELG2CyVEaX8Dd6Ohfc7naN320ryGCXWo++u z/vw5GA1+TN7HIyrXWwzX5rIWApMPu9uN2Ew1uqz44tFsgWG1sjOIq7jnuV5KX/H+o x3juthC2hll+VytPM9mdG3GHj02O8YWxo8CxZgY/8qPG4K0GqldFxyteZlgXIfqHlp 9wvxR5cEr4SP/bYccsU9Er2q0dqH51fOFbJvLQJ5Jh9a1KyThMzPWBIQi2v/2Q+aoL kX8o4IxbtO/ZQWcOVoqAwVRssTKZpD3haM2z99BBogcMg6EgdUO0c2SyWVd+xD7O2x yOzsWUfNhYUVA== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Vladimir Oltean Subject: [PATCH v1 08/11] selftests: forwarding: no_forwarding.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:07 +0200 Message-Id: <20230722003609.380549-8-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772080613981761305 X-GMAIL-MSGID: 1772080613981761305 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 476a4f05d9b83 ("selftests: forwarding: add a no_forwarding.sh test") Cc: Vladimir Oltean Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/no_forwarding.sh b/tools/testing/selftests/net/forwarding/no_forwarding.sh index af3b398d13f0..f748954aa1cc 100755 --- a/tools/testing/selftests/net/forwarding/no_forwarding.sh +++ b/tools/testing/selftests/net/forwarding/no_forwarding.sh @@ -251,7 +251,7 @@ setup_prepare() ip link set dev $swp2 up } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp550142vqg; Fri, 21 Jul 2023 17:53:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpHdlz2QUxpSeEAQTiDH89MhbOwW0UXS5Lbkoi7zNrbsTAXgRDjHLkB5j+4d9N6P1JMWN6 X-Received: by 2002:a81:6ed4:0:b0:56c:e61c:35c6 with SMTP id j203-20020a816ed4000000b0056ce61c35c6mr1571482ywc.45.1689987215098; Fri, 21 Jul 2023 17:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689987215; cv=none; d=google.com; s=arc-20160816; b=Ja7iihZnute0m1gWCanFqJTXEMg8iiZlqXUayjc0YPb8tJePnosdn9TKQ76NlFcKjK lVeeY8iJNF9p6YUY/Iyx9F9UlHkkEfr7Job4kLmwqNX5epL9QazmHVFZtu9P2BQcaIg5 +ok/ip9GaWVDX0CjuuKNjncUkc6IbOYYcUvHrTtSftBtuN47tEfXSXD2gYFN8W4FMdLa d34oNZ/IRzAHuvyW3Nm35bA+UTdoFNpUdXiJw3nT1TJ9M0TGaUfXjJd+R7iPn4+gh2UF g1xc2JGgc5PLFDZoxYflaM7gZvvV4dH8hyDGDii896l4gxlDjpFQLzcjsWgMoMwEeDUF XzEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=E4Q/fUECFPXquLhReXe6UG7HG1gpX39dDZxuSOuM8yg=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=Pln85fY2konNCeZyDP1kFkTNnZZmAIky604/g43rbiOE+cHBNuXa6OQI9GiG/cuE7O sImAFFrWyhOKZaRaP8XlfS+E4D3rdMIqolkwNbxJQdfFmcIiDKRyV0NPXJ0bwBOkpa+p /VTT1qAIP+l6WtxkyfU5E2psh4duB+vSV/UgvQQVh+i13tlAd+gvL4Diz9OYm9fgDCtv EjkjUedstgPmFFrYApacqxRJrw6sNhgpjgqaHwigXEPdALZzaDnSskb2S9xVOKs49dWY 58vb1iij0fFquxYg4Fb5W+IncULhlpK5FkpRYqwyBXmMqKaEEHJsCwbEPPVxp8vnNYB7 fHdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="OuzaO/4b"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=JGZFZjdV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a170902b40300b001b8039317cesi4028472plr.301.2023.07.21.17.53.22; Fri, 21 Jul 2023 17:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="OuzaO/4b"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=JGZFZjdV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbjGVAhw (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbjGVAhc (ORCPT ); Fri, 21 Jul 2023 20:37:32 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184EB3C2D; Fri, 21 Jul 2023 17:37:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 8F3196015F; Sat, 22 Jul 2023 02:37:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986247; bh=dvw4jQyDzBRR25YNVtUBVTam1ATqnuEuxF59MWqbQ3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OuzaO/4b2xlbzps8wDjDBv1+5LFxOHN9iJGYzUH0prsZJ+YuWvMWcAIBLLqi4TfSp hT3JTkHNC4bWjQjmnHNWj5CIJ0dnWFFN8RxEVyX6yux63lGeb/qq5+ol5AmuGqInpV 4wBjNde0MJUMAlQEHVzbmaRp+IGskbTC7UMdIuBk3UahwwM07JQRzmq65QqzUjOI14 jaoMt2zks1BgadbQueJcIJ2kQgAVSOvcGcFd0l7CV1s47bPuud01klx4Cdf6wPEZL7 LvMDyD1ochnbwcIhr0RxgExxG+hm1v23sqhMKUKFRaw0ZYLijA+2ez6nV6kjQUqial m0gkO2yqjErCA== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2_1_dsYMO7E; Sat, 22 Jul 2023 02:37:25 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 800C860186; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=dvw4jQyDzBRR25YNVtUBVTam1ATqnuEuxF59MWqbQ3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JGZFZjdVFPNrjDD7A3s2/gq/4PS/wVHydLDSUnWPz0JSvb8NYT8RoIXXwvkH5ukN6 RN5eBaKDmS5cEpwz5s71AgIDY86Fykd4DpgDt5iKLllqBuFJOHDdBeqmyQSgvF2LdM hBmgr/sKoLlgmvoKd7IVacEgWFj189NOW5k42bTfQp/nSFi1KPSDidG4KGyhtclgpT yl8kwV0d1HF3U1kXaFlxH1VB2bbwk8K/NEK5xpbpt91vuTH+6FU3eQ3ZXLp4QtKElW JpNEaPLs9P6PdEFmBMeBXb11egdu4ygTy+pZBa6zgdngJ83SDE8PfdFfigVYM1URqH VGqMGGKRx7a0Q== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 09/11] selftests: forwarding: router_mpath_nh_res.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:08 +0200 Message-Id: <20230722003609.380549-9-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772080033870732446 X-GMAIL-MSGID: 1772080033870732446 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 386e3792b52a4 ("selftests: forwarding: Add resilient hashing test") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh index cb08ffe2356a..57e211d6f859 100755 --- a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh +++ b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh @@ -389,7 +389,7 @@ if [ $? -ne 0 ]; then exit $ksft_skip fi -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp561399vqg; Fri, 21 Jul 2023 18:26:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpXFQTikDip+9k7wRVvRG5slZXwUkvCZnS0IAORPehIRWRI3flIZjAkLp5RTXXc330jzUT X-Received: by 2002:a17:903:248:b0:1b9:cf52:2bcf with SMTP id j8-20020a170903024800b001b9cf522bcfmr4601808plh.0.1689989174147; Fri, 21 Jul 2023 18:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989174; cv=none; d=google.com; s=arc-20160816; b=KWKummju44xxk09fRRuOeJdrpvReOl9i0uPg23ZbGSGvz4gAZkaOK7V+5Gu0WLSt4z hP+ssuE+JfNXIBRrLZuuU+c7aWDkR/7eWpc2Sw+AetX1w60Z+7fUGhZH8I5uBVxOj+Su bh+GAbnAgt11bY7Bo7xyAPzyXoNb/RaJS7tZB9OgHYINUAl3lCXxtMs/PAXOzvfrZB6J M9OMUZ4orbjn1ZijUjcwaNiEWwvf+DCmBPit+twG8q/8SCFzn74aHam4jdtn5Mf5Boqo YzR8bIggedPrGjFlzHvy7mo+p8ys8ub8UiW5HK/D1Sqn2ocQhfmFa4nYiGgplTYd69PD QooQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=lgnJXz9UxDC5ao8DOEQ5d0nw1NedsP2bsadmXVynyMo=; fh=9eNe4yDz43TVLfdy4jKRk1MUjI4Q+A+ZURr2UccJmnI=; b=vWXO5sG1rnPOS6obLhGzYlcItpRimD+NRpJ9Hs+8yk0nOc89cVniIcKO0dAxbUuYg5 RmGdGnP50m8232+Zc82cXxArSTamGFyQU8hq07b1IAvOgqitDkCW7XGp4MMRFwAy3vw6 xiuCk75wk0q7O+/DkKfRpfLrHaCsMES8Xn4rinciKQX8g/i7f8zhTN2VZKH/5DKAau6f nwpHcHsjMvJ3rVBpE0TQmNtFpnjHeKxeyVKeR3Uu+eBlsndWlpu/GtH1SPxmW7spUR2U VOFea2XmWKqZ/TIE11LlMj9m/Pzx797xCbtxgviJWHqaAaGEkd2PLF+ND5dNUTSnMfBN sBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="AC2oJSH/"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Ui6S7uvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc15-20020a170902fa8f00b001b6aeea4a58si3978324plb.53.2023.07.21.18.26.01; Fri, 21 Jul 2023 18:26:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="AC2oJSH/"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Ui6S7uvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231365AbjGVAhu (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjGVAhb (ORCPT ); Fri, 21 Jul 2023 20:37:31 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F263C2B; Fri, 21 Jul 2023 17:37:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 9C81C60171; Sat, 22 Jul 2023 02:37:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986247; bh=0rIok0EQjGTKvrvF2VSOh1b7Lbci4BJ+WsapvWPqS0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AC2oJSH/7x1aPR0Ere43VQEq6IaMuX7vPYg/F1HX8dPzHq7swg73PqxAnW/j0EnRV J8EJ1cGXYulr5N9otXP1xsSFE9z9pSpoeR92NDVzmoDRJlaU2trfR62v9ZWWacUzCP 1m2UVbJBbFpu2uHzCqUOsjSSmOvqiWWZg6NRjgFTvb2INXMGMjebpb+ImFxU4HAlx6 1KErleLgXm5SydI2SLwIST2/Kz0VSLd5J++RtaN/3hDyctJ5elic7dlCBTqIQzpcKd KE+p6wJMhEjdj2oVai8ya4nW5x2kWYkWVonjzMgYT/unwsnl00Ra8Jg0BfsBUWAnja TMnvA29AzEoUQ== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fNK3DkGWk327; Sat, 22 Jul 2023 02:37:25 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 8F2F360187; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=0rIok0EQjGTKvrvF2VSOh1b7Lbci4BJ+WsapvWPqS0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ui6S7uvdNgWhgmba5K9OGGRa5oyfotQUulpVDWyVewiPvWs1Bo0usDI1euBMsMheh HsouynCu6slqll51WV1iJZPKE7HogdWh5BqasQD4w3Deej4BbY+vdUYoCFzrDtb0qf VfrVakBtXb5tCgcAkt7B/RLsVaZCvHbTH3/P00qVxWQ1YaHQI8LYdmYoAhbBL5CwrW Z7wYrgaZBqZoWq8yhGZhvEuNDlqEhd+OggJuIJ2a7GIadDATRqUlFK6dBDs+iU67Qv G9b20xWgk+I3c7byt4+b84YDfTgBYAsOtK/KAy5kIDD9CS41hdaU63LJ7EG60tiLfp vxa8R1aHr6s+w== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , David Ahern Subject: [PATCH v1 10/11] selftests: forwarding: router_mpath_nh.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:09 +0200 Message-Id: <20230722003609.380549-10-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772082088300383199 X-GMAIL-MSGID: 1772082088300383199 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: cab14d1087d9b ("selftests: Add version of router_multipath.sh using nexthop objects") Cc: David Ahern Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/router_mpath_nh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/router_mpath_nh.sh b/tools/testing/selftests/net/forwarding/router_mpath_nh.sh index a0d612e04990..0580519ab6d1 100755 --- a/tools/testing/selftests/net/forwarding/router_mpath_nh.sh +++ b/tools/testing/selftests/net/forwarding/router_mpath_nh.sh @@ -414,7 +414,7 @@ if [ $? -ne 0 ]; then exit $ksft_skip fi -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait From patchwork Sat Jul 22 00:36:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 124176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp560923vqg; Fri, 21 Jul 2023 18:24:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtQbL32PyDiPfRhOpzP/+7j/dQZC0Rz78pKqXcdNsITpz+dl0Gs6oeWHGNNsXZTFFTBfhk X-Received: by 2002:a05:6a21:338a:b0:134:ad98:fb0c with SMTP id yy10-20020a056a21338a00b00134ad98fb0cmr3779009pzb.4.1689989074035; Fri, 21 Jul 2023 18:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989074; cv=none; d=google.com; s=arc-20160816; b=IC5dGi2QAglOXIvkiMqP5WXyOPugIOY/Gg0wK37FEYG8vzQ0Hp7V9tvKcYb6uliAPw 2yxfF0lIi/EN+j0hnSgktdjJSX1xOxRmaGRw86qUXWWJ839AALMOSAST/SEAD1triF9Z qYJUVRZtbnA55qm0dVa3bNHnBI2Bozy2SQ1z8lI/GWme/GFZMKjr6U1BFEOlGKcr6lBg PnIp8XV6EZ9pWS81xTTEEGX3TS97z3aQ34S5rV4XZmTypOpBJd0q7QC+83iAtAm7nFOu V6uPf3eSN1WzayplHAhq4n23nk3d8P7Hx9ypg+9zIEBJG1wR4Q6gjB1oVfJSUNEuzcxL xWrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=e/YgXGgDmCZiADPnsxrg4iTBRynG672CDqehy9ju1Is=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=aPW6LEWrtZbJQ6by1MTO1zPMm7MfNM6BS+j6YgZ7nykjckZLjcNQQwGUezHUhl8qo2 jH40rZepYRF/AIYn1RceSNG+Y+Z1aLOKeZ6BeWlrk0iR0vI5i3S4NUznVIsG5u0hizBZ +qVJ82nCOXH1284VBIl0x8zfiiDLCNfNWU/76URZ6QftFdMcsItD5zg+Wu8tntgKpomh YHGuF2Z20nyr53L5+ceZkefhfHuG2H7UsLsCko6A6z81XXRsBTuhTj0wa4U0E+Yw1yOw RUXCmkuqfv+HYDFD451IyvaXchdAwphiA9lPX9A4hPOUfPbHCyuNhV2ddAsca7Rmabmb R+ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="hdep9Oq/"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=UrfRg3Qh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020a631d51000000b005533ac674a9si4017910pgm.286.2023.07.21.18.24.21; Fri, 21 Jul 2023 18:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b="hdep9Oq/"; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=UrfRg3Qh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjGVAhz (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbjGVAhg (ORCPT ); Fri, 21 Jul 2023 20:37:36 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3D93A84; Fri, 21 Jul 2023 17:37:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id AA7CA6016E; Sat, 22 Jul 2023 02:37:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986249; bh=sWsZGt692J5HLzblOPdvGK1H4fS6uyGBmVHdVo25xyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdep9Oq/WlJCI2xzqQkNIZ0+u3/SEiLmfoKCDOS28kJgR5y8OU85NG+BbmnYIgFcF MCC9ntPCe420CWIQkibZcDUqs/M9i2GtdZl9rgJnqJlPhfholm3FZPOKt88SvGoLLM B68fD8b/q/SCUpII8uMu/1WK+i5UKu3W131LVI9nyY8eqGYF/ba1Jva0AmCYzH18es kIdNvp2Dj/boLPKtcvFNilUfjeZ/9aAtUxJNeeXO7EfvYzv/onDUfcRucl1zLUzfzh AsY8FiNd8W1wlYgVp+NvXyfhxFOPU2MRlB4WlM7OGeIpzM0NmmSQqXyuPAErKY+jS8 kbtJO+LvNI/mw== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79G8b3vzwaBk; Sat, 22 Jul 2023 02:37:27 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 9E54760189; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=sWsZGt692J5HLzblOPdvGK1H4fS6uyGBmVHdVo25xyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrfRg3QhteGDLZWiP859NVNSPoQl3xNBdNBJ8rgEZuost82DAK24QzpCOGEJgrSr9 DOxaiPsAv7JQQqKIEZmjXDhXaJT3/iT1/nH0l3Vf6fT94s+QzkzuI0JDk18DXJrGFo QcaNf2S69CaaMWh6Wg1E4x1BQ9lbc9UUstoTiBN8whBDIeqPCagev2zmjuQe4mZLQd Q8zYpECXNnS/s/XkzN8Gr2YX/CpOhBNmBMCJq2VCj3gKagRFF/idVOs77vn7NNEpMC 45VdBX1gD1f6QBrn/mHeZQm+PCkm0gN0h6NhAQXIokQmKxgJhAsWKQMus/Yw+PU7UM lRZqR4Z8zep8w== From: Mirsad Todorovac To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Subject: [PATCH v1 11/11] selftests: forwarding: router_multipath.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:10 +0200 Message-Id: <20230722003609.380549-11-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772081983701494536 X-GMAIL-MSGID: 1772081983701494536 Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 937eeb3482748 ("selftests: forwarding: Create test topology for multipath routing") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/router_multipath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/router_multipath.sh b/tools/testing/selftests/net/forwarding/router_multipath.sh index 464821c587a5..7b3cfe577e00 100755 --- a/tools/testing/selftests/net/forwarding/router_multipath.sh +++ b/tools/testing/selftests/net/forwarding/router_multipath.sh @@ -332,7 +332,7 @@ ping_ipv6() ping6_test $h1 2001:db8:2::2 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait