From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 977928528B for ; Tue, 23 Apr 2024 12:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877077; cv=none; b=h0fxLnKtkxvGg+GS/gDIoE4nQLaQLd6Cy+lkMGUfaKoXGR5UgfGE6rvESane2ijw32B5DrF5w8P6R9Y8cpRbpaOfhY466o9MQG4sPQjoWCY2u9IaqxdTEWB5XrQ8IwmavVajYeGxnOygbwWBC2TUeptWg24VtZfEkJT7AMJUCa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877077; c=relaxed/simple; bh=gbFgDHYOBjwAfydbjKzLfsqSEneKrhMKkq47E7/9+Js=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p2O9Pp974tRQ56hvy8HDCBWzE9XY2lr+Iab6FUoAarXBv5HerZ0oE8Aq5kbnjQBoGa6KAbMQ082fMcShPlV8t9/HhtZg16deMV0sOph3J0r5NRF2wmh++/4MznHQhIlCtzUOUTwDjGmgVuB0gU4AsJj8c/Z+fG3bgNCBMp5Mdo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=vdqtVQuZ; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="vdqtVQuZ" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-572158af3c3so1568679a12.0 for ; Tue, 23 Apr 2024 05:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1713877074; x=1714481874; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=gbFgDHYOBjwAfydbjKzLfsqSEneKrhMKkq47E7/9+Js=; b=vdqtVQuZD9tFB9h0Nfz7aHsrwc9rvtODwHmbPDKo4vg+R3yiOf+2zue38azPuFLEkb JNfy1aUwgnBUBQMre3s+pZMcPTpxEhGFXxwIFoYRrEihme5xH38fKRPHziZxVOiPEcFc FKpjcIfwql8ht+MgwhpYe9IAtIPZfwyBbcw3+R5PBTcODc+ZXBr290piPQIJG9fu9clf 8dClUZeGWzsclaVvKmzqYbID4Hxq0xP8yjjbjkfWz/CaB3TRO4MhtsJSm8PrOevFe5jR CBeN6lAuC4NneN5kU6l02BXv8XtuTsxY+wdWKIy9OVpAHpUi9TiNwaW4xgV/L1lbupZz fyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713877074; x=1714481874; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gbFgDHYOBjwAfydbjKzLfsqSEneKrhMKkq47E7/9+Js=; b=s1x0VPUYg1R5+eeN3TxSuj1Zp1Rg3rCOfMoEc49ihu6EbfcGBS0zJ/HqXVBTtJOvSj VKVaLUkImKzkxf+TT+KA4drEUpoiNi7CTpPkbqZ62FnyPy8HQoVpGtSJA8HRp+AwjqFW 5/1CWBlYh+9jrGw2PVD2ZOdGuzz6LfTOiLn3hcpjfbjg2fZRIryNPDkJGmuYKeDBkZxr G/D9kDVElqqIprajNHe4DVzYFKdcVYaOzkr+NladhCrhYfwcS54LN+p/Bcw8zegw5lgZ +dZvW/D6y6TBXdbe93Jk6L7exk/1B4FeT40EAEFZmQvwoVFRYGg0L7BrByfOHPjMCLv7 mruw== X-Gm-Message-State: AOJu0Yzz1p1latTBUC32Cqh7NW0UEpfJRhnC/+W7P8KmmIf02rmjUz7E Sbxnb1TPd259rlefuT1Cl3rQXv34qK6as3ACA5nJo5jX0qNQy2brJQ/cppPr/SE= X-Google-Smtp-Source: AGHT+IFySFld+JzBlc/qIbMllcHbAhPwGnkEfsEEOeb+myQHVp2LmwKN0wccqMzwrKNJyY3qCzWuBw== X-Received: by 2002:a17:906:b752:b0:a58:771c:1a93 with SMTP id fx18-20020a170906b75200b00a58771c1a93mr1707687ejb.45.1713877073741; Tue, 23 Apr 2024 05:57:53 -0700 (PDT) Received: from localhost (78-80-105-131.customers.tmcz.cz. [78.80.105.131]) by smtp.gmail.com with ESMTPSA id q26-20020a1709066b1a00b00a53c746b499sm6996080ejr.137.2024.04.23.05.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:57:53 -0700 (PDT) Date: Tue, 23 Apr 2024 14:57:51 +0200 From: Jiri Pirko To: =?iso-8859-1?Q?Asbj=F8rn_Sloth_T=F8nnesen?= Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Siddharth Vadapalli , Ravi Gunasekaran , Roger Quadros , linux-omap@vger.kernel.org Subject: Re: [PATCH net-next] net: ethernet: ti: cpsw: flower: validate control flags Message-ID: References: <20240422152656.175627-1-ast@fiberby.net> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240422152656.175627-1-ast@fiberby.net> Mon, Apr 22, 2024 at 05:26:55PM CEST, ast@fiberby.net 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: Jiri Pirko Next time, could you please bundle similar/related patches into a patchset? Thanks!