Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp546433lqo; Wed, 8 May 2024 07:43:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5rccY5kPb4lUt/qFnBNVNBzxg+YnjdkQ3t1TBtQPf2sl3TIkotWY+zWxl+FkIFOoapy9ghGQzCUwldpEKCsQ80C+pBdbZPspo2a8tgQ== X-Google-Smtp-Source: AGHT+IGrVm/4M3sLxjyosn6PD7XeX1uZE4QjvPVE1gayb7a/3skisLieZ/MjOl6aUkZ32Aj2Czsf X-Received: by 2002:a17:906:ecfc:b0:a59:b68d:45fb with SMTP id a640c23a62f3a-a59fb9f0c7bmr181237866b.63.1715179425201; Wed, 08 May 2024 07:43:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715179425; cv=pass; d=google.com; s=arc-20160816; b=Pz9zOLqqO6TSLH7c6ysWfUbLOmDjPHM8KYhx5df7JJPLF3Fl41j/6OhbX59HJBczub Yhdp3YwVdR8PuzLA9Fn59xa8CGEcbVkdcppnF7n1MrFAWsIEgRwUt/hvRic10Fk0Kf7C TePaQSFUuJOXYyfl8VKIWoXDzek+0XhDR/Gc4n/CwcfzyqXzFmzj9GDqry1OopXLAOAd aqRHldJp1KmyCumKMMEtF+EyCzyM1U0rqMcmU0rR27MM4vrJMdjhthU8qy6vdB07qfk4 4unw9JnnW3SPjRJu0w940cXBlI4O7xOvq6FzWeFgO1i4X67U3CUDWMRSS1tOxX+YnAo1 MLRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=b90ZPrPyfSPYA8WRVaRbv//DevyHAD/ME5DbYBA5ETs=; fh=rqK/kbiHXEsDhCYp7FUmdresDQTW1BsTvC4AiyDFYWc=; b=PTGs2s/b1xjSbi14nNDTR2xT2wEKf+sXiZwghnYOyoAVcVfK3nFqwnY5H1KCG7/WAm THh8Y4Dc2hbvUoOPd7nza+JUfHcOu2YrHwOBO+tdYB8j5VPQFlUlVSKnAcfa+NjqMnR+ lYV0O3JA0v75QydZUsOy3LaL/yHkqDxeKoLx939lOEkS6iiFQQYjkdR2gDcAQS/Jwur8 /DmRI1df/cp1UYQrJe3sKAC19vmUAY2KfSSEzyAKt2PUlJsAqz4VtdCz20HSouQ2lSdi FUyhOsOON9rErHl1BzVxQww857tMLKAc2wT+JCttbzKHDmJXuMZeSDTjTL2h8nZQTPom SG7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=BXzV0qZj; 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-173429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s23-20020a1709066c9700b00a599fc758b2si5853735ejr.435.2024.05.08.07.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=BXzV0qZj; 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-173429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173429-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E924C1F230B6 for ; Wed, 8 May 2024 14:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B578E127B4B; Wed, 8 May 2024 14:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="BXzV0qZj" 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 0EC0686270; Wed, 8 May 2024 14:43:09 +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=1715179393; cv=none; b=cCf903GUHGnc8mJsfPEpI935KfHqmpxHC43m8voYVGIZQobkbcCAe9cF3cw18X0NWV/yEDMDavgzT0LReQHr3HBS0QmAsQTUMjImV2qCvUVWvNWG5pfzu7Fht6Dj0O/Gfrr+c7NmWFU+eaIjmmMGnIwY8ZKrrEsOwMcptcToWgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715179393; c=relaxed/simple; bh=de6mABlly2eNPPMWPujcomvFv6/tsClXC1FbKAjjl5Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dsjxlwzjhwNugEzwCEs2w7cQtnpzf2ylBUVNtJ8/gfsEdhYdNge7e90RWLGS8eeUlfKBjDFIL1t5Auzd+LX4rjWR7xSYRSNZ2wwGuJ911LoDf/p4cipJt2g6ofKJiBcoFpc300iD3evYDcz6N1BxTZm2/vLOj86RNe+xo4gqKAc= 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=BXzV0qZj; 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 02F34600A7; Wed, 8 May 2024 14:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1715178867; bh=de6mABlly2eNPPMWPujcomvFv6/tsClXC1FbKAjjl5Q=; h=From:To:Cc:Subject:Date:From; b=BXzV0qZj6tkNEHDeBAFX/giRSXuh45KplIjcKJC0gkTBaEpc2sXKBGxxnQZ5bOjBD nYtFa+FKtLBsz1KWD/n72PbXJVqgjbRAWzuMQZygUTCFFiTyu/ZOGnspyjyoErbV8Z 5R1xUywDHps7WCCshkb+ML/+6wMhNbW2HRhdaDI2Dn3Fi56qnDFdS06yoOxWv2Lefu 7AzCQRr+20ufISuKu90LJfNTn/qkERENqQg42fUjojYpJDig5i6X1zXVdHJ2JAVoz9 +XQsQETf/fyFAmHS9WHrOIMKo2fEk1K9Kz89fFGc6/jUx6R3BZVzmMcYkm4NFg3LUB 2aQveYZ9pHdKQ== Received: by x201s (Postfix, from userid 1000) id E8119203455; Wed, 08 May 2024 14:34:04 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: netdev@vger.kernel.org Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Manish Chopra , Przemek Kitszel Subject: [PATCH net-next v2 00/14] net: qede: convert filter code to use extack Date: Wed, 8 May 2024 14:33:48 +0000 Message-ID: <20240508143404.95901-1-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 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-Transfer-Encoding: 8bit This series converts the filter code in the qede driver to use NL_SET_ERR_MSG_*(extack, ...) for error handling. Patch 1-12 converts qede_parse_flow_attr() to use extack, along with all it's static helper functions. qede_parse_flow_attr() is used in two places: - qede_add_tc_flower_fltr() - qede_flow_spec_to_rule() In the latter call site extack is faked in the same way as is done in mlxsw (patch 12). While the conversion is going on, some error messages are silenced in between patch 1-12. If wanted could squash patch 1-12 in a v3, but I felt that it would be easier to review as 12 more trivial patches. Patch 13 and 14, finishes up by converting qede_parse_actions(), and ensures that extack is propagated to it, in both call contexts. --- Changelog: v2: - Reworked to always add extack as last argument. (Requested by Przemek) v1: https://lore.kernel.org/netdev/20240507104421.1628139-1-ast@fiberby.net/ Asbjørn Sloth Tønnesen (14): net: qede: use extack in qede_flow_parse_ports() net: qede: use extack in qede_set_v6_tuple_to_profile() net: qede: use extack in qede_set_v4_tuple_to_profile() net: qede: use extack in qede_flow_parse_v6_common() net: qede: use extack in qede_flow_parse_v4_common() net: qede: use extack in qede_flow_parse_tcp_v6() net: qede: use extack in qede_flow_parse_tcp_v4() net: qede: use extack in qede_flow_parse_udp_v6() net: qede: use extack in qede_flow_parse_udp_v4() net: qede: add extack in qede_add_tc_flower_fltr() net: qede: use extack in qede_parse_flow_attr() net: qede: use faked extack in qede_flow_spec_to_rule() net: qede: propagate extack through qede_flow_spec_validate() net: qede: use extack in qede_parse_actions() .../net/ethernet/qlogic/qede/qede_filter.c | 114 ++++++++++-------- 1 file changed, 63 insertions(+), 51 deletions(-) -- 2.43.0