Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3425695pxf; Mon, 29 Mar 2021 01:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAvq2Row5uIx0Rv4XjZ49r8rQAoptd+B6oLwjdzAUIGhW7TX8XMeavc0PrF5xF7oSjynN/ X-Received: by 2002:a17:907:929:: with SMTP id au9mr24188119ejc.28.1617007442955; Mon, 29 Mar 2021 01:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007442; cv=none; d=google.com; s=arc-20160816; b=GKOY84F6ac/wBdLJQ2zEz60GkyaouiS/8IjtM/mT/XSRO4qZjUyBMToJxpXNIw9nE2 O7dQVylUQKEeYslnIXV4nhvTmq/Rlh37JR8dqEnOyj3WG9aht+DHBT3VI4EkjaTOP3d0 n6zxJeP/FEpnmIFVi2pNghME2EZ4LrEZyUqp7PKsDL5t50PKqY3vAf55+vP9BJU3wOxp Ct56MPo5kl2tXc4lG8ilVwurFMhieqrFlTy5LE0oC4g9uU2gtUXuDEKOKn02b0cSFQIj pV20WFmrJC/3q1uCpGE/MPt3FSEjly4ipswITmnhPq6cc6qUkKWc1696D7ER1VDxRN6T flag== 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=hH+cWcRPa0tkNepL7yhjT5HXIZNKU4rmWUxVe9ns/aU=; b=u5VP1Qp+AqNTKsNyzoy8IRsCGnCD5466V6hU1Kn16EPJineB5BCblN59It2XreSKtJ /ZmjOhbhF1Ms1Yt+eG/bDsnpdD99q+RW3xRsjLvL14HfQKvmlsc5K5OYnKCwrE5NeKSs aIjMc1PFuYTb0hhl3Z+NbyN5eYOvk3I9JMxgbKqzcAqIHRkmfn1hb4dLmx0GVzCM5zT8 msx0sIK9aDpFLvIowK1qFpO9EMAPy8Tm5d+icOeILvjVAXHbBP4oGMqnLfviPwUFK7CI POzH67qqxjr112XVCn4yNLr3rvd3fY5i81XEoW5+NE8O/Pmh9lN/A2m+ppMEw6Y3O39c G8iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vXKE8jxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si12165842ejy.142.2021.03.29.01.43.40; Mon, 29 Mar 2021 01:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vXKE8jxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235007AbhC2Ilm (ORCPT + 99 others); Mon, 29 Mar 2021 04:41:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:40920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233627AbhC2IXm (ORCPT ); Mon, 29 Mar 2021 04:23:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72BAB61481; Mon, 29 Mar 2021 08:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006222; bh=iBauD/YwGNRCek8/X8z7f22gVG1rUIanDYdTEaY0FK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vXKE8jxhmSQTd4nPwF+taU8dBEGBNtFJye7qVYJNba7bEKhacVw2jhpEaYwoLDzn8 XwI6EZvP1j1vYYXYjg4pAzNlyoYyYa8eg2YMkMVlghL9RAZVHThrsf2fcUiSyhJDEi 3jZnb/jELjcKi+GNcdjOzgZg1mpPJ/PgouSXO/gs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 162/221] selftests: forwarding: vxlan_bridge_1d: Fix vxlan ecn decapsulate value Date: Mon, 29 Mar 2021 09:58:13 +0200 Message-Id: <20210329075634.555865507@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hangbin Liu [ Upstream commit 5aa3c334a449bab24519c4967f5ac2b3304c8dcf ] The ECN bit defines ECT(1) = 1, ECT(0) = 2. So inner 0x02 + outer 0x01 should be inner ECT(0) + outer ECT(1). Based on the description of __INET_ECN_decapsulate, the final decapsulate value should be ECT(1). So fix the test expect value to 0x01. Before the fix: TEST: VXLAN: ECN decap: 01/02->0x02 [FAIL] Expected to capture 10 packets, got 0. After the fix: TEST: VXLAN: ECN decap: 01/02->0x01 [ OK ] Fixes: a0b61f3d8ebf ("selftests: forwarding: vxlan_bridge_1d: Add an ECN decap 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh index ce6bea9675c0..0ccb1dda099a 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh @@ -658,7 +658,7 @@ test_ecn_decap() # In accordance with INET_ECN_decapsulate() __test_ecn_decap 00 00 0x00 __test_ecn_decap 01 01 0x01 - __test_ecn_decap 02 01 0x02 + __test_ecn_decap 02 01 0x01 __test_ecn_decap 01 03 0x03 __test_ecn_decap 02 03 0x03 test_ecn_decap_error -- 2.30.1