Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2933862ybf; Mon, 2 Mar 2020 19:03:49 -0800 (PST) X-Google-Smtp-Source: ADFU+vtrGcnFsS92OGZbZXsNE131+tdnfZHOo05LKIat9yFMP0Sx1bgrC7BbjsKuX/4noPxpO4FH X-Received: by 2002:a05:6830:1e9c:: with SMTP id n28mr1707002otr.107.1583204629501; Mon, 02 Mar 2020 19:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583204629; cv=none; d=google.com; s=arc-20160816; b=w2e4Lpx7lSAjQSAGM5rexTwyvRWjpXBDhkpclQ6dIO/OLgJamKZ6G+eCXaxCnYzmrf fVGw/WZ65CYHXqtu8qcAty01lbV3CWxD9sL2L5sDz0tJEznBN4x96n9WMDTk6fWgoZAY pyrwwR935ufZbI4G5Sx5W5q8PONeM73vB31GPq8AS/I1aRylj/642yDYnSTCm+Yqi+9n aYsCQmI6urhcCC2jcLblgTBkPbEHtIbDBmLYxmGRb1tldOsN9joZZX1kt0iV0U2mZ/4b +PIFuL8lnYFFK28SvfxjtZQTpddHxqwCOd45S0n3oU0teYRv8bos6OG/vopK23xiPLwH MNdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ya8junUYy11P5CaiOzHFQZBjAJErKsJw9woF+32p9So=; b=VXO0TqJvmEgbh7AsNh3Ut7EdtaM7yDli8Jkud/sqZrLZMxPx3DRnhx3HXg+ALf4w57 1uaUHQpcvl3T5Sa7tTAsuxp5+YcAZmo0jPaR6WhhuQB9kRrx40/5ktvQYxr87NIYRKYU WGYbktcvoLaFsCvXRLiJ3kot8TWZy+tdtSPfH+iu66f9oRn3tsy74DjG/90QexREqlrx iu6cM9GYivhnY7X5jjVMrsWc9ra7CUBpcqMF6HFDUIjEWj5jo73VsgijYIojXqMoK8vC MidLQWGPpy1XBdG4ZFKnD+F5+lHIYxmH4PeB5LYxImKbAQYf7LrLwdr74iHf7Xh6dN++ 9p0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pR2Fena6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si7139498oig.65.2020.03.02.19.03.37; Mon, 02 Mar 2020 19:03:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pR2Fena6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbgCCDCg (ORCPT + 99 others); Mon, 2 Mar 2020 22:02:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:41236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbgCCCqm (ORCPT ); Mon, 2 Mar 2020 21:46:42 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D38524677; Tue, 3 Mar 2020 02:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583203601; bh=eoNayO3uiDva1CrJ3Fk5TV4cI6wo6Xy7e7/LDxK2Xuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pR2Fena6jmpJ7DXBMmjvNG1SNFxz3JyD34xic0DTn9eZSNhNWNgLucD7IjMtEl3DM 7gSoVtRdNRfeE37iWQF0ksW20UaynAbedOybQ3XtlwJhLlRDkI87ZMX2/XvO0VOZ4z 6pWb8i0n/28ry54IOozCuqaevBPsBuEOD3VkhQLw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hangbin Liu , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 21/66] selftests: forwarding: vxlan_bridge_1d: fix tos value Date: Mon, 2 Mar 2020 21:45:30 -0500 Message-Id: <20200303024615.8889-21-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200303024615.8889-1-sashal@kernel.org> References: <20200303024615.8889-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hangbin Liu [ Upstream commit 4e867c9a50ff1a07ed0b86c3b1c8bc773933d728 ] After commit 71130f29979c ("vxlan: fix tos value before xmit") we start strict vxlan xmit tos value by RT_TOS(), which limits the tos value less than 0x1E. With current value 0x40 the test will failed with "v1: Expected to capture 10 packets, got 0". So let's choose a smaller tos value for testing. Fixes: d417ecf533fe ("selftests: forwarding: vxlan_bridge_1d: Add a TOS test") Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh index bb10e33690b25..353613fc19475 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh @@ -516,9 +516,9 @@ test_tos() RET=0 tc filter add dev v1 egress pref 77 prot ip \ - flower ip_tos 0x40 action pass - vxlan_ping_test $h1 192.0.2.3 "-Q 0x40" v1 egress 77 10 - vxlan_ping_test $h1 192.0.2.3 "-Q 0x30" v1 egress 77 0 + flower ip_tos 0x11 action pass + vxlan_ping_test $h1 192.0.2.3 "-Q 0x11" v1 egress 77 10 + vxlan_ping_test $h1 192.0.2.3 "-Q 0x12" v1 egress 77 0 tc filter del dev v1 egress pref 77 prot ip log_test "VXLAN: envelope TOS inheritance" -- 2.20.1