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 18522A0A0E for ; Mon, 10 May 2021 18:04:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 126C74003E; Mon, 10 May 2021 18:04:04 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2057.outbound.protection.outlook.com [40.107.223.57]) by mails.dpdk.org (Postfix) with ESMTP id 705FC410E3 for ; Mon, 10 May 2021 18:04:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SmPZW4C7yDM7komCQst0oZHGe0sW+2DLc8IRaIrQe1B5cDr6CJEgrF8TZWQFpz1yIa5+MJxZxkK33Yz02ySSm4CpMM0hFyNiZj4TvcZeLlm5mwKElYPalxOxAmbNZguWyHe4v0ZbgMDjCuoGJzZHB9r34BcQfaNjER2mJMxhjPMc5+bL6LpbLL6d5H6KVQIiKuDtg6ej0Ggw2izjz8attJdCamHlx6vpo1QmLPMAZm9b/w3jo0aeCYTL/+6+wvj3WxAlPmClikhed8WeY3s1pODP0T5J/C7+VFBNhMGBJ2ETAQ8oig4K58g2MQcgmkUn/FYnfDRgx6Ng1APh0XoecA== 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-SenderADCheck; bh=1iIjileAKPc4w9oLc0OpHHns9KiVwhQdhyvOkhpRJsM=; b=I5SadMjfh+rBc+TNJkL0LkmWEktGyNRwygGU0zYEnzzWS2opakAbDgS8z+iTJhVAkdpAvFr6pFMlMGEwaK3q5CE+TzMzEuTmf2mNXFjBQRjGJkGiUp4Kz58tRCw5SYcyRewxmle36pqXAcbSKQBn1zXZUu+mo3nKMLCjL74/u+y9vlXNklKaSVIG8SUB4KKQnkJ0VmviOSDcUeH+FUrFZyneh8kpHID/Cvzw9VdCpA/kmxx22N1Hvcp7KJcfBQjk/XXZMTEfb4jXfSEqQZ6BpvO95a4kSwEqCEgXugYofZWkqkga305dLQjFgj+dM6jrhYPRLRuNpsDJ+5e6IOJYpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=u256.net smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=1iIjileAKPc4w9oLc0OpHHns9KiVwhQdhyvOkhpRJsM=; b=QwsABaUA20PvpBrLcHbhzzi0LYx+5rAl7EZ86usCNedLHhXmjCiTtRFBNib+8KFk9aY5A80lIuQFwiq4HSu7kpzS8uorsSFKekrMisafN8Ypnw8tinPPZ6w6/P3IBwlObgoHYuWVteZetETa9FMrWliO5w/hSPoCSKtv9UB7TMD2BXH1YgnrJFFM02XqdkSFgxOKBM4fuzG/1UxmXbpNG+CZpsiSAXEwwZ37GxOUwnmM4aqmWrdW70jpJKzUVr0oHZaJHOdW7bBcEQ1DxkvFIgOngUk51cEDMCdP1lykEVCj3YdaAXn3sRr/xjVuFx43P6xySZlxcpMb714wPCqaMg== Received: from BN6PR1201CA0003.namprd12.prod.outlook.com (2603:10b6:405:4c::13) by DM6PR12MB3482.namprd12.prod.outlook.com (2603:10b6:5:3d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Mon, 10 May 2021 16:04:02 +0000 Received: from BN8NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:405:4c:cafe::27) by BN6PR1201CA0003.outlook.office365.com (2603:10b6:405:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:04:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; u256.net; dkim=none (message not signed) header.d=none;u256.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT031.mail.protection.outlook.com (10.13.177.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:04:01 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:03:59 +0000 From: Xueming Li To: Andrew Rybchenko CC: Luca Boccassi , Gaetan Rivet , dpdk stable Date: Mon, 10 May 2021 23:59:16 +0800 Message-ID: <20210510160258.30982-7-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 137742dd-04f1-4cdf-b0b9-08d913cd3a86 X-MS-TrafficTypeDiagnostic: DM6PR12MB3482: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BCXuvyiRUV6QpZEJBwfCKCrfxH+PlZookqceBnaY8b4BsnEvc2+vgUHvEI0NZvqSx3mIpfPFfWQB7ieGHjzgsm2Ll1xUsDOc7SEwaJ7peqR7pcxB1W95wFkPoDD2nPvFs+NpvtGANYGxRPHNDR6CgfmPVDZSgmLGm8kc4TN8zE21Oz9fX9nlkZ1/vl9Z8sHTTjVYdJA4GIIqCb+JIi8Epiclm5yqU/RycLEtDKWkEwK94GqPQdDvUH/NU8J1GpSgLxs7cnfT3aIGp5svPFjApIQMz2IzBJGwmEkGpJhTcB/p36irg7xwR3DkROnVh1nAr8bAqQ4FxYRsPElsp+Gzu1pt9znyBxAx39amFL9JmvvFcRi5S5lj9tSjm1b+hMS5t3gtyako82uR9Zcjnjmm7jMgVOn2EPYT4NIUM2Qbrr2JA34JYy2Vh4PT/ae0BJ/oGMtE3Qp6rll4XAQ3oTKFYCcH1A0G8gk59LHf/MCQ4Plq92PENvfXJ6ZmhGm+k91aE3kcrtXigG1lfUUTZfNyEpZgx8eIYC5F5g33pAf17+n+iCivNMupZswQYB8IVxDQ0f11Vs0pCwliMdkzUdutYAT32g1G3v1voUrnMzaVg2XgC3cZeM0m4AXXFQxirEzMPTeFRgOLadUR0unM+neVSR7qIyGlAUnIoKnx9OyMXre3AnntpjFtx2/7ljekZ+LxwcGrwWrX/fz36bNNzGIItjAlREj5lJ9dJanaf32cuwo= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(346002)(39860400002)(136003)(376002)(46966006)(36840700001)(82740400003)(47076005)(16526019)(186003)(54906003)(7696005)(6286002)(36756003)(5660300002)(86362001)(966005)(6666004)(316002)(26005)(478600001)(36906005)(8676002)(70206006)(70586007)(2906002)(8936002)(6916009)(426003)(36860700001)(53546011)(55016002)(356005)(7636003)(82310400003)(1076003)(4326008)(2616005)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:04:01.9065 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 137742dd-04f1-4cdf-b0b9-08d913cd3a86 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3482 Subject: [dpdk-stable] patch 'net/failsafe: report minimum and maximum MTU' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.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 05/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/7fe1e5cdb90fef782d2752ba1992edaf65fc49f4 Thanks. Xueming Li --- >From 7fe1e5cdb90fef782d2752ba1992edaf65fc49f4 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Tue, 22 Dec 2020 11:51:49 +0300 Subject: [PATCH] net/failsafe: report minimum and maximum MTU Cc: Luca Boccassi [ upstream commit c0396a48b526eb3d38c941a7e7d63d360a789d16 ] Take minimum and maximum MTU values for subdevices and report maximum of minimums and minimum of maximums. Fixes: ad97ceece12c ("ethdev: add min/max MTU to device info") Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet --- drivers/net/failsafe/failsafe_ops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c index 9946b696f3..c9c38258a9 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -1095,6 +1095,8 @@ static void fs_dev_merge_info(struct rte_eth_dev_info *info, const struct rte_eth_dev_info *sinfo) { + info->min_mtu = RTE_MAX(info->min_mtu, sinfo->min_mtu); + info->max_mtu = RTE_MIN(info->max_mtu, sinfo->max_mtu); info->max_rx_pktlen = RTE_MIN(info->max_rx_pktlen, sinfo->max_rx_pktlen); info->max_rx_queues = RTE_MIN(info->max_rx_queues, sinfo->max_rx_queues); info->max_tx_queues = RTE_MIN(info->max_tx_queues, sinfo->max_tx_queues); @@ -1163,6 +1165,8 @@ fs_dev_infos_get(struct rte_eth_dev *dev, int ret; /* Use maximum upper bounds by default */ + infos->min_mtu = RTE_ETHER_MIN_MTU; + infos->max_mtu = UINT16_MAX; infos->max_rx_pktlen = UINT32_MAX; infos->max_rx_queues = RTE_MAX_QUEUES_PER_PORT; infos->max_tx_queues = RTE_MAX_QUEUES_PER_PORT; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:26.924478600 +0800 +++ 0008-net-failsafe-report-minimum-and-maximum-MTU.patch 2021-05-10 23:59:26.310000000 +0800 @@ -1 +1 @@ -From c0396a48b526eb3d38c941a7e7d63d360a789d16 Mon Sep 17 00:00:00 2001 +From 7fe1e5cdb90fef782d2752ba1992edaf65fc49f4 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit c0396a48b526eb3d38c941a7e7d63d360a789d16 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 966cfd2dba..1343777d61 100644 +index 9946b696f3..c9c38258a9 100644