From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7229D470120 for ; Tue, 21 Jul 2026 22:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784672375; cv=none; b=VdXbjIwyreR2Ggvdz+rJkuRNd4E961bShbTbGnRfhKfY+AQFReax2/N/LN1kNUeX+eBaH7JooE8Ldp1eecVjl06PdqRY7sGurx/AuNUt1XZmG2q0TvAVkAzAK+V4AJRDD/K9xlQUS40k0Z2AQIp7+SR2COrE2NandFF11Iis0g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784672375; c=relaxed/simple; bh=QpCX8azIXj4ABviDg6v9qs6X2uYp/oseaKFqTRuyM8M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CH4oPj2CvKvjOhrFsQRrbik6OH9Keby1qwwuZVHl6Zh+OVyyKtPEI7sFKUXxV269k4iA/LzuZjf+tjKgexc7xC8hmh5R2t6ypvbpN4kEDo3vh161ZG8A3+wD8mkfxxt/bnB49jMyk3DWya1PpoJjHtLcHcG/x2gg/HL6JMO/kOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RzJbtMTE; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RzJbtMTE" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2cc61541f8cso67334175ad.0 for ; Tue, 21 Jul 2026 15:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784672374; x=1785277174; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=TyVLTo1bi5pX6fHnYlWi1OtT5uRPiTlT6gDMTqFxmt4=; b=RzJbtMTEhiZ2CyfQJE/vUr4jk+Mv7kS3LRT0s8nQubNXPWykU8eZZxQAqwsQtbUyj+ kEwZzAVrsi9d6J2jp3stP3aGko7wLDcLp8JqMiPLitp1+1HP6sJCNa4vpy69LgnD7L6C J66HFpPN5DvgDw2dLtWbw/f4Ic3gfUOFKdpCGASkOWxzsdIcUKJT8a9JfDrB6ir+TmOG HGpHIum3XZO7Hr8zok4/muyXsc3KuzNUpR7eX9JQzlCK/Uw8Ic+yaAlovhQTWKlRnAto rwSFG4m7RVkD9jQiZ9AFmjXUV1c+tRLFC+LK/+DfwEF37/69ZdLTHomS4IWNmt5+Fx9h Q6lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784672374; x=1785277174; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TyVLTo1bi5pX6fHnYlWi1OtT5uRPiTlT6gDMTqFxmt4=; b=hjcBsviRhcRtRh3i6kzqhjbMjhm2LRLmIe2bYaM5t7LLHKN0ekDzCw4bcgwhnNyiqx x4qkgIK+v7dN5It2qoy+YcxcYu8G+eZsRztFXIQV6PXSzqTE9nz3df9piWcFhFO3I2n/ MquTmdmLoG8yaBazZKmxuv2qfb+Im+akpUigN2B7WuWKcH5hiTVyGavF4DDv8foHqt70 GHfBsgcJvA+fd52WmTcsWRevigC3FzeUc4ZYUnhwMlkxCUDD9z/BRuUwyYOJaxsrKW8V 8Bwk5ncVJjoy+JAB3hETvtHw8+x4fVxgsTOcTW/ctumqi41EkyXmHSCJhraxnWYCrBda wkjQ== X-Forwarded-Encrypted: i=1; AHgh+RppOXHDuSrp09OrjgRAp6N/r5bHRl9vsEARCG1fAcY6MpKWELNSS0n4GfQt7H3BSwmB0pF3PcDMKofrrhWcR/w=@vger.kernel.org X-Gm-Message-State: AOJu0YxOph+vm4Zbq3whehflobz64g/5B5Jb8+PNiSU7BzTbeWqZJSZG FUpH6GovPt7fco6ckUEZ+UnJjMmzJLoQfEY+XapiXY4sR6Ah47YQE5HM X-Gm-Gg: AR+sD109Big2m1HBD2gqQOMifBcYtNfEvAxF6sJ1x1+/wDVKb6lLS/DYE49lwN2UDP2 GTluP6UkmW4NvfHU7BsXVkOgq3/1bsLv/4gf2caatMhtDUXrbN+v2jh+WtEGFzJm3x6I2U6R93O aPyhkC9UYOWYAb9NeO0PwjwOlUW0Ol7HesU6qm06O/vmo3AhKXI+ykbOmnBdm9HLT/wqy5a71vF 2+uWiwmUlfWmc4Hbmv8SSyJMf7KKxZvK2wb9Zt+4QgZMWE5hshZCewh/bQ3eiDP440T7AZh7anb R8H7YQiqsPnys1lIcS7siw13Cwef/4MGkYErLKL5jy0awFRGDSTB6xq2Ej4xOkNI3UhsJvMKigV DOt39YrSqhpq1H6Eht2IolhgNMYTQiW4tG1NQpKpuaLf2JAbLvRRMN18wCJSiZ2dFja6JDvR9aI KFimzyp0P7IpONaOdqnpku11mQ9Xgv552dzyQ= X-Received: by 2002:a17:902:f688:b0:2ca:2390:ff13 with SMTP id d9443c01a7336-2cf8dc97414mr16152175ad.5.1784672373828; Tue, 21 Jul 2026 15:19:33 -0700 (PDT) Received: from CPC-mjac-HKWGEZ.redmond.corp.microsoft.com ([70.37.26.34]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf8efae5aesm3657535ad.15.2026.07.21.15.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 15:19:32 -0700 (PDT) From: Jack Ma To: Ido Schimmel , netdev@vger.kernel.org Cc: David Ahern , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jack Ma Subject: Re: [PATCH net-next v2 3/3] selftests: net: add coverage for fdb nexthop dst port Date: Tue, 21 Jul 2026 22:19:07 +0000 Message-ID: <20260721221907.2702-3-jack4it@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260721152059.GC2667735@shredder> References: <20260717-b4-vxlan-fdb-port-v2-0-f4862e8fe867@gmail.com> <20260717-b4-vxlan-fdb-port-v2-3-f4862e8fe867@gmail.com> <20260721152059.GC2667735@shredder> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Tue, Jul 21, 2026 at 06:20:59PM +0300, Ido Schimmel wrote: > We already have control plane test for FDB nexthops in fib_nexthops.sh, > can you add the new test cases there instead? Probably fit in > ipv4_fdb_grp_fcnal() and ipv6_fdb_grp_fcnal() Done for v3. Dropped the standalone fib_nexthops_fdb_port.sh and folded the cases into ipv4_fdb_grp_fcnal() and ipv6_fdb_grp_fcnal() in fib_nexthops.sh: accept a port on an fdb nexthop that has a gateway and echo it back on dump, reject it without a gateway, reject a zero port, allow a group whose legs differ only in UDP port, and confirm that a portless fdb nexthop omits the attribute. A check_nexthop_fdb_port_support() helper SKIPs the cases when iproute2 lacks the "port" keyword. > vxlan-fdb-port-integ.sh doesn't exist. We have test_vxlan_nh.sh. Can you > extend basic_tx_common() to test the new attribute? Don't change the > existing configuration (we want to test the configuration where user > space doesn't pass a port) and instead add a new: > > 1. FDB nexthop and a group that contains it > 2. Flower filter that also matches on the destination port (not 4789) > 3. FDB entry that points to the new group > > Run shellcheck (preferably via ingest_mdir.py [1]) to make sure you're > not adding new warnings / errors. Done for v3. The stale vxlan-fdb-port-integ.sh reference is gone; basic_tx_common() in test_vxlan_nh.sh is extended in place instead. The existing portless configuration is left exactly as-is, with the new coverage added alongside it and guarded so it SKIPs on older iproute2: 1. a new fdb nexthop "id 2 via $remote_addr fdb port 4790" plus a group "id 20 group 2 fdb" that contains it; 2. a flower filter matching udp dst_port 4790 (the vxlan device default in this test is 4789); 3. an fdb entry 00:11:22:33:44:66 -> nhid 20 that points at the new group. The test then sends a frame to that MAC and waits on both the nexthop group stats and the port-4790 flower counter, so it only passes when the per-nexthop port actually lands on the wire. On shellcheck: I ran it on both touched scripts, comparing the base tree against the patched tree. test_vxlan_nh.sh adds no new warnings. In fib_nexthops.sh the added code only reproduces idioms the rest of the file already uses -- check_nexthop_fdb_port_support() mirrors the adjacent check_nexthop_res_support() helper, and the new cases use the same run_cmd / "log_test $?" pattern -- so no new warning categories appear (the SC2086 / SC2181 notes, and the SC2317 "unreachable ... or ignore if invoked indirectly" notes, are already present throughout the file). Thanks, Jack