From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DE6F41D8D for ; Mon, 27 Feb 2023 08:12:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99727410DC; Mon, 27 Feb 2023 08:12:59 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2062.outbound.protection.outlook.com [40.107.237.62]) by mails.dpdk.org (Postfix) with ESMTP id E438140ED6 for ; Mon, 27 Feb 2023 08:12:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nAjP0qVzorOYl/jXe5OPlgUUSyZ6Qw98Ls90CwG22CWz3zu+yjS5m7mSCZ6EliNwZSNTENGroZLIUfJ7l+YsYc2QbBHUfTwxRCIwK7M51xdTsWPUgvzRrQBdW7E0lJRsimi0cVvIF/jiRzMajhJrt2Mqi55Ldd+VZgURTlg4xlANE/UUyErD7m/gSr9ec6Wqs1lHZDhTprrk1FiJ5Ot79lZZVGqvhm+y51zFXEEXOmtIxGUee8e5mo3PLbJhdkHO05ZwChoaZpdLsujd74gV47ga5GelqJAi1y1L9OSNnyMMp8xVtdQIDTmhl6AknoYNYtRG6wYl+BLHgP6N4eBlWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nHrSA1A6vZUnmHAMCXlVNbc/LOZBcIyH2/rdLNJK83Y=; b=Boriat253rPbFQ/fc7hByJvy5B2/VBGue3kA+l93wUalGMWV8uqGvx9NyJrz2WWI0qAzNnSHcWx8RZJ0PtRnjIvaSuuuYvixeo1D6bP2PgRKglKe8fyC0ASCRjUVV8MDn1VhDBgjHoZt9TjPD8RCBCZuqK/WPyJPVVFDDK/7H2Tu77VV4FWFcsLLpl5xRslQNU5N77tXSj/W5d1q6LBBI9ujzDu4nTyocys3CgXbSsorjAuxdR/nFLjb7mauVtWbaUe7kwr+8W31jPjzuVWUCdlp9c1x7eDR7m0D1wMCOJgFud3z8oRHeNhfAYTGeSGVyFy4L9S6N6R6R+45afAm6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=arknetworks.am smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nHrSA1A6vZUnmHAMCXlVNbc/LOZBcIyH2/rdLNJK83Y=; b=GTxKVnE/3O6Sn5FiRsY0An5biad6k38BgHND/1tqUVvsRrD/wNQRQT95tW5LCy4/KLg89U1pLWMrZ6LmFjJpZ96umz41g9whX6AlSAqg+Bu2CrxsPumPaKVWkri4c8jjLm7UFnoSOFyI5eBzqZYPD3ShW73dvWKGVQFvs893h6diWZvOGfb4Gw+FZSGCumYq8Ulb+RCbZdo8EC/Q49k13k0E8uKaVotz5MtDYm6ppBdFtOEoOPt9TEUH/x80Vrzd3sUXqBFAe0B3q/dQfAmN0tW6mwS6OJBxbdRwW6ZXtgukNmyUEWT/u1S49/hw7+3wrZJdwfVI9HdrULDtSoHZaw== Received: from MN2PR20CA0008.namprd20.prod.outlook.com (2603:10b6:208:e8::21) by MN2PR12MB4408.namprd12.prod.outlook.com (2603:10b6:208:26c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:12:56 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:e8:cafe::b0) by MN2PR20CA0008.outlook.office365.com (2603:10b6:208:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:12:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:12:55 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:12:41 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:12:38 -0800 From: Xueming Li To: Ivan Malov CC: Andy Moreton , Viacheslav Galaktionov , Andrew Rybchenko , dpdk stable Subject: patch 'net/sfc: export pick transfer proxy callback to representors' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:00:14 +0800 Message-ID: <20230227070107.15664-106-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010206:EE_|MN2PR12MB4408:EE_ X-MS-Office365-Filtering-Correlation-Id: a79f0355-d69f-4652-f414-08db18920ca4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vc0mOSaSJzk7tOpVGN62ZIQbUmWAumCpx/lE/wH6BplcxcLwiRoivTPhcmzY9Nq/zYu/vWWAyWk6th6O2LkLsB5rUrbECkgNNO38ZfXWlj2poscsiid4uRMjaDVJ4fh+vc1s3xx6yc4fbvmPpO2bvLrltBga4L9/GmlhORixU6aurtBwzlTwUgGvUGURSFobBt79D1uhNq8TGgIZxBQyObfBTyzIHNi8uKTV5fFVmeJEet2I/0sHgsUP5sKsGOwkCdPaQ1KiRxKHGXnnS44j/dqK6lsQGdXRHuYToGtxoIQECDTlIanmXt+8r0JAlIvu5XUE+ChSFaE72+FQHs5AKGRvtJG1kUOFwa8Nocpwsb9lHt3gN/uEkVJKGeONhW/GStbJBUKfkWYMDO0NOuEdnFG9bNlw/ZfAPWoB+AEvUSm1X++wVn91jejLf/k+k/TlMoh24I5VC+QompZOBmmRDuJmouCEZvNx5PCxEvknIGCYfgqJmFGs76ou02pOSaI6lgwkFzfBMnoXUSbZ7eVqzyWRkXG3ITD+QIqTPmIgYBJEm+F44tACbRHS8Dl8j4hCASZjFCPKX8AdZszYNVTSZHVDRbldPSghSNVWfFjVHoTNN7JSpy1FllixTmgAWpBbGKpByDLH8lAIGOTyifnIil9qFRQKwz2bvX6UieMK+O2Rae+zvzO1I+0OO2bg0JyR5mCDs2lUyBu5lvEs6TmIfyqJK8Hvg63vZ1HOXomWeq9/RINsfxsgfuAs92y8uyL1Q5ByylTnkOfEt3auMxb8EPdH4V3FYKs8TvQpjQYEYSQ= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(396003)(39860400002)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(40460700003)(6286002)(186003)(16526019)(82740400003)(7636003)(316002)(356005)(8936002)(6916009)(8676002)(4326008)(41300700001)(70206006)(336012)(2906002)(5660300002)(70586007)(36860700001)(6666004)(7696005)(55016003)(40480700001)(478600001)(1076003)(426003)(26005)(53546011)(47076005)(966005)(2616005)(36756003)(54906003)(82310400005)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:12:55.7454 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a79f0355-d69f-4652-f414-08db18920ca4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4408 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=e4f7453ec1c7efacf4ae92fdae243ed9a3410840 Thanks. Xueming Li --- >From e4f7453ec1c7efacf4ae92fdae243ed9a3410840 Mon Sep 17 00:00:00 2001 From: Ivan Malov Date: Tue, 31 Jan 2023 15:08:39 +0400 Subject: [PATCH] net/sfc: export pick transfer proxy callback to representors Cc: Xueming Li [ upstream commit d5a478f3b2ba3b2e6efebf36219eaff79b52bad1 ] Currently, the "pick transfer proxy ethdev" callback is only advertised for non-representor (in example, main PF) ethdevs. That does not sit well with the original idea of this method, which is to let applications discover the privileged port to use for transfer flow management instead of any given ethdev. Applications trying to leverage this API on sfc representors receive an error and cannot configure transfer flow offloads. Fix the problem by exporting the method to representor ports. Fixes: 26706314d418 ("net/sfc: implement transfer proxy port callback") Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Viacheslav Galaktionov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/sfc_repr.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/net/sfc/sfc_repr.c b/drivers/net/sfc/sfc_repr.c index 417d0073cb..4b03b101d8 100644 --- a/drivers/net/sfc/sfc_repr.c +++ b/drivers/net/sfc/sfc_repr.c @@ -9,6 +9,8 @@ #include +#include +#include #include #include #include @@ -888,6 +890,29 @@ sfc_repr_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) return 0; } +static int +sfc_repr_flow_pick_transfer_proxy(struct rte_eth_dev *dev, + uint16_t *transfer_proxy_port, + struct rte_flow_error *error) +{ + struct sfc_repr_shared *srs = sfc_repr_shared_by_eth_dev(dev); + + return rte_flow_pick_transfer_proxy(srs->pf_port_id, + transfer_proxy_port, error); +} + +const struct rte_flow_ops sfc_repr_flow_ops = { + .pick_transfer_proxy = sfc_repr_flow_pick_transfer_proxy, +}; + +static int +sfc_repr_dev_flow_ops_get(struct rte_eth_dev *dev __rte_unused, + const struct rte_flow_ops **ops) +{ + *ops = &sfc_repr_flow_ops; + return 0; +} + static const struct eth_dev_ops sfc_repr_dev_ops = { .dev_configure = sfc_repr_dev_configure, .dev_start = sfc_repr_dev_start, @@ -901,6 +926,7 @@ static const struct eth_dev_ops sfc_repr_dev_ops = { .rx_queue_release = sfc_repr_rx_queue_release, .tx_queue_setup = sfc_repr_tx_queue_setup, .tx_queue_release = sfc_repr_tx_queue_release, + .flow_ops_get = sfc_repr_dev_flow_ops_get, }; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:44.307456100 +0800 +++ 0107-net-sfc-export-pick-transfer-proxy-callback-to-repre.patch 2023-02-27 14:08:40.849237000 +0800 @@ -1 +1 @@ -From d5a478f3b2ba3b2e6efebf36219eaff79b52bad1 Mon Sep 17 00:00:00 2001 +From e4f7453ec1c7efacf4ae92fdae243ed9a3410840 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit d5a478f3b2ba3b2e6efebf36219eaff79b52bad1 ] @@ -17 +19,0 @@ -Cc: stable@dpdk.org