Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp598625lqt; Fri, 19 Apr 2024 05:26:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVE1cz3VwrYg2B2F1AM3TEeFjDXCR4tNIarFzIPMwNMVE/MIm36KCtY6R8Jla4Or5E+DAd0tmypHbccJ3IG4IKHMICBH/i7xZpR0PGC2w== X-Google-Smtp-Source: AGHT+IEXl3PiAQh/YvlaXYetT2P5uEWbidBNL2OLfQT1fg1ZZNjc2BxrCl/GGGcnvt5qdReZd4hT X-Received: by 2002:a05:6358:b593:b0:183:fb11:723a with SMTP id wa19-20020a056358b59300b00183fb11723amr2330465rwc.11.1713529568614; Fri, 19 Apr 2024 05:26:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713529568; cv=pass; d=google.com; s=arc-20160816; b=BDH9XjkBGsxGUM4ZkopV0M1nV0NK0Gr7cXYXuKmuFqmmbq3aR2BZKL6LXBIK4nkLjU KG8NMeDQ2yCV4ZbOgrMmwfJ6LT9WGmsmpB+4J5OSfMrX8cMb+xTyD6hjwC4m3VJgMuZQ uwxueoEY9Me5ZOgYKwX7N0l7zQ2nsUCI5ggfWUWODZxxOXDeZ5/2mlPHTsk8Hr6az9yU Wbd3Va3wJBHMkS7KjRN2c7UApp+nwDBmC/Z2X5YbCr/mPhGBjrNGAZx/G7KfXtfWsHiN R7VU864hb9k2tWvmQyCeYRKejbdcHygtnFpTbY8qFNt5VagEy1c3VckB+oWNCE2Sw6M5 Y5hQ== 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=DgmsLIH3Q6ggnVrR+r+LrWBb8lm/zGJY/FVQaMN0Dic=; fh=JIjVh0v1dlB+ZL/7qsySN/Gq6RNt7VJqriMUCyfa3vY=; b=EG1HHjTRnXyS37a10JQPiiSKbuv6DKqt30+ISZjk8cu32Kph+hu/tg6rytOiACAnGn hUEBpCFL7EwtaUMD2A4TFzws1+TnYoE46T8cOm4afDLwB/fvMhCy/KS4O3dhuZFD5YhA tiS92EGiX4gePiPRb+KC9TCYmE8lQcxqf5ehWTfRj4h5wSvkQ9VsbG0kvTd5+2FwcTNI 3T/6yCSHPIcbIs4iuep7639CJU21T7bvYDUMpzzi9hEYVMMCKkqRq1AsAQ2SK3CjNoiH 2XOfwJYBVMzSVgkgj9r2uBeDnpQUFP5dgHLL9LRGbHBObMgRUE82lJeKxthMrxDC0U7k Tkcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bVOnq3iH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151403-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 f2-20020ac87f02000000b00434ff9cdc6csi3780869qtk.44.2024.04.19.05.26.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 05:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151403-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=bVOnq3iH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151403-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 52B851C210B1 for ; Fri, 19 Apr 2024 12:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D498585636; Fri, 19 Apr 2024 12:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bVOnq3iH" 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 0615B7F7C7; Fri, 19 Apr 2024 12:25:58 +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=1713529559; cv=none; b=dnMu5FK34VKwCclav6CB9eag+wJX2opGAu0hZ+iU9livpA030HOtByImPpQpmndbJCbPO1qdQTsRMmEV5En4BgpWRfHNkwLNHMEAj4Z4Xf3XAWjUVTUXfSYax13TukrRtiqucPqKWT9SWPZBXmoakqxzBfPYB26s1i1U/M2pKBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713529559; c=relaxed/simple; bh=aNT6Y/Xt7MC+J2M7UeIANbRkSx6dQV+zx46InVO37JU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qHjz8asqofXkso95PHJSWGFjyaq8aM27jlyatRXKJwx5ijQaOlDNY4QDpiTjV/JS2G1mH5OEjvxKsdTXhP7JAjyRA8smIibtldHvCb1J71sxZVl8wcjrE7jRMkRR42pigaaQgeNkkwQzKptOr2j5+UA1bbmQ9Fixz4uSUPLmrzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bVOnq3iH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48C05C072AA; Fri, 19 Apr 2024 12:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713529558; bh=aNT6Y/Xt7MC+J2M7UeIANbRkSx6dQV+zx46InVO37JU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bVOnq3iHBHsZyHnICpIF8td3agRFAUFGhEF/b+DyrwF+BuU9Moz4FttY6DSXZc2rS okYaqIeb/MmMKrZgtTAoEFDjWFA2by7oqhTVCWtfYDpBYh4Zl7X9zryV+sGNLiBQCl KGg9DrcfD2yCTONwtr9Mvqv1Zp9OFEdgANS3QCDtH1Zw+pK9GpKCGhHE2ZI6S1Ggtf 8meMKrFLtaKhK0i2X/1PRiURZaAtTZ9r7Ew8/RZB77WHgL4PzlDt3ExTGJzEKOboSs FtPQxllyRVMaez6RaoI+Li/7lgjeMx/d1FSRxMHkvUCevJfK7ujMv1bd8MSRh15x9Y neugzmu1b/ZRQ== Date: Fri, 19 Apr 2024 13:25:53 +0100 From: Simon Horman To: =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jesse Brandeburg , Tony Nguyen Subject: Re: [PATCH iwl-next] ice: flower: validate control flags Message-ID: <20240419122553.GX3975545@kernel.org> References: <20240416144331.15336-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: <20240416144331.15336-1-ast@fiberby.net> On Tue, Apr 16, 2024 at 02:43:30PM +0000, Asbjørn Sloth Tønnesen wrote: > This driver currently doesn't support any control flags. > > Use flow_rule_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_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