Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp920201lqd; Thu, 25 Apr 2024 00:04:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWj+AJNHwBCPInse9ptpd4wx3wFrZ5C3sUf6+qWsCeJpglIajIDZhUQEYLt5gA/pbEPRwhZH8BjSUkUIktWpQmiIlpPhi9j7A2O/ApjUA== X-Google-Smtp-Source: AGHT+IGIajRo3HzvQJk0cS3pvY13RCr+uUX8qu7Fk1W7H/d8UasZ4m5IeDvcg0Vi853jQInLrHrV X-Received: by 2002:a05:620a:1659:b0:78d:76f9:1790 with SMTP id c25-20020a05620a165900b0078d76f91790mr4960294qko.77.1714028683687; Thu, 25 Apr 2024 00:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714028683; cv=pass; d=google.com; s=arc-20160816; b=Zahn9XEHrNUIfH26330c6GeDR55pWXu5ghAirt1qz9kOXKBWCG6evpnVemsD23kqOj h3EK+V89HlTcNkf+lZq5i2O7w426HpvKXAzzhk5HZZfAryiYA8R7EqJbOy6Tfa1GHWb0 yEULWjge9tAHxHYkBHaPkHUjSWSyMzck60zJV8ZUAfJMErlDDcGt5ccSvbjnygTRYiYN 9yOtswsbo3sAUCbEs4qKQq1kOzLKTZaz4xY4qp9Hj6IfitdoIzkIKOgzDpNAD9+Y/BbV qez6r8264Li7z3Il5aZMFmzTszLyZJo2oFGMg5f72kwJyNwZo97XKzqQ0lSfd7B3ABUj oy1A== 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=cBR6dncekgh5NrQLVvWpJ1bIu14pltXiH3AH2dGUbz4=; fh=51R0T+xaLLJ+VuaPpx/32u0hUQtW4kUyH8gi2ud/CEk=; b=clmPLZwB/PCkHXIer2DEr6sIfjmHCMlAFnSsiJ9iDAPwudPHV/icWNhjGxvglXFQvi 2grwX5p+W67yBemhOCO2Epu8HsY/QNExdYCSqCP0Idd69izU6QKTOr5/dWK/UdjIFeyq xguOjKUoX20j1HCx2Rm2xhvcIZrxM0h8VueKn6eQ/DIAR3nhtFeAICkteqzuMJM9vgcy XTWlOiJpX9gmcoWh6Dn95aPi/0kZsaIfSG9UJHPp3W4EESZufJ86GQ09i2ylVdYTRTPg qlzVFJmn30dEqOnXv+vfSQIO8YKyHKfQvPZAaVhfrPxsX7U3QXP8n5dDg2SuqB1cWldY w4Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="fv/fN9Ut"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-158096-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158096-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t2-20020a05620a0b0200b0078a35250c01si16512454qkg.387.2024.04.25.00.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 00:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158096-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="fv/fN9Ut"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-158096-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158096-linux.lists.archive=gmail.com@vger.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 6B9FD1C2386C for ; Thu, 25 Apr 2024 07:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D3F26BFA8; Thu, 25 Apr 2024 07:04:28 +0000 (UTC) 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="fv/fN9Ut" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 7462E5A7AB for ; Thu, 25 Apr 2024 07:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714028667; cv=none; b=jELMT0M3IPKGAStdSrgnZrklBNq+TWQ+u8PBZdnFeMmNWu/6kd8NY03z8nHiIMdckRfyEYuC6vLw2eRwQuQWNzKRN+kuvBfWKpH3LD4YF70aQYygST1FiJu6z9i11KiWIhtfbMWPMF38a8T7AErYrZglLpBkVBj+QENMGzot6rI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714028667; c=relaxed/simple; bh=/VjRoJE3IXRNkRzEdSWJMoni3iSBje1meeBcc8jOQog=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ey/6p3/NLzZJJA59+XcsEwQTcBSdLQcjIrDCUZd4FxgxxpqRKy3/8gWNE/8fBDeUF+xGOdVF/V7n37cycTkbbgKKjumX+gXPeNQTDk0c0nuB5TCem70gO/glrnUV8c+k0kJEt3/i33AAzbQNvsGxdzN5F1ksx1oCCMMreYPR/5o= 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=fv/fN9Ut; arc=none smtp.client-ip=209.85.208.51 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 Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-572229f196cso674267a12.2 for ; Thu, 25 Apr 2024 00:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1714028664; x=1714633464; 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=cBR6dncekgh5NrQLVvWpJ1bIu14pltXiH3AH2dGUbz4=; b=fv/fN9UtkXWJblrg9TIz7VD/qvIR03gSA2pGOslX/floDTrKnkQrkTqhPW3+f0MbXM Ikw3kyPXYf9NEYSu71ergzqF6T33BbiyOAbEyN0uETHwk2nvWsaF15FiUqE3VYCTzbw2 UP07sP89k3o6cmxUJb/ezwBrkz6eFzWIU++ySSE+x+DfRk1MzC8Ino29adNovHBS4VZp DpsjTu5YMpoTyQyB+huyB+S39eLbAOwozjTNRHlNUMoveL3vFfXCbtbUMe0MGBm7wpot uDPhbZ0xz8GrFdVWcFwR0sGf3VFDGDSZiJfK28OUpicmp0gEi8urhS6R+rDI434mCDhu I/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714028664; x=1714633464; 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=cBR6dncekgh5NrQLVvWpJ1bIu14pltXiH3AH2dGUbz4=; b=bRkeoeoQ0hM0BIz2XJZ37dBZ6dTUBTOCtBZMdxQSzjCt+29vc/s2VJzdOP2SCHXJT4 N/F5VtMgqbStFQ7JRwfJw1oQJAJJF4kEWGooxoHcgEU5hL2PbSgFn8v6QmNUse01hUmo v/oApTH7b1B15HqSHyjRhec/Gp+MIL15bXs37NNMFBQp3K4g8LZD3rzkGoN2wH7OAtsC /6FFotBPnHtTyyeij9K9EUp+b6uGnp4JJzrrhCvvTIGZeSJvSzI6QwIA6Jrn5vb7IHJ6 CM82smSTkjbdFfsW0ZtbU7gZb4wqP7rdZ6+bpwHpEhlkMWebW4Sbfhdv6WpIG9hnHAfH 6Hqw== X-Forwarded-Encrypted: i=1; AJvYcCUWtuMFzk7nQicvPLclgVxYB1tRg/CX6SjGPP+lvvYEFP8WqQvazfTtWE+kd0a5D6vVMhW7mfSrDeq9wlvBWZfNaKmulPm6ZHrZs74a X-Gm-Message-State: AOJu0YzgeMlsrJNsKEgwpvgfdy+gCwckRt2QnbQCYruvFHnuH7cZHEy7 NgtJ8q8TqksTzX5pkVdQp/N1C0TiQ4c7Q4xxg8vA1vzT4vmY35Qo6/pJwxbS1Wo= X-Received: by 2002:a50:9b55:0:b0:570:c8f:1a35 with SMTP id a21-20020a509b55000000b005700c8f1a35mr3456039edj.8.1714028663631; Thu, 25 Apr 2024 00:04:23 -0700 (PDT) Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id et6-20020a056402378600b0057245a3fd4bsm117790edb.68.2024.04.25.00.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 00:04:23 -0700 (PDT) Date: Thu, 25 Apr 2024 09:04:18 +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 , Ariel Elior , Manish Chopra Subject: Re: [PATCH net-next] net: qede: flower: validate control flags Message-ID: References: <20240424134250.465904-1-ast@fiberby.net> <923135c6-1bd1-414d-b574-c201644d35ab@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <923135c6-1bd1-414d-b574-c201644d35ab@fiberby.net> Wed, Apr 24, 2024 at 06:43:14PM CEST, ast@fiberby.net wrote: >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; >} Looks ok. > >pw-bot: changes-requested > >-- >Best regards >Asbj?rn Sloth T?nnesen >Network Engineer >Fiberby - AS42541