Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp623439pxf; Wed, 17 Mar 2021 11:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2kxCrfbQkxEK0Dx6y4xM1n476ns8xzhhrjyGWQfJtwjaZPKAS0Ks+ePx4ibO/29jDKJI6 X-Received: by 2002:a17:906:a443:: with SMTP id cb3mr36595909ejb.542.1616006926971; Wed, 17 Mar 2021 11:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616006926; cv=none; d=google.com; s=arc-20160816; b=qvtolH7Pk7wzizFXTdIRGreXq4FliqryAZNkaqCxXovrXbWgS1djOkobV/CDeG4yw5 LJGxQaK0WahIXo1npwIAzMR8pOPD86i0gykLlA8NBS4qJA2RWOlP4jxXwxRL76Xkdrmg lcDrZOIiyTl19M7ol1fseAlQIWPcyJqLC3cDCVmySbdxIshj+JhKyLaxj3Q7FC+mQCSx NnEqeL/bh3OfQELF9f0tf5XvXEYk7ca76vamwtcuEKWripZf+GTPJKXzkxQ6ibO39qiD hDA/imc/Sj4x0wlEGZsmsMerUPU5LWKlISdA1tyjbQrFTD4pu57DvmIFw2YLRw6liGFQ ROKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8EDRItw1kmaYM4WcqzDQ1yZRQx0YBMOJ9PopVkR9NAQ=; b=0prXtxY03nxgvIr0stpwJOIANsXEGOHGlYhsOJyUtPgJuMuuSeyihN3C0KBTLbBskA +G5ToqDFhiJ1zwXxTCsD6TShytoheu4G/8BG5pd4A2421CqQg0V2Hi0g2rBvSbhGQ1Mb GI9xAXKvtqsldwnhKHR7YRGRvW2ZAsBDJ1cUFeWuTuJJhYSk1i5qPtP6gjHwFdAPusb1 TGX9QWD+WilJBwTFz+q3ms6MF+TrgWe8/uY1PR3Zc1+seGNqfMXMpzmiPZXjmDbHMwrp YbNWKhNy2BMMcbGYIntq/04yJKt2tW8GlswnEJ28YZj9ar2ZvM91aeilAWWpo7MtBG3j 8++g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWMBQkKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si16582298ejf.255.2021.03.17.11.48.24; Wed, 17 Mar 2021 11:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWMBQkKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233056AbhCQSrO (ORCPT + 99 others); Wed, 17 Mar 2021 14:47:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:34248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233095AbhCQSrD (ORCPT ); Wed, 17 Mar 2021 14:47:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AF6964F04; Wed, 17 Mar 2021 18:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616006822; bh=kTKKadJol3g+5hcymRsUO5tuOsB1qq0XcTxzdfmjjnM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KWMBQkKHrc/rTYQZIT4lSGcEgUE/TihaneLbTvLOi1lzOGNkchUDaQK7GwaYCCUYd j1WAm1m3YW+sW2VS3fGv8kNw7p4NSp8YEptlICMnnAsBNW1C82Oon2Ee7G4AdpF5i7 5eSV5VrAr1opg/EkSYFefQlI5NMfARS4FFisIG9bDM3Iu8cZkhqQBfBQyhY6XkNQDI G8PX5RWU8YZVWAKtdLpV69I1uzROra/a+BpRk5gQdcFY2H0A5qSpedtkhPzCt/bjhJ Erw+f9qtU5TacLvX5uPt08Qmc1mpLgAeVxDVe4Lbl/+Fo3rRDSM7RKZqwYETxdaafS t9qzkD2dy5zJw== Date: Wed, 17 Mar 2021 11:47:01 -0700 From: Jakub Kicinski To: sundeep subbaraya Cc: Hariprasad Kelam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, David Miller , Sunil Kovvuri Goutham , lcherian@marvell.com, Geetha sowjanya , jerinj@marvell.com, Subbaraya Sundeep Subject: Re: [net PATCH 4/9] octeontx2-af: Remove TOS field from MKEX TX Message-ID: <20210317114701.4c0a1263@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <1615886833-71688-1-git-send-email-hkelam@marvell.com> <1615886833-71688-5-git-send-email-hkelam@marvell.com> <20210316100616.333704ad@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Mar 2021 12:07:12 +0530 sundeep subbaraya wrote: > On Tue, Mar 16, 2021 at 10:53 PM Jakub Kicinski wrote: > > > > On Tue, 16 Mar 2021 14:57:08 +0530 Hariprasad Kelam wrote: > > > From: Subbaraya Sundeep > > > > > > TOS overlaps with DMAC field in mcam search key and hence installing > > > rules for TX side are failing. Hence remove TOS field from TX profile. > > > > Could you clarify what "installing rules is failing" means? > > Return error or does not behave correctly? > > Returns error. The MKEX profile can be in a way where higher layer packet fields > can overwrite lower layer packet fields in output MCAM Key. The commit > 42006910 ("octeontx2-af: cleanup KPU config data") introduced TX TOS field and > it overwrites DMAC. AF driver return error when TX rule is installed > with DMAC as > match criteria since DMAC gets overwritten and cannot be supported. Layers from > lower to higher in our case: > LA - Ethernet > LB - VLAN > LC - IP > LD - TCP/UDP > and so on. > > We make sure there are no overlaps between layers but TOS got added by mistake. > We will elaborate the commit description and send the next version. Thank you! The longer explanation makes the error clear.