Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4631725pxj; Wed, 12 May 2021 09:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTHRMdUfPIp2/kA5OUwtF0SEwhW57uxW5mVlKRrYEbcgu2NnNf6ZgIYO1A872gYwSfawHW X-Received: by 2002:a4a:270d:: with SMTP id l13mr28607886oof.11.1620837434990; Wed, 12 May 2021 09:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837434; cv=none; d=google.com; s=arc-20160816; b=YXfiNksVF7F6ftx3ld5leW/wU5AXXcPVK9RnksW8BLa+F7Bxbq7ioTANlRSkXFoawr e6U3ZEJ1eSpbb5GHuG6mDsGY5OYfpLCMC5WzuBFNHZ+i7x6IQqmD6CaGHABU7NV0XFNg wSasytBXCWbTvrznskLaPD5oZU0l7Iik7mOuU/DtrmleZ7fbjDgv0vD/Nj6KWpLp1xez fVg91QGR1qi6BN15QMDqdlkaTDGx13vGrRib8uwecI7C/eUraxkbx8iG6KHOLN0v69c7 limvCL6Y1mRFe19pmlN1jtui/rOKRVkRnCDU41kg99CTKMraxwVsFH9lggtBgDFgTNWH AFdQ== 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=XeYUnZ80ax6znqWAjVwo5V6pXnbsq2Gi+HhIngUnDHE=; b=IyhuKVIpKYCxRM34aiJKFHUwjFunWVP6sR3VU3AD6pPLjIxq1Uf/KwFROkvNLxXaOR ZT6uWAPEoTCjAFoDQAuhHhHBYIRxzwWVe8zyhpymuuFiiEubdbZfNJdNCoQqyNdKWEBx dWGB4TtMRngfal0tizfGlyDIltt2dTPe4y6JfbPOZ4s1dwnvZygSGtaQP+flzB70abx0 OLFp+coH9FXcrsgbk9TcRiFjt5nPuE8KlDsI790UxHbUEwBv7hHczLaa2YJfArZvwcAD XM94Dw1jnY1VmOgISQWUo4ubk4jDk7pOb9pg3hG1/KHW69EHXqUQZZaebfU8Uqks5Xfy YR2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GGLpWNpL; 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 a10si407338otp.220.2021.05.12.09.37.00; Wed, 12 May 2021 09:37:14 -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=GGLpWNpL; 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 S243085AbhELQgm (ORCPT + 99 others); Wed, 12 May 2021 12:36:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:41274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235461AbhELPo7 (ORCPT ); Wed, 12 May 2021 11:44:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48AB661442; Wed, 12 May 2021 15:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832976; bh=q/CQeOZFelVB4w0ZhwP7lNZAUC+B9fNx61ezJKfG7ZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GGLpWNpLfRc5S+rZN5wCRPiRzIbdD2ZVGmGjvLZqjH6h32iI1+Dl/hnC0ntpcDhDz qKrb/pepGjOoHtCIcpeQ3D5tZaQ8YxbQYOo0gbaToFWHm3u+KluMelCxhY135slrWI MkGAJUWUALX7rJw70ziv6GSUfTP74niGywH6zync= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Machata , Ido Schimmel , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 499/530] selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry static Date: Wed, 12 May 2021 16:50:09 +0200 Message-Id: <20210512144836.159774941@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@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: Petr Machata [ Upstream commit c8d0260cdd96fdccdef0509c4160e28a1012a5d7 ] The FDB roaming test installs a destination MAC address on the wrong interface of an FDB database and tests whether the mirroring fails, because packets are sent to the wrong port. The test by mistake installs the FDB entry as local. This worked previously, because drivers were notified of local FDB entries in the same way as of static entries. However that has been fixed in the commit 6ab4c3117aec ("net: bridge: don't notify switchdev for local FDB addresses"), and local entries are not notified anymore. As a result, the HW is not reconfigured for the FDB roam, and mirroring keeps working, failing the test. To fix the issue, mark the FDB entry as static. Fixes: 9c7c8a82442c ("selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests") Signed-off-by: Petr Machata Reviewed-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- .../selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh index c02291e9841e..880e3ab9d088 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh @@ -271,7 +271,7 @@ test_span_gre_fdb_roaming() while ((RET == 0)); do bridge fdb del dev $swp3 $h3mac vlan 555 master 2>/dev/null - bridge fdb add dev $swp2 $h3mac vlan 555 master + bridge fdb add dev $swp2 $h3mac vlan 555 master static sleep 1 fail_test_span_gre_dir $tundev ingress -- 2.30.2