Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp374319lqd; Wed, 24 Apr 2024 05:19:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTkBb03Togbk6kD4PCBvTwavr7IBfcu06W/yfC0s6xphj/P4HuwVBReHtVVxmWj6nygDuQC4ZgBGj/kZqSgLNoJkWXaDXr8GUdvM9d9g== X-Google-Smtp-Source: AGHT+IGN9vqRN4kOytJnjFMougOn6V2YaNa/T+Yc1H15j4N3VNYkgaUTFCCTdOqocAFNrILvkFkA X-Received: by 2002:a05:6a00:80c:b0:6ea:d7b6:f4b4 with SMTP id m12-20020a056a00080c00b006ead7b6f4b4mr3126113pfk.21.1713961166230; Wed, 24 Apr 2024 05:19:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713961166; cv=pass; d=google.com; s=arc-20160816; b=VBzjizKFjlfOoDzZDvxAJ61uCdX+tinrwMOsC9VqaNKMer5nx9dORS2UZBF4bLNJ1P a6GVOCXJ1hwjrVChA3fy9z0s2par2uMH9ZXQ3XHDYhnSueDexlkojNaAH/0pGsMjjt4T g05lllG+9z2Ys2UNTbNUn72gZPUukUYjPkwLAis2tMkuOq+CzXZzjsd5UUovBMq9LTHY IOQ5tWcVesqhafvvA12t5XoAwq36wL5iTqPwMpcmUBl2ZqX97jT1pf6p3NeqEKUhAj3w dV7Pk+jZtiaEvDHbl2M96Pdtf+ParH3A6IsgMmzl+/UzRix0xv15kaAjqnqS4UAS8BW2 fK6A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=PuQSBqEpZtGdI/z6eqYO02CAOVKEZqCKMoDOBxLjHMI=; fh=vvTllZoW3odsFd/8lFDoQVtDIryqvmaisnRJG1gKm2I=; b=0gfTNq2etaE30iRqsGJsDl/j+vDd8/zDUp3VMUOiiy2nXpX4Pjt2j+OUpx7GHC1RmW G1QdKBJ0BRnOe8moq2JWaHCyPZpKthPZBxn+vZMvITqe8NL8J1IxkMLbdjtxF5lKI31y ws61JXj2ZV/C2k32a1Ri0DLcGopIdvvR2diWqufw3es5JYkEYp5gGDID+qq9jtZIXp1T 8bv8y7SEuEsv6pnTSwi6ouniEkWg5p2ivCDvXCTX1a0N6L5vKzwFo2sdd0awBmWWViup uf4HEB9KfqR2h8SjHaf20UCtaL40O9uXv+NSbFzhm2KrQ+aahZOEz0gEBCXeY3yYrEdJ hZsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b="iVCChsq/"; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-156844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q195-20020a632acc000000b00601bad06a2dsi4117653pgq.432.2024.04.24.05.19.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 05:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b="iVCChsq/"; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-156844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CBA81B235A5 for ; Wed, 24 Apr 2024 12:17:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C4815B126; Wed, 24 Apr 2024 12:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="iVCChsq/" Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.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 7901515ADA7; Wed, 24 Apr 2024 12:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.104.135.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713961014; cv=none; b=JRnwKCyZoOL8QIrUwR2Blto4GNJ7/57Gj4iqa7hjwyhXq9EEzw1hiEiuEW9iTtP7Kti1nnUsInZ34bEHjvDgyW1HPv1yyvzCMI7QsoPtdQZPTxaEEcrxOLayReCDSfapYlmQZ1NKfnTF0/WJ5LBkDS0NCTxTcXtMqqX82PN3P2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713961014; c=relaxed/simple; bh=PJ0CzHqB5rokxbMzRyma4HaJ9uYEAg9hicxRy4R6kL0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=LmGY8/+MuGsMDDnczV21v44vPM3PETnemHu4K7yR4H8+hbniaVqleIIBrkVq/764YQAp+UWvH0oofIAwnGIc09++si9apzTMPrv7JucPat6zbUaZZu3ADd/B6LgPBDe40/TjTlvPmAO0OBcvi28Jd171Cy6bMA+BNcWJK0ay0UU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net; spf=pass smtp.mailfrom=fiberby.net; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b=iVCChsq/; arc=none smtp.client-ip=193.104.135.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fiberby.net Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 08B87600B1; Wed, 24 Apr 2024 12:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1713961004; bh=PJ0CzHqB5rokxbMzRyma4HaJ9uYEAg9hicxRy4R6kL0=; h=From:To:Cc:Subject:Date:From; b=iVCChsq/jXVH+cUrfMJr5PWDGOkRubmamTZ/AZKRLIsRLW5T/4zOyXIv3gEUSDouB ve42GV5naBSDS9+nSHvq5Vbc8SxYF5ci1lDigOffovf5vhEw9AD9QAs2q5N82TG1fy qnJ+1MxdKbBbmPl+1xL7KEGJ9l/WXu7ATP8i4+tyrW3U3eABZMbMNQ2dTB3j8IhM+s kWggGd0nzN6Bl1YQXfnMyqgRJMUdSAUFGQiVwmja1VGABbe9yLrbKKZD6oqjuA4gsC aTshduVJs57zHNJMFgzQBdywB0uTmYUMZ+QYv65pXFUMRllXLa2jAPtpPqejKY0sLY LNEbG59p+zLNg== Received: by x201s (Postfix, from userid 1000) id 55AD7204B37; Wed, 24 Apr 2024 12:16:35 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: netdev@vger.kernel.org Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , Steen Hegelund , Lars Povlsen , Daniel Machon , UNGLinuxDriver@microchip.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Jiri Pirko , Simon Horman Subject: [PATCH net-next v2 0/4] net: sparx5: flower: validate control flags Date: Wed, 24 Apr 2024 12:16:21 +0000 Message-ID: <20240424121632.459022-1-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 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=UTF-8 Content-Transfer-Encoding: 8bit This series adds flower control flags validation to the sparx5 driver, and changes it from assuming that it handles all control flags, to instead reject rules if they have masked any unknown/unsupported control flags. --- Changelog: v2: * Split first patch into 3 (requested by Jiri) * Convert a missed extack usage (noticed by Daniel) * Added cover letter (requested by Simon and Daniel) v1: https://lore.kernel.org/netdev/20240423102728.228765-1-ast@fiberby.net/ Asbjørn Sloth Tønnesen (4): net: sparx5: flower: only do lookup if fragment flags are set net: sparx5: flower: add extack to sparx5_tc_flower_handler_control_usage() net: sparx5: flower: remove goto in sparx5_tc_flower_handler_control_usage() net: sparx5: flower: check for unsupported control flags .../microchip/sparx5/sparx5_tc_flower.c | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) -- 2.43.0