Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3158650imw; Mon, 11 Jul 2022 03:10:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tF416U9pfq+d/Mnmv6ClNyYshyZbOrCw0MLQL/uDRKy16hepKtA5fvfGraaUu+KLSlfRou X-Received: by 2002:a17:90b:4f81:b0:1ef:acca:2d6b with SMTP id qe1-20020a17090b4f8100b001efacca2d6bmr16473893pjb.243.1657534255106; Mon, 11 Jul 2022 03:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657534255; cv=none; d=google.com; s=arc-20160816; b=wdz7XPvTzevJ0LwXRhyjzaEBT3kKuBNbXN+w6BVEZ7gZqECnFnteAXn/uTAwIAjV/G etcXwZDPBYrQjpf+OsnrgGOWWb+Ax5wrVr6hhF4b6ay3/lVqAzlJkef+U/70ZgD1JLI1 r/oIjz6I3Cyt2Rb1TZ4sgF7rOxJnW5ihupWhLJLN+ka4m2W3lprtW6JdWdcs0+Nivh34 xzTFlyeYUd0A0UnL8lrP7JzOA0aeKNIse+8ze7fkgAHQdEjr3CIGELZLuQ5M8a4cOZ9g z8BkeG0OzH4ofLNAB1g4RNaLuZHrEmaZJbXdtWRVbS7PRDi24VNCg2/DFGxlYDxeL8kI rm2Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GnV/epBkmHUtHOtSN4ptMy9KMbW3MmLL5m286+cW/cU=; b=CqjNZZrlarmvVom2AlUlTbKq7FQQdD/xmOKw3Br8F6NztIkHeKEfl0Kp+lYGd+8WGE MzsNN8oMsilW9/QBzysp0EYYQc6XBCHlHmvP1q+hsQO/HLoPBbpjwfuTaNaEhxCcF001 gy+Dt+LejabFlg5qmlgSBkDqdn/URbkXPY0eldc52oWM8XW2LzIii7FutA/Lgz4DyQN3 54xtfbOn0tZWnELBYmQ1/3NQgu1NERzwF5iQrxWZ7h2aFR1bK3QnbXC0MopF2ZN35qrn xnVDqg+dFMimqUH6uWehSgtEm+hgoMHL0rjDqMOxd3bGfT8Oye1wDCilfe/ZSto+G/yN kLyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KUNsNcpS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a63ea47000000b0040d9ec62b16si8177648pgk.366.2022.07.11.03.10.42; Mon, 11 Jul 2022 03:10:55 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=KUNsNcpS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbiGKJOI (ORCPT + 99 others); Mon, 11 Jul 2022 05:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbiGKJNe (ORCPT ); Mon, 11 Jul 2022 05:13:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF7A27B06; Mon, 11 Jul 2022 02:09:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A0B69B80D2C; Mon, 11 Jul 2022 09:09:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4F0EC341C0; Mon, 11 Jul 2022 09:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657530586; bh=ntXr2dtPBrWMgWr8XaLwxtAjgCIpelYIcWAUCYePGFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KUNsNcpSjjskkbOloDgtDHo4khH057nCNjWSwg9Yk8F5txnalx1Q3XB1m6h8ZRBdj BO1eLvNua6zqNAVhLGbxKjL6+Jm8+UF7YNWNuO18Fs0By4i2DZ2gctEC8ZhNMMivPw zMSj93WwqHBO8k+XT+Za0/NR2fkfS7FwoZ2zxUQg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Oltean , Ido Schimmel , Paolo Abeni , Sasha Levin Subject: [PATCH 4.19 22/31] selftests: forwarding: fix error message in learning_test Date: Mon, 11 Jul 2022 11:07:01 +0200 Message-Id: <20220711090538.502323508@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711090537.841305347@linuxfoundation.org> References: <20220711090537.841305347@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Vladimir Oltean [ Upstream commit 83844aacab2015da1dba1df0cc61fc4b4c4e8076 ] When packets are not received, they aren't received on $host1_if, so the message talking about the second host not receiving them is incorrect. Fix it. Fixes: d4deb01467ec ("selftests: forwarding: Add a test for FDB learning") Signed-off-by: Vladimir Oltean Reviewed-by: Ido Schimmel Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- tools/testing/selftests/net/forwarding/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index 054f776c3843..ee03552b4116 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -830,7 +830,7 @@ learning_test() tc -j -s filter show dev $host1_if ingress \ | jq -e ".[] | select(.options.handle == 101) \ | select(.options.actions[0].stats.packets == 1)" &> /dev/null - check_fail $? "Packet reached second host when should not" + check_fail $? "Packet reached first host when should not" $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q sleep 1 -- 2.35.1