Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp56584lqm; Mon, 10 Jun 2024 12:31:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjE7jCqdZmGcwfWkeqME/VnwzaAwKkFA3xN6fKC/oiWryOlWuxjSFewnawDN6XLu76wVVZ1i9BRwkpT4p7WMtQnSHloAteiK76sDI2xg== X-Google-Smtp-Source: AGHT+IGYowNGAsWwz9Rjqtw2Hzn6dBNl8dl/KMydgvbRZCqg4GcQj1pYQotS8u7H792kwefN8l56 X-Received: by 2002:a05:6a21:789c:b0:1b5:fde3:a603 with SMTP id adf61e73a8af0-1b5fde3a727mr7193271637.20.1718047892993; Mon, 10 Jun 2024 12:31:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718047892; cv=pass; d=google.com; s=arc-20160816; b=CHhmoO76RXicoELaiya6M/2k6ZXnsx8Oom9CFNegikAANw6C4QDJOqdKzSe8lxKiL1 oER8QB4MO216fonJY+fgY8fX1bUxnCJmfEenok6USByZp9RtA5JAAsSuDAj5BK6dCC/t cC/6mCJ04JyR/UGqWI0dMDX3+k9i1UfuIpm9Hp4Eh/TvOT8V+ezbOP1NgOC1ZkhOglfh exOye8L9axVBXQtXFDYQXJBPjFJ5iPMtFJL4caiazP3kxScyQ8g8tKyLA+Q0uinUkj4b E9eHLthAbrDzn7K4VhXOaPoXhiRaf4cSAjFMx3jS+2gyXfT180v4xc1JAlgCXKOUaGam FrSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=a3xFH4RZCQiRLi4fnYYMNNhnFMEw94k73e6T/LCGxBo=; fh=SD74Icl3HoZCfP07/Tph8U9Tmp4OuazqTCyWwVRDnfQ=; b=I1qvmTP2zfO06X5iLjFiRy1WWDenPtyBE/519C5ty/4E8swq6Dz00omVXjjUq9Cz3f N+flXJPoeor2X+lm6I7lJMHBRcE6mWH2uXBPyKOQ69736KV0ZtnKE4hZP8G+NtC3ChC2 6mi7qFZzJ39GSQEJuDiwFZj8gFD6hdlFKoI68CKWNp8BUZFiAKRcsTMK+/SwhyD+WgVw kaTCh0DPYOGJx7cZXiXVWZTZJTaYFzwQKokAsByetQ+QJo+HCCidSQrV92jbBqxt4FWS bwRD2qAc+Om1dVZvDD1iEPg1mbEFQ05/fRnUkiQS5rEvolf8g/SBeq0O6/5z49U7t1S8 7UnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hCCPr8mr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de297dfa20si3954309a12.746.2024.06.10.12.31.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 12:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hCCPr8mr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0166FB225BE for ; Mon, 10 Jun 2024 19:31:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1E8B14EC48; Mon, 10 Jun 2024 19:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hCCPr8mr" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 81AC712F38B; Mon, 10 Jun 2024 19:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047874; cv=none; b=Ks+mB4s/JCWBBEG2Knr1sgWbaP3qXuQDpIIe63yZ6nHosRyieeQxt1vhayBaPlyheOOvlB232p3tulrmLumzLNHKCK6tnYYRVLINSToQ69GIL5JewZ7uT5A4xHEQIk2qiBDh6ehsGWUVo+19wkh1Gt615FF2h36pQEGE86A58Pk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047874; c=relaxed/simple; bh=Q50+pzgA+aFaIIfbZrZ43KROpRk6pC4JGOrEdAtzXP4=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=rIeTH90cVNcquD3Hbr7BCkUlleOUUF+0e+KQ2rVh7QPZsIy5nXYmsDra6xeevqhs48AYU2iJw4ctPR5iejwvegEacFDNnmw5RnfWfzdcYBSuIhuJl6XQmG5NByekcThBJYP4qHPU9XK60RZ3NQcDBKP0kSPowUtr1YxOIwVxGVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hCCPr8mr; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4218008c613so2754575e9.2; Mon, 10 Jun 2024 12:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718047871; x=1718652671; darn=vger.kernel.org; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=a3xFH4RZCQiRLi4fnYYMNNhnFMEw94k73e6T/LCGxBo=; b=hCCPr8mrp9kEbgam6ov8E4UCJfOlZHScnt8FJQhRLGbQ9PhKG0wxwX8h3EJ4FjZ1N2 CETgCZg7mONYc9XLrsrHeu20aczVM5Y018PtIuQk+qw8rdzZ8+4Sy7bPwFMwi7LX/IW8 DkDno9xWSiWCvv77QWVvhdKaYtaz3N5pYDybTSPB/aO7Lr90YhxvlaNKFRNRLKYYsBg0 t8lnc7ZD7sfrCj8bVAORSgHBDRkM7uZMAWOcm8b1mIKYBhAxXtQJBYCLRzzqRSojTlu3 VN+1h3aHjnH1lkDGuKHznmVgYAQCDZNK8F34rckdZrWhhlDzoZ98/+mUsTEzCo0KFWw1 a/WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718047871; x=1718652671; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a3xFH4RZCQiRLi4fnYYMNNhnFMEw94k73e6T/LCGxBo=; b=u7rryJVfh99AuaC7vZ2L57IiQiJo/qzipXavFYtF0ZA5Nlm2CyIVRa6rLT2woCoLdb cQwkaQJlni2kIIHqxvrvDAMwwND10jJ5P+sNpFKEwM/b6bDkUAmh+2jzOkknEpYlgCGe 4evuRfNQB1ejuQ/5QuFoMGkLMJdzUjRe53J2WZmZQg+fXR1CZsQY0I5HySs5D0SpIgAP Li9WXou/jpDs2+kMaqYNDcO+XvGFOAt+J5tCKPMxHYwfuBUpN723iCWOGOh3PYK0NrvM XIaKlaB/umOl1VWlL1ltj0Q+UMOeFM+sbuFdLzhQPNcrBLedUMBYv6JGUtuXnVU+c0II rbFw== X-Forwarded-Encrypted: i=1; AJvYcCVb69pSOTEm11za0i3X8onWj74fWvqomw6DwlLGKso0sZKrDsxB4Vimawk5vJ75PBLwT8UTH1QPaAsaEga0EUJSk6i7VJzXGuPDeW8PNAFVLJUPzm58tx1tWx2FxX5HHk1yMuUZEsK2sY/0ONmA7hSTcdLPhDWdD1r9/M8X3/B28w== X-Gm-Message-State: AOJu0YweWRrLtXd2PRL62P92pWTcM9k/JMQnd4XBhokenkO4+QyNYuXj mpVGevvUN7c34jnzqMibb9dW51IhJcDt40QHTgR2UzEQcBXuDp7i X-Received: by 2002:a05:600c:46cb:b0:422:1609:a7db with SMTP id 5b1f17b1804b1-4221609abf4mr14442965e9.8.1718047870691; Mon, 10 Jun 2024 12:31:10 -0700 (PDT) Received: from [192.168.1.122] (cpc159313-cmbg20-2-0-cust161.5-4.cable.virginm.net. [82.0.78.162]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-421c20e9f51sm49262825e9.17.2024.06.10.12.31.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jun 2024 12:31:10 -0700 (PDT) Subject: Re: [PATCH net-next 2/5] sfc: use flow_rule_is_supp_enc_control_flags() To: =?UTF-8?Q?Asbj=c3=b8rn_Sloth_T=c3=b8nnesen?= , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Martin Habets , linux-net-drivers@amd.com, Saeed Mahameed , Leon Romanovsky , Tariq Toukan , linux-rdma@vger.kernel.org, Jesse Brandeburg , Tony Nguyen , intel-wired-lan@lists.osuosl.org, Louis Peens , oss-drivers@corigine.com, linux-kernel@vger.kernel.org, Davide Caratti , i.maximets@ovn.org References: <20240609173358.193178-1-ast@fiberby.net> <20240609173358.193178-3-ast@fiberby.net> From: Edward Cree Message-ID: <07b7f432-bb9a-1285-2431-0f5d2232b0eb@gmail.com> Date: Mon, 10 Jun 2024 20:31:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240609173358.193178-3-ast@fiberby.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit On 09/06/2024 18:33, Asbjørn Sloth Tønnesen wrote: > Change the existing check for unsupported encapsulation control flags, > to use the new helper flow_rule_is_supp_enc_control_flags(). > > No functional change, only compile tested. > > Signed-off-by: Asbjørn Sloth Tønnesen Acked-by: Edward Cree > --- > drivers/net/ethernet/sfc/tc.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/sfc/tc.c b/drivers/net/ethernet/sfc/tc.c > index 9d140203e273a..0d93164988fc6 100644 > --- a/drivers/net/ethernet/sfc/tc.c > +++ b/drivers/net/ethernet/sfc/tc.c > @@ -387,11 +387,8 @@ static int efx_tc_flower_parse_match(struct efx_nic *efx, > struct flow_match_control fm; > > flow_rule_match_enc_control(rule, &fm); > - if (fm.mask->flags) { > - NL_SET_ERR_MSG_FMT_MOD(extack, "Unsupported match on enc_control.flags %#x", > - fm.mask->flags); > + if (flow_rule_has_enc_control_flags(fm.mask->flags, extack)) > return -EOPNOTSUPP; > - } > if (!IS_ALL_ONES(fm.mask->addr_type)) { > NL_SET_ERR_MSG_FMT_MOD(extack, "Unsupported enc addr_type mask %u (key %u)", > fm.mask->addr_type, >