From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 93D555CDD0 for ; Thu, 25 Apr 2024 06:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714028381; cv=none; b=D9RwPMSDsG1eF8dvqC40D7OEAbpKK3JTJdhaBeuqYV1nCHuxbnqJSNQ+TwBZq+Ro2YI+ATJV9P3hcGNtMbTA9QW+mA24n68FRC/6iiMrN8jNLjS7inCvvrZtfDI7hiQPio+IzIu78o7q1GR5jskw+IdJq/7hTL7O4KKBbx7AqGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714028381; c=relaxed/simple; bh=e1vlBiYgpPvF92O4Af9KuT1S8cWMNzZQEzACGAc/4QE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PHJHcpOQSJ3aEIszcP8XCCAVJosv5kJDjt1zrkxYt9FhNGPWtZGInFnyXCwfnzYbiQJD5Dqns/F1Y3qDf1lNAKGyJgIg6FWTwNTFKesaG23jnh7IMUdkLqI4j21AeaPYYajKjEEO0hG0Dq1776lmmX4N/L4XJ5U9ho8lvYsrF2E= 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=jsgcpWFr; arc=none smtp.client-ip=209.85.128.45 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 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="jsgcpWFr" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-41b4ff362a8so1815855e9.0 for ; Wed, 24 Apr 2024 23:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1714028377; x=1714633177; 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=peNA2dsXCHbUBK91wvLD3fmzxWkuZFoJfKP535nVv64=; b=jsgcpWFrMEa6YkMAlH5ImNGm83ItBfKSOKdALMPb61zUIuihxH/EhmhRCHchdp4bQB DRE5GFHYQ7KZ09HHENzWB1q3xs+0IS3G//SoqQzLDU1yH8SWw5SVZmkF4PmKVMTWFXp0 PxVrXW7A4/JddwRwWZP0XcVbjq6zYiwF2nv1H4uuLS6N3Up00npqOgShwP3X1ScrlgoP gDnjzXqorG+dqEH+NI/dOc6BVrc2riVi2wks9HTbz0GvCerathKezYa8f6VY7rYkpEKL Jl22fAygEzo06q4OH7OsbqbgTWwcow3zVTFAZm8EgPBeo2cTLiqCCj7F1ffr/Z27i5Lc qO2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714028377; x=1714633177; 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=peNA2dsXCHbUBK91wvLD3fmzxWkuZFoJfKP535nVv64=; b=P8ELfH2b+rWHXyOCLIVyXe66QHnTE+mD6rePag6xTT9EBZsDCweHygMB2rRnP5tKhB 9iwSKxTiDrb6Y4vZWsthoNRiR5XQrnLLgxEgqgJgNjvAYlvn2RGuiqlu2i+SDS58WYi6 ACUy7WcLgRX6Vfrru4hTOChMry5cEbTVm2hJFIJ4pHjGluBIXLIlnP5kT/OIkB0c1TCm J6vW2ME8ce4RuEDyiXxnVb/VRqaQ9mC1FKf1ta+mTM37JWwiERa9EBsxexLoK/094mIk LRD4cqjIC0AgSZsaoBbanAKKLvjrDUO7LPSQuQvnx4dEUv7eehjOGVur7quH5cLYHzZl L7cQ== X-Forwarded-Encrypted: i=1; AJvYcCVnMNFtHUwIufQqE+Q09RgDsBDTouqqrlCA+uWPLlPRo3LHKS09RVR7qlhiAODBVsqL9Z5mgUsGt3gaJhksXHk57A7HnIVa X-Gm-Message-State: AOJu0YyViMLen044KpusMz2bq/0MPSKncV5ayuQoQuXbknONqeXg99E0 +vwTerK7w0WqBBo3H7cSm4DdNvt29B3DZfr0HeogBqkARPSF8jzcrcx6t3y6KUHolnJt5yxqIYT S X-Google-Smtp-Source: AGHT+IGr1zr4QKQl7DWg38CUYJnl+aOHDuzzAoVNuUJ8bzBpBTf+6ltkHS4meFQNnnEm0meI8FWDAw== X-Received: by 2002:a5d:525c:0:b0:34a:beb3:f6dc with SMTP id k28-20020a5d525c000000b0034abeb3f6dcmr4650743wrc.2.1714028376567; Wed, 24 Apr 2024 23:59:36 -0700 (PDT) Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id a4-20020a170906368400b00a4e48e52ecbsm9123739ejc.198.2024.04.24.23.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:59:35 -0700 (PDT) Date: Thu, 25 Apr 2024 08:59:31 +0200 From: Jiri Pirko To: Sunil Kovvuri Goutham Cc: Geethasowjanya Akula , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "davem@davemloft.net" , "pabeni@redhat.com" , "edumazet@google.com" , Subbaraya Sundeep Bhatta , Hariprasad Kelam 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: netdev@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: Thu, Apr 25, 2024 at 08:01:47AM CEST, sgoutham@marvell.com wrote: > > >> -----Original Message----- >> From: Jiri Pirko >> Sent: Tuesday, April 23, 2024 6:39 PM >> To: Geethasowjanya Akula >> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; kuba@kernel.org; >> davem@davemloft.net; pabeni@redhat.com; edumazet@google.com; Sunil >> Kovvuri Goutham ; Subbaraya Sundeep Bhatta >> ; Hariprasad Kelam >> Subject: [EXTERNAL] Re: [net-next PATCH v2 5/9] octeontx2-af: Add packet >> path between representor and VF >> >> 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. > >In our HW, there is no in-built switch which will forward pkts between representee and representor. >When representor is put under a bridge and pkts needs to be sent to representee, then pkts from >representor are sent on a HW internal loopback channel, which again will be punted to ingress >pkt parser. Now the rules that this patch installs are the MCAM filters/rules which will match against >these pkts and forward them to representee. > >To be more clear the rules that this patch installs are for basic representor <-=> representee path >similar to Tun/TAP between VM and Host. Now for any further offloads (eg: L2 or ConnTrk) >user will have to install explicit rules via TC filters. Okay, makes sense. > >Thanks, >Sunil. > > >