Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp758908lqd; Wed, 24 Apr 2024 16:43:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZnHBJKfSSbnaJovPwgZhmim5f+9gstVdHcCfK+ZkvD52FNI4D0LkrvsjZAgLjG7rerGM0tUt+ZtRs6KFvBZC4vt45YOI09HqZc9tGgg== X-Google-Smtp-Source: AGHT+IF3gKA7LZjQxh+/eBJV6twn9sWkCP+g8zETJEykVDxTryynsjJX+ZJ6YFDC18t1g15apd7R X-Received: by 2002:a05:620a:4710:b0:790:97eb:43d6 with SMTP id bs16-20020a05620a471000b0079097eb43d6mr1462810qkb.13.1714002201742; Wed, 24 Apr 2024 16:43:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714002201; cv=pass; d=google.com; s=arc-20160816; b=J7riz9iaRvNPt9pckcwkT7LCOSb2lkR8cTN7ZPnccbec2w8PQKBTrZtl+z0GgJJ+Kh YHYAkSN0/pk7dJ7ROxF3KYbevBvX60F7YqRp7c8Js5werp8IL+x2zOmPyrvenag49CSi 3V9bN3UUJ8PwSQgX2zo7jkPVFxbb7dLR9q8B7Di4bO60NPmdwvsUGxXrmxVsZ0yXMUjH 9I/axsdSHq2K5FCl5azI8F0FyCAQi04HyeX0P4BiPuI85/QdNLJiHk6t3uawXWeTu7sF w5OAaarhGj1VW6EpWHmw2s/MzfbFFEdz68PuPHImVNjwjyaSRXQ/iIMhoHzXnURfo2oU tBgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HIhI5pXIJuDq6DeTZvSKOLhHA3D77jj4tu6r7CaqnR4=; fh=7MUXkp1sBmzM1Ob2KsBwdEwWqB8apCos8arhuAMv5WQ=; b=0klBiy2V95rdT2E0ti3oJSXJIn0K6agsWpQJaY38NGtNfMYr7390ZSfUsYOdgyeGNU BHBjCqGctk3PThATz0F6QS2fftIAxLNfDKTQKgym/NBFFZL//ZNxrgZKoc55PzdbnAAr Mfm5drjDeahDy4/mVedlWSXAI3NUdg8/pMSAHKcEO1iMmc74joWR4PGqPwh9s5LTwnmd HObejH8pBh3zww8td3dA+AQ6SvuuApTAcnHt8b05HG1yvbyqUvfcUc2ZgBpbxojtnB5X THPcf+ZFXjO2XL7eJwpKihcwD5GXZG3/mpgItQbhdt6JsrGE6kLJTxPqSnvBwDtx2sna 0eYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCxMWzrZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h24-20020a37de18000000b00790636a4436si11222679qkj.374.2024.04.24.16.43.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 16:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCxMWzrZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 775881C20FAB for ; Wed, 24 Apr 2024 23:43:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EDBF16F0FD; Wed, 24 Apr 2024 23:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XCxMWzrZ" 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 5609813A3E6; Wed, 24 Apr 2024 23:43:14 +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=1714002194; cv=none; b=hYwyqgzrJAq5KO49oUhiDXP7+tCnu/ZZUdQX7e38gKby/dRHKN0wFmhLvlsqi4oyAqF/mr5mMskg500dgLr+OBqrOXX3RLodkgM/UswUrs15WI3UNYnk3Gzr9zCoYJuz0BrZy5x8va3FN6GVjgjiFUv/k8dZG2KKnKJ+uzKq7xY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714002194; c=relaxed/simple; bh=1pXVcCnwY5tDpSXqW5+AvY67N02wWyS/iVzPFfW0Dcw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=E7VRvF8dHP9ymol4tjOAF5Kie2jUiVJmZRNrDQ4sMAXV3eCnTXKbQ0HoV2IJhfLF+bxnsHMW21sxq0O7ja8VTAomkSTJ/baGDlMdQn85sNp6EE5YTBi/pIeMfAOOsDxWN0iZlwvy65+F9oJwNkAxpKNVfdCENnbZhjmR9rTn47s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XCxMWzrZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AECBEC113CD; Wed, 24 Apr 2024 23:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714002193; bh=1pXVcCnwY5tDpSXqW5+AvY67N02wWyS/iVzPFfW0Dcw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XCxMWzrZ426yLAEiWqA8zyMXfgRMumBTV68dMjVRY1ds59lo8pxJANUSauBOc3MAO FLSWZ/1tY759zJOf7KmSps9sszY6ruJA6t1Clzx4ZT6svCOym/TtHzc5M9rdb+fwZB WJLgFXrheMfVownekGIKyEPwhBIqe+gCeogIkeuf7W1PuYLLumt2JK3WI/SSff2xNe fGWxiVVbd2aLdwso/MsXVwZfTfpA1+2Drq4AzF9+8/O1L0evF73dyfxkhpZH8uoMrb mqwI8RmRQkRPmvcAO07D9ffK+KDrq3LxzOkrax0kbvDeo/2qHjl9nOkicvVS6T8PAH nFIKRr/GKpDLA== Date: Wed, 24 Apr 2024 16:43:12 -0700 From: Jakub Kicinski To: Joe Damato Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, davem@davemloft.net, shuah@kernel.org Subject: Re: ynl: maybe minor bug? Message-ID: <20240424164312.50c4ed2b@kernel.org> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@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 Wed, 24 Apr 2024 16:19:49 -0700 Joe Damato wrote: > I'm not sure whether: > > 1. tools/net/ynl/lib/ynl.py should be raising NlError when there is an > extack in this case (I think this is probably the way to go?), or > > 2. the tests should be changed so that they don't expect an exception to be > raised but (ideally?) hide the warning report from tools/net/ynl/lib/ynl.py > when the warning is expected. > > I don't know python at all so this is definitely wrong, but here's a small > change I made to fix the test (a similar change was made for the test which > follows). Sorry about this, we pushed the related fix to the net tree, to get it to Linus sooner: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=a44f2eb106a46f2275a79de54ce0ea63e4f3d8c8 You can cherry-pick that locally, perhaps. net will get merged into net-next tomorrow, I should have waited before extending the test :(