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 C704A41D8D for ; Mon, 27 Feb 2023 08:10:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1D5040A84; Mon, 27 Feb 2023 08:10:51 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2087.outbound.protection.outlook.com [40.107.220.87]) by mails.dpdk.org (Postfix) with ESMTP id 0768440A7D for ; Mon, 27 Feb 2023 08:10:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kks4DROvLJ5VsGmIK/yVMDOcT9DB6IpCzYJa6mdxWYOjT/WgvLN2kr70XQJ6ev+ZkJh7YvcUVJxZ+1sTho8VyaIu6rzlqkcxt6emrqu0z2vItelrAtALW3sK78BEg5dHDJ4adPwrNOemWM6mO1S98b/U6uCAYYs/6sBvrlDh6FWcREFFbNQRsrF1l6uhbGx2trvXdPgsQkG6foolq+52bn3UgR/nb4sqcoGc7yVYsqCto0gPBWgONfe/tgcQLe12UOsq9h3cPYwCbFM9si5gXAbpxJFVX1qyD8DuNNhEsiwduCVxFPdse2o5z5jBgZFFkY0sIQNBxgtj61eg+nozAA== 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=p8Ia+6EW9iC1FPm9/4/NkzZzLsTXmoQG0Tm3x2KTeUk=; b=IGmIrI1iJy2d0XFjlZ+PMVdZF06+GM1AyChq2Cn9yFn2SH1kLCbyxz/jmCuwpJCHBGQoTGRdSkdAkNKxfFb9ZAmktTENI+NaUCvl4NnKpWvymV+GWp8Bjzp3r17jZrUT2rtY4DKV08Cc86uwpjtyEjNM7xS/n3nasZPO8kFlVNALYPxSzUcRv2BqGrd5CGdQQ2O/i6M57tjf2REThN6/BhC5FuB6AwuHXnKPPaCOxTFbRtKqOWeAqQOV1qiFlRqNGDBrNa3xoFXRnkOisxc4bsv79Pkw7jUsnm+Gk83Fyf3rn5gjOzINmtym7mOKfO0ZVx4LADpmEcX2UfFZLQgGXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=huawei.com 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=p8Ia+6EW9iC1FPm9/4/NkzZzLsTXmoQG0Tm3x2KTeUk=; b=BXDtk2Oo499dR6uVoGCEGId7h+Dl4+5oqUcJo/jZoio73xnAgN8Fm5sn/NKnex/+mKNHbaspzAfxGnwGmFN1qQmB4CvOckPM8RNCGEUgSFF17xKG8l7UdXNnTRzp78WVTLP3u8JNe3kFjjevOqKAWYqFmDXjndi9cUmzbEjBgpSfDzZCfokON3++x4bX9H+QOyDK3P/ftJOceYcPD0opmrGy2uC9Wnx88Blt5PdhBRB+OijxmFfE0BPEPVbHkWQZeDZm5K93pxMT9FXjmVppEEsnmQMV5IuQy0u8FVdxRTIrOQIMAj6uyShTiFFWe3QJ+6dkR4sQv0bXTe76d7RQ0w== Received: from DS7PR06CA0035.namprd06.prod.outlook.com (2603:10b6:8:54::9) by CYYPR12MB8731.namprd12.prod.outlook.com (2603:10b6:930:ba::21) 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:10:49 +0000 Received: from DM6NAM11FT041.eop-nam11.prod.protection.outlook.com (2603:10b6:8:54:cafe::e1) by DS7PR06CA0035.outlook.office365.com (2603:10b6:8:54::9) 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:10:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT041.mail.protection.outlook.com (10.13.172.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Mon, 27 Feb 2023 07:10:48 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) 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:10:36 -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:10:33 -0800 From: Xueming Li To: Chengwen Feng CC: Dongdong Liu , dpdk stable Subject: patch 'net/hns3: declare flow rule keeping capability' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:56 +0800 Message-ID: <20230227070107.15664-88-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: DM6NAM11FT041:EE_|CYYPR12MB8731:EE_ X-MS-Office365-Filtering-Correlation-Id: e44e2c40-8313-49eb-c9b9-08db1891c0c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xWOP+2cbzZqC0wqrfOyrRikSgH4LR7rVqcFYq9FsEat5gpBbDZEKPktwuMO67X9DmsOerJdKlY0VDNm+x5qx4dkcIBxV3vIPbXIJ7ydclAxo+oafiPNvQWF5R+vuAd5h+gJopl2clhySqA7NFi2Bib/KQUBZaZUPUHSuaDFzPI7pHHmqALI2cxZ2BbWZgb6HzCeD2lhvo3cDYZC08WapypMmJ/C62NLe4inGuo0Htt0H6uKt+2xesciuuzRd3ICFiq1xMfM8+Q6L/8KwV1YUG1WZLMNEbfR+S+Kk3/+jHGdv22QhzmDLn0BtvVcFkTV/QV0RZCJvzzBZZqJ/Vsk5piuwO5fRcKNFk2s0Jo5Z8qPxr4yaTM9puHr0aKlrtvUv9eFBPPH8z0iMRcX5Ok0fOA1orIq0SP8SxNzmcC86mDL33ZBvAKsmQcb9ETeJwprPZCvu8Vftpy51W3BpF4ARiN5OsH4vGalcNNvFrPoxD8QZUpFGqDLmeX4BIwmz9bE+1Ad/IzHJOaHuZTAh+mWVzVAsNwsZXQ2iJzD1p9aSZQ4m+fwBhfWZMcC57DKPOrqw1PA8s76a1ZRATJjlJbnMfbI0ZGib1GdTG4bfdmPMtS0UqGj8OJvBNemQWvKMazUdXl9tJSisZ+7BmFmdaulfT49/o3uuTX98PEdo6Lfr+VgJbqDKZFZ4S+bhwkAxhsSIibQS+oAP8vHjqHUm0J4hlcMNqEqJ8xagSPk7fyEnkBmzqGEXe4ZwVqkGMc1JS/+yKhPltQ1qgTpTJLYzmjvdq/kwA41aqkQ39JYchrW8+IdCtWeJ8Bf12hjcctS4Na4m X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(39860400002)(376002)(396003)(451199018)(36840700001)(40470700004)(46966006)(966005)(2616005)(36756003)(82310400005)(86362001)(54906003)(2906002)(16526019)(6286002)(186003)(40460700003)(36860700001)(41300700001)(70206006)(34020700004)(5660300002)(6916009)(8676002)(8936002)(70586007)(6666004)(478600001)(53546011)(426003)(26005)(47076005)(336012)(55016003)(40480700001)(4326008)(1076003)(7696005)(7636003)(316002)(82740400003)(356005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:10:48.5269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e44e2c40-8313-49eb-c9b9-08db1891c0c9 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT041.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8731 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=5876103dd269e967abd2d0cf697fa5f5b9f8f12f Thanks. Xueming Li --- >From 5876103dd269e967abd2d0cf697fa5f5b9f8f12f Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Thu, 15 Dec 2022 01:41:41 +0000 Subject: [PATCH] net/hns3: declare flow rule keeping capability Cc: Xueming Li [ upstream commit 27fd46521517cae0f456dad850a04f18de0690f8 ] The driver supports create flow rules when device is stopped, and re-setup flow rules when restarting, so declare support RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP. The driver also supports to create indirect actions when device is stopped, and keeps the indirect actions when restarting, so declare support RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP. Signed-off-by: Chengwen Feng Acked-by: Dongdong Liu --- drivers/net/hns3/hns3_common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c index 7adc6a4972..da0a481f15 100644 --- a/drivers/net/hns3/hns3_common.c +++ b/drivers/net/hns3/hns3_common.c @@ -90,10 +90,11 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) if (hns3_dev_get_support(hw, OUTER_UDP_CKSUM)) info->tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM; + info->dev_capa = RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP | + RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP; if (hns3_dev_get_support(hw, INDEP_TXRX)) - info->dev_capa = RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP | - RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP; - info->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP; + info->dev_capa |= RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP | + RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP; if (hns3_dev_get_support(hw, PTP)) info->rx_offload_capa |= RTE_ETH_RX_OFFLOAD_TIMESTAMP; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:43.740798600 +0800 +++ 0089-net-hns3-declare-flow-rule-keeping-capability.patch 2023-02-27 14:08:40.819237000 +0800 @@ -1 +1 @@ -From 27fd46521517cae0f456dad850a04f18de0690f8 Mon Sep 17 00:00:00 2001 +From 5876103dd269e967abd2d0cf697fa5f5b9f8f12f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 27fd46521517cae0f456dad850a04f18de0690f8 ] @@ -13,2 +15,0 @@ - -Cc: stable@dpdk.org