Received: by 2002:a05:7208:1509:b0:82:bbfa:f723 with SMTP id o9csp519238rbf; Wed, 24 Apr 2024 09:45:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkJj1xYfT61xYgvqahUVNmbuztEsiOwujUrCeIxXhsVHk4h7V/L4Mg1czMvgq5IJTry+XGLoFu9s+6cE097eJGtdwJnNYQd6vPhsIg4w== X-Google-Smtp-Source: AGHT+IFYwoW+CNK+u2k6Y4hIQgNCWerLCt7l7S/D7HGBhQcTQD1PBlrXNj64JXIYEJ7uJl/73b1a X-Received: by 2002:a05:6a00:1891:b0:6eb:6:6b72 with SMTP id x17-20020a056a00189100b006eb00066b72mr3883536pfh.25.1713977127216; Wed, 24 Apr 2024 09:45:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713977127; cv=pass; d=google.com; s=arc-20160816; b=akf6IfqhEpWh8CMxloL02yywwkXbq+YpnfCfU6QkaDYW4QCtlebz6uyV3ogkPsw3bH EcUXQ4isfyvEWB4SzfvQWtxtkXYmXXlsMM1OUe2I0PSy1wheEkezRnmzRCVZS8ZuVvZM hbKfwX6TSGTvWhLSPPbSu6RyQjQYClHAUZrA638zp1OicyJt4RqZm/jdtgb2xNbPiX/P 3Jr8pM9JNbCj12IW+sFO7VLGorij9JbUscQAvTQ+87k2UWIpS9IWYQG0ABJsp4qxzXQ8 /hDLLbWhrUsALKGVYNNSBjlh20OgQhOmfNXwUmqp86KNZ74JRaQ9ugyJrGcjBmGasdPk ihpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=94HyLacxeDiZhQxsdF8reKSR7NzPcPXiBJmD6Pmd5Z8=; fh=mi2Q7cwI2YmvJyR9id3lSyf8vfdaH/S+wWqVJDgg+Yo=; b=U1fcro1awYwUcvioRofPQH8SJFdY0XDV0e8oJ0k/vWseUo/MQPymB/St1BlzSxeYJT od2hSpx0yMYOkD4ZLsBjKS0TazTDQK34QLobprt3zpFJCRniIt/CbnavyiGC6wvHBbwX aKZ1GAS6vLBRhQ79g1guj3TBKVOgKo7dnItVDfi6bf0Qj2Z2tfMDkoR2nKNIY4Gky8Iy 9Ma1nfeN2xz7ytdyJYdrXrkpTw9NWL5V/q52GtxCUZwgrzW9gWeubSHcdNvmby4BKR3R Q75arhq3WQN0YlyF+RLioz+yyprP/9zowy0LT+vq2ukXniCWHbUJtz6MAIDhAPnFVYg+ i/cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=otKxIOsd; 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-157343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w5-20020a056a0014c500b006ea809f7f49si11839532pfu.145.2024.04.24.09.45.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=otKxIOsd; 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-157343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157343-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ADB7A284748 for ; Wed, 24 Apr 2024 16:43:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3B7816C848; Wed, 24 Apr 2024 16:43:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="otKxIOsd" 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 6CE3B15ECC7; Wed, 24 Apr 2024 16:43:27 +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=1713977010; cv=none; b=WwyPY3NsVYQKQH67G1ceR3A1+8YKKAJvlzGhVw/D/m9twPC+53AAgXzNUet4Zp/6kQCLTlvKvrRjzuYJmlNIVLeEIE2gAclU6Mhg42il8rb8dCIr4+vMtcd67ji3hVBPOBl956jj0/rEBw5czK7xMEQ5us6ZMG2szjo+zrvJhC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713977010; c=relaxed/simple; bh=4lFQdEjkvGXYmHpN1Zb/f8Uu/Vk5mUCIUFY3zg5YBxs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OSB83YqQJ4QzaOvrNj7aPj4B2MhxgORw6AAqMn/Xhqf9OeyG6UJeuXeayvc3MDDFTfzXPMI7lbYDpe4EdQEncR3iS9RhIhGDMPDZason2maitVtKWFN2QmlFtE7Bb9AajebwEJeDPkmC5eisjiTgE1CHaeKHKbLAvSjHlXJyYkA= 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=otKxIOsd; 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 EF0D5600A2; Wed, 24 Apr 2024 16:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1713977005; bh=4lFQdEjkvGXYmHpN1Zb/f8Uu/Vk5mUCIUFY3zg5YBxs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=otKxIOsdTbl7M4gl1ogesMJKcWgj05WkzcyBiUiwKASacEuskc6qJ0v9ntQTEfA0D VfGvBIZ+5jGsV0BvNGaq+7WKMVBkh6/gGWpY7723scd5r6GaXKJvdQy4cbXJOcFgHc Vtoi84nkWobSZp3Y28O0uwfd1tCt3tbW8TAZyTBmia7kXNwluJL2D+t6R791lgm044 qMMPHiaTg7QkChsNldJDbjedcsXWRdcgh6XcoAiPaZ4BX0mYcZ6yqormgwKlL8SV9d xdHlo32UtXKbsPWPJXDUMdZ0HQLRxbo4jNml4POyMmt7gRYGHkg5zVZ8/ZRHGOc4OH DoX9XpFTN9fzQ== Received: from [127.0.0.1] (localhost [127.0.0.1]) by x201s (Postfix) with ESMTP id E39D9201C3F; Wed, 24 Apr 2024 16:43:14 +0000 (UTC) Message-ID: <923135c6-1bd1-414d-b574-c201644d35ab@fiberby.net> Date: Wed, 24 Apr 2024 16:43:14 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] net: qede: flower: validate control flags To: Jiri Pirko Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ariel Elior , Manish Chopra References: <20240424134250.465904-1-ast@fiberby.net> Content-Language: en-US From: =?UTF-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Jiri, On 4/24/24 2:52 PM, Jiri Pirko wrote: > Wed, Apr 24, 2024 at 03:42:48PM CEST, ast@fiberby.net wrote: >> This driver currently doesn't support any flower control flags. >> >> Implement check for control flags, such as can be set through >> `tc flower ... ip_flags frag`. >> >> Since qede_parse_flow_attr() are called by both qede_add_tc_flower_fltr() >> and qede_flow_spec_to_rule(), as the latter doesn't having access to >> extack, then flow_rule_*_control_flags() can't be used in this driver. > > Why? You can pass null. Ah, I see. I hadn't traced that option down through the defines, I incorrectly assumed that NL_SET_ERR_MSG* didn't allow NULL. Currently thinking about doing v2 in this style: if (flow_rule_match_has_control_flags(rule, extack)) { if (!extack) DP_NOTICE(edev, "Unsupported match on control.flags"); return -EOPNOTSUPP; } pw-bot: changes-requested -- Best regards Asbjørn Sloth Tønnesen Network Engineer Fiberby - AS42541