Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp595913rwi; Thu, 20 Oct 2022 02:50:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oW9kFJOVL4IPKzZlmpHeuz7iOXiJDFNDpEMslX6eEYeHVeo8MD2arpBNQyWiMr1ZWXCfG X-Received: by 2002:a65:6bd4:0:b0:443:94a1:429c with SMTP id e20-20020a656bd4000000b0044394a1429cmr11166208pgw.606.1666259430918; Thu, 20 Oct 2022 02:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666259430; cv=none; d=google.com; s=arc-20160816; b=BfmHVZE26FpGb7BVS874lfd9PfQES4DbUXVydA7rRdI7JVtSDmL7Tc4nqTZN6cFaFx ElJI1VdHDtwAvFtDdhfeoa4hqTQAHtFBYZe8sXwYnbRRqfVUzcKFYuNuesRbKDWq1eDt zM3kWR/PLsZWHQ6p5vldaS/gC31ENcyyk5mJOQNbEXIjzuvJTsdR8m2QOXB5+2UiDFjo kJfu4pOqNSPioGnwt17d7W0b0As9RtDALmmggc5ndbD6+MDEbuFAI0G1GazbCLdjSlA1 nz0h1KS9x/OFuZd0lgrfhvLE6fPCOTl7y5bD6L4Smse0RhAi3O16Lov3NS8uiUAc+pNM UkYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=tb3/jJqfV/cnFY/+vPv1Q6XXe9/cFEmryhOXD4vins4=; b=fx26xK0K8Qib8foA6wxUVXJAN0bD4+L86P/wzpVVmFYf31wwwK0nUOjp+l/y03y/Fl zLTtSxuSyjpGY04HXDCgrP3aRV2EI79+LNdhke6MnLnAG21TbGjpWeuqhvKgxh9S04wM 1dCfT9GloRgw5LHH9nRh9UepQD0AKFPrCnLIwgMrjijp1zO3HYHZf4/0Pk8Ns9fcFYBt OrjM3fHVKhSjNxaN/b5xYWYrIOOYXdthCYJjbQd9YCeu+F3XB+il0hbm0xBWuZd/02AO yLAjbxKIxidobK0FYCkqX8+O96gUXiGMGoDqbuoA7pOOgp64PRAhBQ7iIezK+7g7FFgU oEfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=THIyGqfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gg1-20020a17090b0a0100b0020a95eb3d4fsi2525234pjb.128.2022.10.20.02.50.19; Thu, 20 Oct 2022 02:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=THIyGqfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbiJTJTK (ORCPT + 99 others); Thu, 20 Oct 2022 05:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbiJTJTF (ORCPT ); Thu, 20 Oct 2022 05:19:05 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F731BE91F; Thu, 20 Oct 2022 02:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666257543; x=1697793543; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=tb3/jJqfV/cnFY/+vPv1Q6XXe9/cFEmryhOXD4vins4=; b=THIyGqfOVcj/2YBDI2fhe5VF3AgWTUkKeSn0nPNdeubYtqZBnP5qwGEX VEpbULzXgnbglSGtUcpELuXMd3JcTZWZxW8LKjQ8upRUKmUcM/euT9VI0 oh+wUEf8E2GQLX7gfGCbVEruaFf/CotfpTDVWbOPSYoc/wkmfiotOC5f4 nA7zQOAiOLUgkC6ors8OZuLkuv9XhTZUliGeLAI6pD2xzXlxBN073C2Bu U4AWD8cjme9Be75bvddwGcAYN0iWPbYEc9CujBJ1LV6Rdv7yggMnUjGbr ibPSMNB2YYC8xEqa+QsJ72NCwURJN7FtTv2Di8iaIn8CFl5vwsZUsR00z g==; X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="185545953" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Oct 2022 02:19:02 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 20 Oct 2022 02:19:02 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 20 Oct 2022 02:18:59 -0700 Message-ID: Subject: Re: [PATCH net-next v2 6/9] net: microchip: sparx5: Adding basic rule management in VCAP API From: Steen Hegelund To: Casper Andersson CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , Randy Dunlap , Russell King , "Wan Jiabing" , Nathan Huckleberry , , , Date: Thu, 20 Oct 2022 11:18:59 +0200 In-Reply-To: <20221020074104.qmow2fc66v4is2rk@wse-c0155> References: <20221019114215.620969-1-steen.hegelund@microchip.com> <20221019114215.620969-7-steen.hegelund@microchip.com> <20221020074104.qmow2fc66v4is2rk@wse-c0155> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2FzcGVyLAoKT24gVGh1LCAyMDIyLTEwLTIwIGF0IDA5OjQxICswMjAwLCBDYXNwZXIgQW5k ZXJzc29uIHdyb3RlOgo+IEVYVEVSTkFMIEVNQUlMOiBEbyBub3QgY2xpY2sgbGlua3Mgb3Igb3Bl biBhdHRhY2htZW50cyB1bmxlc3MgeW91IGtub3cgdGhlIGNvbnRlbnQgaXMgc2FmZQo+IAo+IE9u IDIwMjItMTAtMTkgMTM6NDIsIFN0ZWVuIEhlZ2VsdW5kIHdyb3RlOgo+ID4gKy8qIFdyaXRlIFZD QVAgY2FjaGUgY29udGVudCB0byB0aGUgVkNBUCBIVyBpbnN0YW5jZSAqLwo+ID4gK3N0YXRpYyBp bnQgdmNhcF93cml0ZV9ydWxlKHN0cnVjdCB2Y2FwX3J1bGVfaW50ZXJuYWwgKnJpKQo+ID4gK3sK PiA+ICvCoMKgwqDCoCBzdHJ1Y3QgdmNhcF9hZG1pbiAqYWRtaW4gPSByaS0+YWRtaW47Cj4gPiAr wqDCoMKgwqAgaW50IHN3X2lkeCwgZW50X2lkeC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