Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp599822lqt; Fri, 19 Apr 2024 05:28:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm75qlnVzv9OSHI2ktk9d0LI7hXnbjdJPX4sGJwbBGNQXIzcdgRzB/uzMmcOmX+V5wjfc23Fsi53TVF3ECSZq02Q+bJYS4/AzUHfGSmA== X-Google-Smtp-Source: AGHT+IFelFECmAIwjFhl4ysuqYuvwko5d2HlUBnYkg43vhjJPLy80+ORcn65oX0hFoWS7WDSlA3B X-Received: by 2002:a17:906:6549:b0:a55:690f:121e with SMTP id u9-20020a170906654900b00a55690f121emr1842089ejn.30.1713529694943; Fri, 19 Apr 2024 05:28:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713529694; cv=pass; d=google.com; s=arc-20160816; b=gg7Cxgi3cZ0lmhR+NMV8J2yJbC4EnZmeaF1eD2+J4nAScDMU/ks2Xj9cd823rGvewF pQAYnWxdrCynyfQU+vqjgyhNJUAZccurKxpEegzaC6g/JmGSYQD0ZZ1Il6e5cF8KPESn HDuKBUc76DC4JU1xt6Gx/YsJfYSpVWDhRcKoFQw2Cjh2ZtGyqqZkwwaVP3VSDwnwtc1n 3dYV8+rFrs/PMkCu5MNVybACL65MWSHcB3b14KmJ3wvZZsptkYxX/vOlE/0xgU/FqMAC 6H9kgzWHmu6BuA5OWBvut2OKUXa0UHYdn27KJlYeoNS9xIAjLFBcvXVoX+sGDXQ+cS77 sKbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yFyhQYejFN9hLmy1Z3f0HxSF0kFA+prWcBLKWzb9MTg=; fh=nHOlWILC4kRNPF15L6Cly8zmroIpO37AcvkNzyKz9tk=; b=FIi7N1mEjZwrqUa7vS7Bres6gXCVtz1lpUp24BslPQx9WjOtG3yyt8hxAcRS2+qXQU sUuyjCf8TGx2LkCSFl4LqfSYa70OwiMJ5hcdHA8d70Pj+VHZASm+e/E4oF5u8K+CmkEF WMTrKZoJkotWAVijIV7BYLwW+0jz9D0Qrmz4iGNiG95YkJpypg5Mt3hhJuofpIbKkVSR fYungtf53U7c9VsWepUz6GJ2euHQsHrXgaRZnjCu12Rt0mJdsuX37ItaF1K1jj4YnPyt gMwA2GTHgIhnPwTk2fRTqN1CRMaM4FpogfzNrTGgv171UWw5gtZ4MRr9vK+4UZ9Ks+K/ bjVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LiPxO04L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b15-20020a170906708f00b00a5244036b0fsi2104580ejk.156.2024.04.19.05.28.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 05:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151405-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=@kernel.org header.s=k20201202 header.b=LiPxO04L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151405-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AAAA01F213E8 for ; Fri, 19 Apr 2024 12:28:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02BBE8592A; Fri, 19 Apr 2024 12:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LiPxO04L" 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 0F46883A09; Fri, 19 Apr 2024 12:28:04 +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=1713529685; cv=none; b=YJZTuTvG8qo5qwIrFyGT+IWptpnAA4ohpNHNCVWqDuZD2Ul1HJ0F+1maWlL3Ivh49MUVGgOlAgPNakYq344dvRVHY7vkbhSU+Afv9BX4hx8IG1p2CCTssmWxXcGs3viyaX251fQfCyGbRT7OorTj1KkNoK0MdT21l1e/f1eL0MM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713529685; c=relaxed/simple; bh=rKbBBVN1Sv/J0FjNeUbfB11IjrEEcT2FLxCc2ZqzQKA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KpyMg2u1XWY/k3BUvEO8kzAQJux6r9c/IHFOS67MPjEp4Vriki/pzQOUNqdIkKZqHTWXzJU3SBizjh+t4DSbhWDlvmYhBR6FdRVsq8NGwIi0eTpMnviuVDQzOFkQV2ctoF0EM6ypWnhy1qNuhMK0mCDIH5H4PN+TmVJu/wNdVDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LiPxO04L; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDE94C072AA; Fri, 19 Apr 2024 12:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713529684; bh=rKbBBVN1Sv/J0FjNeUbfB11IjrEEcT2FLxCc2ZqzQKA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LiPxO04LYpjkMKKEHajh2tudryPFwsV2CfV1jFzBOkwS7XWT0TaGH6/uHJVG1RbMG O/hlevBoCGmUofMqX+KMzNaDWb2zqQhfitbSNkZK8Lczl3bEqANaMw6BXuw7kR2884 DwIQiwlAbvxYFKwEM5+KjIwIl/qIqqi0/vuaEEcqyWCvoTUdGQzpCR2WAgW1B+Cl0r 45G17MhVtipiFBoEipJx8j3dZe4HqQkJka8EYQ+ZhNNu3xb0czOJ80iW2mz/RczyfM mkLn07xR8R2C1tHpOeMCJH/Swx36kQKOpwtL3rAy5k4O197sot/KzZ5J+FgzQcexBU Krpou5wiG5ktA== Date: Fri, 19 Apr 2024 13:28:00 +0100 From: Simon Horman To: =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ioana Ciornei Subject: Re: [PATCH net-next] dpaa2-switch: flower: validate control flags Message-ID: <20240419122800.GY3975545@kernel.org> References: <20240418161802.189247-1-ast@fiberby.net> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240418161802.189247-1-ast@fiberby.net> On Thu, Apr 18, 2024 at 04:18:01PM +0000, Asbjørn Sloth Tønnesen wrote: > This driver currently doesn't support any control flags. > > Use flow_rule_match_has_control_flags() to check for control flags, > such as can be set through `tc flower ... ip_flags frag`. > > In case any control flags are masked, flow_rule_match_has_control_flags() > sets a NL extended error message, and we return -EOPNOTSUPP. > > Only compile-tested. > > Signed-off-by: Asbjørn Sloth Tønnesen Reviewed-by: Simon Horman