Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1738823iog; Tue, 14 Jun 2022 12:10:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+vIve/c1LHklDhb4x7k9gZrBr9bJweoDM1MRhQwGBky0mgRrp1WIIUwmqnDP14+38krto X-Received: by 2002:a17:907:c29:b0:704:fbb:1943 with SMTP id ga41-20020a1709070c2900b007040fbb1943mr5611999ejc.486.1655233815291; Tue, 14 Jun 2022 12:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655233815; cv=none; d=google.com; s=arc-20160816; b=eogYYj+IwDw6QiiQD6wRLCAQcpO9Ovr6eRSqnfydTNRzeRNB+Jg4Nw4RbdObvL6cwT wy6CBcTBlJxYaVbBJ0rsd3yFC1VuxYltXLvwCK2mpUAmRQGrhy2p6pJDi1z6ZQ5k6M4w xrIMbLhxVM7qv3msmNsAs7UowMruWVliDR0JK3plOLKeJtXrVMCS1OmVtJlUXUvK7Lox WwbFbfhPp2hCCIaZixSJ/I6uzrHLjfwrcDMUX8J5zKs2Pz773q2Ardjf5mFIJhssayOE GakbDeIwDLOjtO/7XvP+SdgpSJvcuyVJ/ZO0Hxy7b849bnL031RADDBgtgrzLg4paee3 cqFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hIwXgtz4Rm2256K1QLIkUm8SPR9n9OIyUpIFq2qxaWk=; b=bJrtakhouwe0VHrffcTjYG87d/Z+uf6I4x0MdNOMef2gDlDDcIP1R+d/d4eTVrVGHI lFzWDS0X7Dhut3sUFVzfvssKyqGjSBkX8bRLYqD8ubMKz8ZX6Px78GpsGg/r4nTsxKsV rdJLqMdwEg+YGZBX1PVpx8xSlPi9Ezh4zCDr5m3lSjmM02kBRLA7EFphl5E9bi1KSbxj U6i2gl/E3bxPoCzwDkRH8ysIGXj7Nnk6gbC1cN25+RL99R5RIEOphwPJ3RVeQUNw/6qD FvpObJc5T2rIsPbXp4znZiUHg6gYc/9oyuewc5/+ZI4cI+MBqXkY/Ow1qRvEPfjuSF56 rPGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h+/t0Lqx"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a056402038800b0042dd024cd6csi11901905edv.485.2022.06.14.12.09.48; Tue, 14 Jun 2022 12:10:15 -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=@kernel.org header.s=k20201202 header.b="h+/t0Lqx"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351730AbiFNSYR (ORCPT + 99 others); Tue, 14 Jun 2022 14:24:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239336AbiFNSYQ (ORCPT ); Tue, 14 Jun 2022 14:24:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E0BD1CFE3; Tue, 14 Jun 2022 11:24:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EB7736179F; Tue, 14 Jun 2022 18:24:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E480C3411D; Tue, 14 Jun 2022 18:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655231054; bh=hIwXgtz4Rm2256K1QLIkUm8SPR9n9OIyUpIFq2qxaWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h+/t0LqxPpYsGNJyLqIDL/T0fPIAfNMiSZAtEuc7E3xhyRRc4t42cvlRG5V0ejxUk EYdcljJb/VoQCi/o6XreWfo0YiyLlmuX0lm4weH3qNYhDvOUFdI78UDm75rwa5wD2v ynWRG+1oVLTQoPH1fmDQWnR/91prvj8oEw+yDpeCTDpAshw/mORci3la3IWxxCzFYe GIChOT8UJUSTOqUezNG5gtoOLpLDaEra31FKsDRN03eWBBDxNLXFned7n9Yv5KvDgk +qe/Cix80mzUDcg7RYglljLbZbIRFTRH2nsNWxruX4jrua9RCVA1FNff0BsTU3FmXZ Zr6eyDUiTCWQg== Date: Tue, 14 Jun 2022 11:24:13 -0700 From: Saeed Mahameed To: Leon Romanovsky Cc: Jason Gunthorpe , Leon Romanovsky , Erez Shitrit , Eric Dumazet , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed , Yevgeny Kliteynik Subject: Re: [PATCH mlx5-next 0/3] Add ICM header-modify-pattern RDMA API Message-ID: <20220614182413.egpqoo2g3dveeudo@sx1> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 07 Jun 15:47, Leon Romanovsky wrote: >From: Leon Romanovsky > >SW steering manipulates packet's header using "modifying header" actions. >Many of these actions do the same operation, but use different data each time. >Currently we create and keep every one of these actions, which use expensive >and limited resources. > Series applied to mlx5-next >Now we introduce a new mechanism - pattern and argument, which splits >a modifying action into two parts: >1. action pattern: contains the operations to be applied on packet's header, >mainly set/add/copy of fields in the packet >2. action data/argument: contains the data to be used by each operation >in the pattern. > >This way we reuse same patterns with different arguments to create new >modifying actions, and since many actions share the same operations, we end >up creating a small number of patterns that we keep in a dedicated cache. > >These modify header patterns are implemented as new type of ICM memory, >so the following kernel patch series add the support for this new ICM type. > >Thanks >