Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2930073lqt; Tue, 23 Apr 2024 06:10:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8UoefggXiDBuYUAvOw4O9VASAgAPkLc/HtvYy7qaZce/Ghcfn1MZSb/JVCm5nuiON5wIRgUNMnfWduBC/h+kGpbGfsPbTVkrr0hhk2A== X-Google-Smtp-Source: AGHT+IFsbFFKzEY9i41/pYLaO3QI/xT/fN26LLwvGFyv+pRjlLEm/2U/PigkS8+JBJVw1njl1+vv X-Received: by 2002:a05:620a:2444:b0:78d:65da:87 with SMTP id h4-20020a05620a244400b0078d65da0087mr18920004qkn.59.1713877833952; Tue, 23 Apr 2024 06:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713877833; cv=pass; d=google.com; s=arc-20160816; b=orwg0kfEfMoh2Od/FcG9JF3d+vmN7ggnvBvJDEjKFeiueyQ866v3ttI8u29QR7buRI xXNxjwdP4L6XvlsrZ7vchkgpSXNKgNrNJaeurJNbcUUe3SEun53Wwv2nwvcAfT5GFoid MU1/sLYJYrwofsWvyfkyvQ4AVZcrCQOuubT1UTwA/yMr4vVN80Xv8q878yX8DtxSF11T GbGcRZkAvqoHgT8V1SkD2Cc3ErAmWF6QPugZYBvIHJ0QJF+LA057EtiCqcc/MjeiJdNA +wCxwidh4tqoflRV/yONMcH76DP2FY/96hkAe3NoV4ZLMwPctz4rG+lJM4hcRDYSb7tC cMAg== 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=j+tHAbBEYqYv+a9EJ1bO9gjgAzEg2JlIOcDinuh8vPQ=; fh=lPKURPeHEJrGdNAMGrlFP/k1w4E/dycAUNqz09swlu8=; b=N7/UunXxXaKotrWvcpO051h66sNZMWv0NjOXGKyk19q3X+X/C02PM18Mn502j4U+Jq Kd7GRoMgmyMnVOG07zm0/Ruk+9nDPutTvpHLYTf40IFSruOh9GnOredFAuxJLEaJDxTP QryauFIF9xsRFJspQs9TOknfRT8eq8Rcze4mzcLh1VnsRnugTblAe8XRBx3ykEitgSIY kBGljSov9EmMfg9hu/9AzLFmg110l7Lq/DyanRx04BqDv+wyEqoD93LH/7o4pGmM6Ls+ pgHP95bL/V0nIBgF5CRiZW8UUP27BRfFNOs70ZlpFKYt8RZth3bUIBwiKgVrpx6WS54B AqEw==; 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=uH2vRfjx; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155257-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v17-20020a05620a441100b00790679044efsi7523033qkp.3.2024.04.23.06.10.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=uH2vRfjx; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155257-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8E0731C23605 for ; Tue, 23 Apr 2024 13:10:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA5313540F; Tue, 23 Apr 2024 13:10:13 +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="uH2vRfjx" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 1BC66130AF7 for ; Tue, 23 Apr 2024 13:10:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877812; cv=none; b=OWElV0cfM+aGXuwHLnOQTJQMfo2lcNwfoPGhOjY6KwY6GjHYpGTuVQTKrapYRdiyyhH5hIDdJso1/DkEJOa7RCj5Eph7joJvWcI8Lf+pAyqLjMp4/Hrwzi9jfy13bx69Swz1ik+5l9p7+Un4hsiDr5CvtMNlrmo0zIpYW9ekf34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877812; c=relaxed/simple; bh=1P7k7RvJJNQZz4x2X7O8+TQzEs61RgczBSx5UCLsVGc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j981cgsLpXJiKRjsRCE5nVmuABEJg/0e2xNK2dlM/eU9BwfHMTilDrStREticlYeJFV0ft0dtUKW99OtjJJkXjjaXEvq13UnsguB85AlMRbXN/7FvaM+8IJhtX3pQIczuWt2bh7+7LRGvKXX8Pp65XrsnJUZz5YycEM+9kp2mWs= 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=uH2vRfjx; arc=none smtp.client-ip=209.85.208.47 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-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-56e69888a36so5810268a12.3 for ; Tue, 23 Apr 2024 06:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1713877809; x=1714482609; 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=j+tHAbBEYqYv+a9EJ1bO9gjgAzEg2JlIOcDinuh8vPQ=; b=uH2vRfjx+3uuxmus+3npUoLY+5TqgKf8AELymiaFh6YzzAPAhSudD0cBb8EsoN1bZh 5Iq+ODwY1RtaaXhlNdTkstJhUG4jGwCDdqo5I/CRKdhvIuA6OETf1gSDMsZShxzfuM8G pPmVkpdzsoL02/FnwrCCw9XpLFZN/I4xpdMp5xzdudOs1wCBdXjvzJuUWmwKdLBqw7ki zJLWpYbFqNDvgtLgvWVgHpUxghZ/dhr/ZlUfpEP6+oRBol0Bo9p2RXA8/nnMZyHlv0NC CM6SgqnMtHP27OB8SQtTSWii8YaiFey5H46dwrZr5xYMOFdAXjwZDoDrxeLb7vanMsYS iRhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713877809; x=1714482609; 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=j+tHAbBEYqYv+a9EJ1bO9gjgAzEg2JlIOcDinuh8vPQ=; b=uy7YMb9weej7UK1A8gTgQnZtGyEk55vAftzkDoD21xniXiprrecZZ3WfC+Y3OFOqnC yhGWZUFxWaS4OfTvY4txmRNUZu5+WH2hEMBmrhHo5mNN2K/FYu38EQjPlkmcuGJXLDYX GDwYkNY/wn8+zSdzl6qjrC1Gkur4y0tdHuO1n5u5VojS7J6RV3NopebCDxo95E2FpCHL +uA1X1Tm1drbx3kGuvfCi3n/SzVGOT/RcVti3bOa9yOaFQrxgi9CcNrLNd5QpthAsiUG 95rCSuDQlNnUS2J82fPphm6uRMugh/p/lPUIPnrbLyYbC/Zzej1p7Q/VRwc9h3xg3DI+ QpSg== X-Forwarded-Encrypted: i=1; AJvYcCX/r+QKUFWn3rQQ9mHFVmOiM4wl7/mUN8t2r7TurzNVhG2OxBOtBAkK8fg/K+FevZBHTnsCXehOhHWIhxL0/QEH/+RqXwMeVH2jUECZ X-Gm-Message-State: AOJu0Yy1JTK5ft9+lOu/OQ4XBu3auyKxyQ2CKXWbD6ErUl970udRrYUc dqws/WMdhvl3nbrd9Al3gqM/ElHc38/A5SRMYLXHk5QbFOt4Fy/qRSD/EGf+TDo= X-Received: by 2002:a50:d589:0:b0:56e:355d:2ece with SMTP id v9-20020a50d589000000b0056e355d2ecemr724554edi.30.1713877809234; Tue, 23 Apr 2024 06:10:09 -0700 (PDT) Received: from localhost (78-80-105-131.customers.tmcz.cz. [78.80.105.131]) by smtp.gmail.com with ESMTPSA id k4-20020a50cb84000000b005705bb48307sm6624224edi.42.2024.04.23.06.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:10:08 -0700 (PDT) Date: Tue, 23 Apr 2024 15:10:05 +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 0/9] Introduce RVU representors Message-ID: References: <20240422095401.14245-1-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-1-gakula@marvell.com> Mon, Apr 22, 2024 at 11:53:52AM CEST, gakula@marvell.com wrote: >This series adds representor support for each rvu devices. >When switchdev mode is enabled, representor netdev is registered >for each rvu device. In implementation of representor model, >one NIX HW LF with multiple SQ and RQ is reserved, where each >RQ and SQ of the LF are mapped to a representor. A loopback channel >is reserved to support packet path between representors and VFs. >CN10K silicon supports 2 types of MACs, RPM and SDP. This >patch set adds representor support for both RPM and SDP MAC >interfaces. > >- Patch 1: Refactors and exports the shared service functions. >- Patch 2: Implements basic representor driver. >- Patch 3: Add devlink support to create representor netdevs that > can be used to manage VFs. >- Patch 4: Implements basec netdev_ndo_ops. >- Patch 5: Installs tcam rules to route packets between representor and > VFs. >- Patch 6: Enables fetching VF stats via representor interface. >- Patch 7: Adds support to sync link state between representors and VFs. >- Patch 8: Enables configuring VF MTU via representor netdevs. >- Patch 9: Add representors for sdp MAC. You are missing devlink port created for each representor. Please check mlx5 for example for the implementation. git grep DEVLINK_PORT_FLAVOUR_PCI_VF