Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3030386lqt; Tue, 23 Apr 2024 08:33:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWupKBb/ZqmR9J+OsjiQvhCmRalIQiwSxy3l0wh/HbC3nl53/GOgRRtYXHRKkS58ORmByJFC23FmBoRJ4LEv/tlxyOE711Wvcd9zB+UjA== X-Google-Smtp-Source: AGHT+IHEgq8+YtuQ1lcF77ZxhaYwmUZHU8yQbodIsI70KuyfD+0sHyhbejheE1+8b9qicLoXdPn7 X-Received: by 2002:a05:6300:8981:b0:1aa:8c0d:bce3 with SMTP id jd1-20020a056300898100b001aa8c0dbce3mr11907595pzc.32.1713886410763; Tue, 23 Apr 2024 08:33:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713886410; cv=pass; d=google.com; s=arc-20160816; b=QxgppezmwoCXttjLR/ne1Jc/Q1r591SUrxErrlwm7W5eCxY8hiX0YeMia98Cj8E3gw +FSTxpCzxhV87GiZN/6mXds1QjmfTkhccwY0pT/BPlKjwzn2CCphh9Gtjj2cAgzKiSJN WizH4iL2eVityA7sIM85YUtH5AxxEgUrdWRc0eGrW0iH7G3UwWC9NiGda6KZRlrOyMKv otXqxE2htP+aTQlsV0QqVuFNn/TclcpuB4FguLeyDUP03CY9ZHLPm6hXUMGD+HYDI8ar vin3m5MG2g2V5Is1AFnebfoGxgIzrqn5S14VNZDf07tgvZHcDIBE6cAsuIazbK1JizKt Gn8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gNo0LmWOPqhVNl+jxyixW/6LiY/Ep/Jo0UKGJTcDgQ8=; fh=Hyuak7+XReJLlWf4NQozcI4RJbuanGbQMJBP8y2u4Jw=; b=0rrw0fXvc3UHn/mn9iADmOgmwVeZLx1GebEnMRE68O4fcr7UnJpfxIw9JNI+/sKPa8 mNQ+cm0mQrRtwZ/E19uH/Xos0TFaJRvmk0XIRdG5a+moEsfkUSWO5f+isNTbfKcU50sh QuFviKM4fuUrVzDipK8e2jMo1vmtb8j0e4dXvdhJFPBz2Ey8Zhb8me4ywaxozjcE3Vlr THpgM5SzvUVaxzP3VSX9xUbUTXu/wF2D2xIpAXbcsZyMmGWx2olO3WUBnxPqUH8DUR8k fruF8MKf5IfNNmK4fza8I+75V3H0hhPb+F+W32TYaPgFNEVjWY+3S54hYcAqfgAC9yoa yfSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=A+JgPx5+; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155256-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155256-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id hq14-20020a056a00680e00b006ed89d1cc23si9520794pfb.356.2024.04.23.08.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 08:33:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155256-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=A+JgPx5+; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155256-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155256-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4C00228A083 for ; Tue, 23 Apr 2024 13:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF5E213775B; Tue, 23 Apr 2024 13:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="A+JgPx5+" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 8CB05131BBD for ; Tue, 23 Apr 2024 13:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877748; cv=none; b=trR/LTyV7hrWXmaqpU6VGZTfj2ypKLQ5uRV1ed7MQmEWRy9bjgEF6IOpxtMp55GSXAivDEORa5bziv93ey6C1GD5qvb5z/ZqfbkzdOT+4OeHctOSqBI3dQXyAx2lGs64FUizH20f6FpyveiUViweso+3sEvmVfrdG36CjKG13MA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877748; c=relaxed/simple; bh=gNo0LmWOPqhVNl+jxyixW/6LiY/Ep/Jo0UKGJTcDgQ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BVfKK8Lq2KDTXg3VSaVc+8X8yukNUotWMHtQbOm7pHohMqaff8PGc3qhroI+rVNZYqYEnJ/RJXt5WVdgAeR+zFlDQu8MsdL2ADYUn2qceuiVrABgyxl4RSBwK15Fw61QlDsG8IgOCJLDGKvLdyEBu8dn+EjQ4CGReFwH42GjirA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=A+JgPx5+; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a55b3d57277so287812966b.2 for ; Tue, 23 Apr 2024 06:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1713877745; x=1714482545; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gNo0LmWOPqhVNl+jxyixW/6LiY/Ep/Jo0UKGJTcDgQ8=; b=A+JgPx5+gyTD2VqSgk8ViAqsshU8AlkVMZC7I5kazpSN766d5fuTboZPIqDBRT4Kxd 5KAhPrtKdX/DqU/RTmZ3dBZY9qT4hMTpta5qun2ve5xsfS4Q9aSC0AOBXQ+nEybNyfbT djF8n+ExG7TqeKe5gxoHILUYQkk/6ninTY+dCh6951HOR2z5oeocRX/XBWeoFzTuwXfm g1NPjt/aa0uCTwv7qZmehROnSq5CmpLgUN4ZMuhBtbtyPVAFMTAy74rtb0rJGdFrruEl KEuNU9mwW7q/LbJH9YF6PTIWW36kdHPowdbcyAc3U+RhvxzFXgztcX+k1GDk1k+f3loJ JHWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713877745; x=1714482545; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gNo0LmWOPqhVNl+jxyixW/6LiY/Ep/Jo0UKGJTcDgQ8=; b=pdgh3b4vNVx1gztQvfHQAJoPMZtN+UXcG2ZQsw39u2DwB+4HDvaN+oMzY1LhKMUwwp TlnDXOqlIO0pA5Yj8Ruc821pvBTzE92aThpIsN6RMNjpSBhHhBEFib0NwiG04cmvHtnO 3B8JDVmlZecdynWwxdoWw8VuMIRgBk590RzEKwJepDC0eDnxQUXKpuyMm9/2Td5byh7Y YxLrwnKSwIVa2BcBY5OZapFNISrYuYO3Nre1ma/4PPlAp2+ceJ8ASvfuSlVf5maSHfwl I1n+RQKsm39xqjR4TPJ8NWCtUf7BLHhJ1xwIIfh8Cmo3ZmsRdY39dxficon1/52uteVW PUDQ== X-Forwarded-Encrypted: i=1; AJvYcCUVKHzO1Qyhs3QRkOoWHijBQjmXHFiyLn0dr7cmwqPrNfIwFWVrMGa7n9/oWYR4GD68CBADhbwZNl3awqvZ8Y2fkLJ6gbqV5kkGA3Md X-Gm-Message-State: AOJu0YzJPtKmXc+U6xkPF7+Gco6gZhrk6OCwS27HLt4qYy1wSOlJvg60 HH4JwrxcXPmn24WCpZfXF+83f1WTXcn0SamkgYfnxTBxqKt/Iaa64O2b5lnC2c4= X-Received: by 2002:a17:907:7242:b0:a55:b2bf:2be8 with SMTP id ds2-20020a170907724200b00a55b2bf2be8mr5638170ejc.56.1713877744498; Tue, 23 Apr 2024 06:09:04 -0700 (PDT) Received: from localhost (78-80-105-131.customers.tmcz.cz. [78.80.105.131]) by smtp.gmail.com with ESMTPSA id qu20-20020a170907111400b00a5242ec4573sm7004707ejb.29.2024.04.23.06.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:09:03 -0700 (PDT) Date: Tue, 23 Apr 2024 15:09:02 +0200 From: Jiri Pirko To: Geetha sowjanya Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, sgoutham@marvell.com, sbhatta@marvell.com, hkelam@marvell.com Subject: Re: [net-next PATCH v2 5/9] octeontx2-af: Add packet path between representor and VF Message-ID: References: <20240422095401.14245-1-gakula@marvell.com> <20240422095401.14245-6-gakula@marvell.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240422095401.14245-6-gakula@marvell.com> Mon, Apr 22, 2024 at 11:53:57AM CEST, gakula@marvell.com wrote: >This patch installs tcam rules to stree traffic representors >and VF when swicthdev mode is set. To support this a HW loopback >channel is reserved. Through this channel packet are routed >between representor and VFs. "ESW_CFG" mbox is defined to >notify AF for installing rules. This sounds very wrong. In switchdev mode, there is no implicit packet forwarding. User configures that, either by setting up TC filters to match/forward packets, putting representors in a bridge, etc. Basically the driver offloads whatever configuration on representors the user does, in case it supports it. Please make sure you follow that.