Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67D151FF1B5 for ; Thu, 5 Feb 2026 02:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.190.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770258685; cv=none; b=c6KV/XUMWhwmZVTjW4OpF68GYhLjb64Yr5kMFPSxcOd1rpweBmB6pjzklcvZn+AFhkL7UZ5NW7qsGHEQJj4fKY+Xuj6krzFrQ+28MFZN5JIRYkoaL8TwsV0FasjUQyTAzt6cj1GiCxrDsxymE4JWY5fETLldzVDjjUwo3L28a5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770258685; c=relaxed/simple; bh=oTda1+xTStdfMBAFP/3SZ4+XbeQYuj/TIYfp6BHImR8=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=qAzE95YklJoPsSPeImKZy8ZW99kkRYAmiK0vwfoATtQtw6DexYo4UqgTczyFoqUDL4rx253r12egn4D0zTgIURf4W9HThrsR9w72aA8b9FRNgqmdqWDu7poDo6HWNRfZ72jeB25XJWMnPoP1TPV6qj79U39oW0eYKPW+cz2MtXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b=Y2dkQqYm; arc=none smtp.client-ip=217.70.190.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="Y2dkQqYm" Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id E0BF960627 for ; Thu, 5 Feb 2026 03:31:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org; s=2025; t=1770258683; bh=o5segeF2zeMwmAHXSOpnhzG6aVol7B2g3DZlfN1Gd+Y=; h=From:To:Subject:Date:From; b=Y2dkQqYmwDDbrrx2SeFRDbjZ6LEnlqD53PsZcLMPbMXaCRJ/2IN38inDYWvEopZPL hVEpttS5WvWKOiMw50quxsoc+pCp8sPQg1k+2MgN4y3n5LQUv7LZSXEj2PvTOCSRR+ akdGkJ5E526GarcLUi6BWaisrv61M2A+XfBQfa20KlJYJ+uxKeh+S7XV3+eDmuL3eb x1xqJZZLYVX883UyZ4llbp+E66RRaFJulBrGN6G0/HIUH/O6pfs3gdPSBWBlRM1GgM cQ3yPZZi/UmMg65uijmFTczoXEcGx0Nj9DhktSGfvpxMMPLGmUU9AEJxq2z68eIKhk 5N3gGpSHfeJ0g== From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Subject: [PATCH nft] tests: shell: double chain update with same device Date: Thu, 5 Feb 2026 03:31:18 +0100 Message-ID: <20260205023118.1470019-1-pablo@netfilter.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For Linux kernel patch: cf5fb87fcdaa ("netfilter: nf_tables: reject duplicate device on updates") Signed-off-by: Pablo Neira Ayuso --- .../testcases/transactions/chain_update_dup | 22 +++++++++++++++++++ .../transactions/flowtable_update_dup | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 tests/shell/testcases/transactions/chain_update_dup create mode 100755 tests/shell/testcases/transactions/flowtable_update_dup diff --git a/tests/shell/testcases/transactions/chain_update_dup b/tests/shell/testcases/transactions/chain_update_dup new file mode 100755 index 000000000000..5d529dd157dc --- /dev/null +++ b/tests/shell/testcases/transactions/chain_update_dup @@ -0,0 +1,22 @@ +#!/bin/bash + +ip link add dummy0 type dummy + +$NFT -f /dev/stdin <