Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp392282lqd; Wed, 24 Apr 2024 05:54:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU70pIRtME7SNy5sBg/1Mbz3pgSURpt1lsWhG6Z8hez46bEO1YsDzauJxcs9iid7IqxwT4H4uC4Qy6OOCmy7EHJCTeWHQ6275Z3c7fcLw== X-Google-Smtp-Source: AGHT+IF+fOv3bmPaMl6GLmo4NWpKBn3PfkWhUvc6p39uD03soLPKfBQbBQMPdTqYolwvXcciwgmG X-Received: by 2002:a17:906:ccc8:b0:a55:ab92:8baa with SMTP id ot8-20020a170906ccc800b00a55ab928baamr2026725ejb.9.1713963289387; Wed, 24 Apr 2024 05:54:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713963289; cv=pass; d=google.com; s=arc-20160816; b=BFlsBzsqQZLIv9FNe8yEBGgil6qTk92f8ZDn5VfNtw8O2lW1fUJ/L1u9o1hv9hRUn+ IsET4DafLYRKDtifeJrzzZ34Xjv4gWv2aGzdcVR8E3HdV53vosjIRM/+K8LrQuuh1XXQ qU9Vq+kxGxT0+N/P+baELrI37BS6X+lFNr38gj/n5Z1NlCkXQohXjDwM2viZxfNkYu1L YlAh2xnfCzT+W7wQbBwVsWP/QzXHlhUZmOCLNU+0Y8r3KldYgIZZ1Nfucie8yvRllpVF c8bDqiaKBn5tKPprFOUOFY0///uc8iJ0qYlPIrk2rbHvECSBIbxQfHAoWI/WjKzIobyV PTlQ== 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=dsuzB5YUDaHu01H1QoQ7FRvOAxK12FmfX7QhVGylpeQ=; fh=5oY0krtCymjjjQMyjY503/eNFyDeulKewpWo0YKJ8vI=; b=iYXcAH0YJzKcFZUTcSNij5IHNCFPwUxOIfywgjGM+GTgzse/z33l11RQv8nHKDSK7f zJWyfsC57n8zBq/dLo1pBIV2nu8LG8RsmGPiGIqheh8HDd1j8ojPU5oxCNy71WSawaXi MinCs3OwjevFtReNbE0+qySuXlqnRW6OF5fTjsolYtMY0tzu77KCDQ3+KqbL4z8mnYTM besvTvoQtyMKstdWXHe1yZ+ElV0RxefJmDIRTA7AovzTPp5qyWK6xgVXDx+cKV0sNQoE 5toRvFo3X2XnACUpC1o5xbOMPgQKU1FRQZURbIggmIpmZyhe3vOPWsbcju+ylmHR8ydA BrhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=CjwQSzW+; 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-156904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gs19-20020a1709072d1300b00a519d6027a0si8922251ejc.542.2024.04.24.05.54.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 05:54:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=CjwQSzW+; 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-156904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156904-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 21F271F25155 for ; Wed, 24 Apr 2024 12:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B9E215CD79; Wed, 24 Apr 2024 12:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="CjwQSzW+" 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 C594E15B130; Wed, 24 Apr 2024 12:54:07 +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=1713963250; cv=none; b=RYTDONUFyJ2E9h1+852h687D3NVKpEF4fA3ogIiyC7UMAlbNhwzdRS65cxRvr+ZY+yIiHMbl16oTOddMaDY/alnfwt09wZWf81RfEAEunzrYwuF5J+69b1bEUQDu4ZOsHpLKz4b6zVnIMtrOkRnjAoniT0NESxKFycAMT9iX/Vs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713963250; c=relaxed/simple; bh=B0CItmNwVZMxKbpgVBG0RmpK9cd1EvQwEV3s4X97mFs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QnWSu1uUP6VQMV4Jm6hJPkLZCrgz0ooMQiA2/K1MtKC5U0eBORPTViaiky1QB9R2R/AiDdTj9GHp3Ev9/U74BfmwlcZq/vwVEfPwklpweUz3/cQg7eDvNH2mDM0t0C/DlFMyxjfA8d4TJOwOlcrfbgwGJYTGi8YuY9Mhmc28+yg= 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=CjwQSzW+; 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 85DBD600AF; Wed, 24 Apr 2024 12:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1713963245; bh=B0CItmNwVZMxKbpgVBG0RmpK9cd1EvQwEV3s4X97mFs=; h=From:To:Cc:Subject:Date:From; b=CjwQSzW+VeRNiJh+CPdV8Y2JSPn0pqVcCxi8ZHZthQn231jpF/ox9iepgyCW1pDJD fetjgbQ1ct0QamfBLM3EgPzLAFDVOlOqY9QInLZnBwuvYle3sfEekycbFhrym7Epcy 6AB7EnmmUFS8TLwaXLllKmUAGfvN57pygai/OCoAWZB4lLwGfPy58vr8NUTHq3yLd8 Azg6M5YTAHbbPk+Rl82eAbjNThFAmXd7IjsiLEThAgAkYing/iAIZOoehzDPrd/y38 f1LACF4kfC7n2dJYePSpbnex0ZC5bL7DkS/3/v/m3sKWaC4DSuMVFa/EEgxopQZvyP y1AiHw/6OOfTw== Received: by x201s (Postfix, from userid 1000) id 786802044F0; Wed, 24 Apr 2024 12:53:51 +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?= , Horatiu Vultur , 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/3] net: lan966x: flower: validate control flags Date: Wed, 24 Apr 2024 12:53:37 +0000 Message-ID: <20240424125347.461995-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 lan966x 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 2 (requested by Jiri) * Added cover letter (requested by Simon) v1: https://lore.kernel.org/netdev/20240423102720.228728-1-ast@fiberby.net/ Asbjørn Sloth Tønnesen (3): net: lan966x: flower: add extack to lan966x_tc_flower_handler_control_usage() net: lan966x: flower: rename goto in lan966x_tc_flower_handler_control_usage() net: lan966x: flower: check for unsupported control flags .../ethernet/microchip/lan966x/lan966x_tc_flower.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.43.0