From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6264717BEBF; Wed, 25 Mar 2026 03:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774410947; cv=none; b=o2R5RJURhS1ob96+w2k4nJTsg+MVXeqSCLEKUVpliFyHhxLrbUiigVZfCweVylTznmOwCvUpb9CFKSjVO3zBZrdDpaIfqDHaWbBbexXU5DZaO4i+uPca7N/pDEPxcAFRLsPw96lnLB2038FACbqgzwL/3Q8kOaXXX43ZzKOFxOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774410947; c=relaxed/simple; bh=ecEYSLeERewWN89IgeuDUXiRprg8d06yYRo95t3oLZk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tp5yF/hIqg0nWgPdeRpVMnAcR9ei1S5k059auBKf43VCc+NAep9//LRIH1NngG9VpKMNzJGqhEZ3Hv+ioSNgkiCPvdoJBa2WvEI/e3PWxc7aBRF6h2lyfTLxSrV4Ye/TZG518ACYyhhiY+I/iDutkFAe3UpLXRIjk1n0dvQCF8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rxiumUV4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rxiumUV4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C39DC4CEF7; Wed, 25 Mar 2026 03:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774410946; bh=ecEYSLeERewWN89IgeuDUXiRprg8d06yYRo95t3oLZk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rxiumUV4hJzKBiPBF+9ocT4oGqv8xVpTEn62Hp+7/IYRnshnSfyYBDaeguD2uXoyO CN8S8UyM8zoQkJCHmwm4ugNcLRU2CeOUZEtRQrpTcD0IKDtUppP9E7USWuj4X+IwYc 5B/6e+10Rq+V8mmeV3v21mJzwZUdbIIcIc3oLsm5/BT3k6uOchCGhygpEaTESGucvh +8S43uSJCJbq2AT7WtX7UrfY8ScFgGVx3KRlhnWYHEEiJ2SQ5qDBOq64xYPcuX/cmX MbAW7XL9FQ5SuA9zc+vJkBG7ZxrgBkJAum+4oFJXqLPNYa3Gtxqf5aqt7/d8S4Euc4 SXdHG+6NK1CRA== Date: Tue, 24 Mar 2026 20:55:45 -0700 From: Jakub Kicinski To: Sabrina Dubroca Cc: Cosmin Ratiu , "andrew+netdev@lunn.ch" , "davem@davemloft.net" , "linux-kselftest@vger.kernel.org" , Dragos Tatulea , "shuah@kernel.org" , "netdev@vger.kernel.org" , "pabeni@redhat.com" , "edumazet@google.com" Subject: Re: [PATCH net v5 0/3] macsec: Add support for VLAN filtering in offload mode Message-ID: <20260324205545.7bbd8fdc@kernel.org> In-Reply-To: References: <20260323123633.756163-1-cratiu@nvidia.com> <5ae5d08d578fce1a01a548fad8552a14df8c5679.camel@nvidia.com> <20260323093243.17c14edb@kernel.org> <62b3b47291879328a868aa15fb7319b5ff13a20e.camel@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 24 Mar 2026 16:18:30 +0100 Sabrina Dubroca wrote: > > Adding back the nsim debugfs file and test assertions guarded by "if > > cfg._ns" would ensure filter propagation correctness, but would feel > > non-Pythonic and a little hacky given that the same assertion can't > > work on real HW. > > I think that's fine. The tests are anyway python wrappers around > iproute commands, it's neither "Pythonic" nor pretty. > Jakub, any objection? No objections, I already added this nasty little piece of code in gro.py try: # Disable TSO for local tests cfg.require_nsim() # will raise KsftXfailEx if not running on nsim _set_ethtool_feat(cfg.remote_ifname, cfg.remote_feat, {"tcp-segmentation-offload": False}, host=cfg.remote) except KsftXfailEx: pass I agree with Cosmin that the check feels a bit non-Pythonic. Dunno if the try except ends up being any better tho :S Let's not use "if cfg._ns" tho, please add a method that will return true / false (or feel free to come up with a cleaner way if you can think of it). We definitely don't want to encourage nsim-only checks, if you add new methods please mention in their documentation that we strongly prefer if the authors can think of a way to prove correctness that would also work on real HW.