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 DC542A0507; Wed, 27 Apr 2022 10:38:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7861440E78; Wed, 27 Apr 2022 10:38:03 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2093.outbound.protection.outlook.com [40.107.93.93]) by mails.dpdk.org (Postfix) with ESMTP id 2082C40691 for ; Wed, 27 Apr 2022 10:38:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RngoeUcusG6J4LrChdSSpxheFbWeoZawj7A1c9mOcu/ZAXxQbBv3dYoZxQj1mASSZwPZjSTYg7I4FHDle8uqn9sUPBPY8DXj0l8BFLLeFVtPKHgdrDG6aEWnUKXLb9TqcRoFXeqhG0nNlnon1XV+EC8Mgjw8oq0h/4EqOqUcvMDfQxjRa0PlSfxkSSmtgnSOpJL7UVdO1o0qCoS8a8/L7FQ2qS1KCo2XLa55MxOrmpg0HETvO9lPSQBM7yUOpjrHDXoVXxuURTd1BgReO/+Cjyv61srwnCaYkGVthoSjswwKd+NZoahb7yT2GrAvBpAcMBnxwydvk9L4LHuCEqYKQw== 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=/jhF40rxP01si/N7864yFOWaB1qay3wjCZq1ct6VUdQ=; b=LeLvgEX0/wgiaNN7n9JUNMs+oT7MpWfB4Sf77EwfgDJjW07kB17/dYsjoLee3y7dm88zJn17tPKXcIRXFCRrrRqg1MrTK3a8T9LM0wJpdckFQNe5IvX+izSBPbMG73R1x0QIvu/X3dJ2bvu6RuZ3riWth5mG/vjVmevYilIfCWFUZW6v9ER2WcRBiyavf7Is1zp5wLAvos30h0PSfIGzuiNWCvBHO9v56BX0nzSxDu4Pt7/J8yjgLHUi8JZUdS/zVbQOp9rYu58pfJTPYfK2iPgt/DuP1JBHOPXKVhyXJo3ErAngv809KMjbBXIx74jgLbkfyHksNEHrIgTypd5nRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/jhF40rxP01si/N7864yFOWaB1qay3wjCZq1ct6VUdQ=; b=QGi04JjwMnE15tZeH+TuQaw7W2nUqjU8Qsr0H7mvLp/n+799bJz7bgkWN80c6VudlZN8oSb0yyoXXumiMzrDwdCJBpQG3S7fhRJTXjjo/0bB4D+Z4FthLgyVkUw+Nob/1rYFrEIMga2iO2+Nq05KQqMvI4As2itPPeQwbWB/ja4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from DM6PR13MB4431.namprd13.prod.outlook.com (2603:10b6:5:1bb::21) by DM5PR13MB1418.namprd13.prod.outlook.com (2603:10b6:3:126::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Wed, 27 Apr 2022 08:38:00 +0000 Received: from DM6PR13MB4431.namprd13.prod.outlook.com ([fe80::5d58:265b:1ec7:6203]) by DM6PR13MB4431.namprd13.prod.outlook.com ([fe80::5d58:265b:1ec7:6203%9]) with mapi id 15.20.5206.013; Wed, 27 Apr 2022 08:38:00 +0000 Date: Wed, 27 Apr 2022 10:37:53 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: dev@dpdk.org, Ferruh Yigit Cc: Louis Peens , Chaoyong He , Richard Donkin , Walter Heymans Subject: Re: [PATCH v2] net/nfp: update how MAX MTU is read Message-ID: References: <20220420134638.24010-1-walter.heymans@corigine.com> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220420134638.24010-1-walter.heymans@corigine.com> X-ClientProxiedBy: GV3P280CA0086.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::15) To DM6PR13MB4431.namprd13.prod.outlook.com (2603:10b6:5:1bb::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aaa6a197-f873-49e1-71bd-08da28293c7d X-MS-TrafficTypeDiagnostic: DM5PR13MB1418:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: INhFyz/D5P2NDkrY1dE12tbeOGu4OnI2KO/wOgo0VUPzty9n+HuNYEhmw6amQ3RuPopa99d3Qhr4ZVmDbadKR9ET0A/Eb+O15b30xm3n8BJjDJgqYZUqWlWYL8PPPSR8WbJM4XRiyWfSN7Fu7yHo7ZxYlVgRUJanSzd0IqHb0x/R72fg+7nOWRAezy0137CkS/ZZ/M0rqwlKzsxGAuhsg1WKzc0j+9c+Xpsu4oF0GP6FOuHdRoesrfeRn75AHkItmLUY4zVX75W6zvG6bsPTJQzbvRycm18fJJ7kTd9k9zZ1SW1OkHqtFGI6+5gDreZtIxsNIGXCisJa6le4KkYHnxuJB6sAgYzC+BTf16AC/qb+fkNJmqovhQYHT1Bm5rJkg3C0p4ex4UPNfxRQTsEmJHZGvFphII//dOtLRYqYmoTQLkAGfUKRf/G8fLj0dw7O9CEK0qKjo6zOUQ9XWcFtnGSD+KWBdof4X4hCd6mAp/vyDl/SIx4tJIBxxxmRpTTcbbUUNTUTWxQzMqqYMXkU6ZP8bOLscoz9kRiitYeT2Vm8OV4Q3l0rcq87Ncgl8nTcs9EjZx/1qVTJVnd1o7UAhfHZTqBr97hlm4+ORO5NLMQQ/FlPuip/3ooecMzN2SgOiEEDLLoISrHEx/DjBNshvlzcxduA1JqI/XDeo7QopMcDUL2UwZQA4sE7vR9jLbSCKFNp9+0esWlUC66Y3zMNYPHmkp5qPzPiDpXXh/gAbrjBm/aAw2UmHLVWv6nwYHqqPeyLqBnxJ/QWp5r411y16c9BVcil0ksK9s3AUw5w0MU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR13MB4431.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(376002)(396003)(366004)(136003)(39830400003)(346002)(38100700002)(38350700002)(6916009)(15650500001)(6486002)(966005)(508600001)(54906003)(52116002)(316002)(6666004)(6512007)(2906002)(9686003)(55236004)(53546011)(5660300002)(26005)(6506007)(83380400001)(86362001)(66574015)(8936002)(186003)(66946007)(4326008)(66556008)(66476007)(107886003)(8676002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?8u962Aw/Im3aCINP6ipBUt6+Eh11wQAsvui0gZSwudCOZkDIGcgCKb1vzY?= =?iso-8859-1?Q?0dX6ZsMd4FPxy7u54cRGWey+NADgCf3aIcMfoPd1n2Ff0Enj0SF44iLItX?= =?iso-8859-1?Q?mDZYNzge77kBgHTKm8jygATmrmR2xtM+w/WvYSdG7pqW+Tm13JiZpdR2rv?= =?iso-8859-1?Q?+/LPomEJD1F9onPU51iILBaCJQ2OVqOXx3WJVHsHb+mFprnRdgRvCqw17A?= =?iso-8859-1?Q?UQPkXWW6TtqeiW97UM8i3aXl92EU8xPYMQJI1/vRMZ3phWQrLwOsy01CgN?= =?iso-8859-1?Q?SA5ymR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c4?= =?iso-8859-1?Q?OJsb8EcnE1tOY/UqQvdIvcHJjx92pFQ1U1mRVouzi7gY1A9Woed0UlKzmf?= =?iso-8859-1?Q?WOR7LM8acHo5f7uNjUW9e/Xkk1nhzgqPlnerayducjEXbNSm9K23+Jf+vj?= =?iso-8859-1?Q?KU6qyPd4AJ62/RED6lM8QCQidYd4fnzqXVI6G3OE0JaBcwpP2uNmv6GFaG?= =?iso-8859-1?Q?HodEAuK9H1xTprQoklPcUBIoUsHmc30Evp787XIRTGEqicZsKnmh2SP6UX?= =?iso-8859-1?Q?yihSDzL23x39e6HIWKM6xA3jCfv7yfkc9bw0gKIkOl5JGLddNMP//+11cB?= =?iso-8859-1?Q?X9BB2nGkP32YCguvhxcO9yedRdCSj8W4t0nlYorYcRmfQZ58lxw/uwCofZ?= =?iso-8859-1?Q?ZWS/L1mIG7UPr5v1ek7qPPPacrUTgNFuFf/u4zTO5UQnSSQTi/rae5/lNP?= =?iso-8859-1?Q?PNgdPpzgAMEiaim5Oym3UThmDcSfNd1uHDItPEr2oAl656cP4mRMXLy3u6?= =?iso-8859-1?Q?fh/kVxH27vxN5wENQMTaAP3ErKsnoFppeXtARqUQp4UxEDTYA4ti7n2PWz?= =?iso-8859-1?Q?eyaqER/zx5SVvY2Gw0ooItIW+r6e6h4cR6o5U5GIrAqSDooGRmvhG+oGAM?= =?iso-8859-1?Q?gvW5ho9QYEIB/BsMfny2ERj/LgaeUflQygLv8Kkaxnm6J+KIFANt?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: aaa6a197-f873-49e1-71bd-08da28293c7d X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB4431.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2022 08:38:00.1220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Kyg5PG9r4/PGmeBwh5xhQZhb8P+OqYUMDHt8NkPSlUaHuXbSCaEhVJzWSFL0GuKSSPif7VOBitdon9m4XdEF8aL5qZFHg6zQ5EyR8bdC9SE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR13MB1418 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hello, I have a question about the Checks that ran on this patch in patchwork [1]. It appears the job ci/iol-x86_64-compile-testing, dpdk_mingw64_compile have failed on a Windows Server 2019 build. But the logs from the job appears to be incomplete as it contains only 19 lines of output and stops without an error in the configuration part of meson. The failure is only flagged as a warning and not as an error in patchwork, is it it possible that the job in question fails to capture all output or that it fails to complete sometimes? What can we do to on our end to remedy this? My concern is that that the patch is blocked due to the warning and I'm unclear on how move forward, sorry if the case is that I'm just impatient. 1. https://patchwork.dpdk.org/project/dpdk/patch/20220420134638.24010-1-walter.heymans@corigine.com/ On 2022-04-20 15:46:39 +0200, Walter Heymans wrote: > The 'max_rx_pktlen' value was previously read from hardware, which was > set by the running firmware. This caused confusion due to different > meanings of 'MAX_MTU'. This patch updates the 'max_rx_pktlen' to the > maximum value that the NFP NIC can support. The 'max_mtu' value that is > read from hardware, is assigned to the 'dev_info->max_mtu' variable. > > If more layer 2 metadata must be used, the firmware can be updated to > report a smaller 'max_mtu' value. > > The constant defined for NFP_FRAME_SIZE_MAX is derived for the maximum > supported buffer size of 10240, minus 136 bytes that is reserved by the > hardware and another 56 bytes reserved for expansion in firmware. This > results in a usable maximum packet length of 10048 bytes. > > Signed-off-by: Walter Heymans > Signed-off-by: Niklas Söderlund > Reviewed-by: Louis Peens > Reviewed-by: Chaoyong He > Reviewed-by: Richard Donkin > --- > drivers/net/nfp/nfp_common.c | 11 ++++++++++- > drivers/net/nfp/nfp_common.h | 3 +++ > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/nfp/nfp_common.c b/drivers/net/nfp/nfp_common.c > index b26770dbfb..52fbda1a79 100644 > --- a/drivers/net/nfp/nfp_common.c > +++ b/drivers/net/nfp/nfp_common.c > @@ -692,7 +692,16 @@ nfp_net_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) > dev_info->max_rx_queues = (uint16_t)hw->max_rx_queues; > dev_info->max_tx_queues = (uint16_t)hw->max_tx_queues; > dev_info->min_rx_bufsize = RTE_ETHER_MIN_MTU; > - dev_info->max_rx_pktlen = hw->max_mtu; > + /* > + * The maximum rx packet length (max_rx_pktlen) is set to the > + * maximum supported frame size that the NFP can handle. This > + * includes layer 2 headers, CRC and other metadata that can > + * optionally be used. > + * The maximum layer 3 MTU (max_mtu) is read from hardware, > + * which was set by the firmware loaded onto the card. > + */ > + dev_info->max_rx_pktlen = NFP_FRAME_SIZE_MAX; > + dev_info->max_mtu = hw->max_mtu; > /* Next should change when PF support is implemented */ > dev_info->max_mac_addrs = 1; > > diff --git a/drivers/net/nfp/nfp_common.h b/drivers/net/nfp/nfp_common.h > index 8b35fa119c..8db5ec23f8 100644 > --- a/drivers/net/nfp/nfp_common.h > +++ b/drivers/net/nfp/nfp_common.h > @@ -98,6 +98,9 @@ struct nfp_net_adapter; > /* Number of supported physical ports */ > #define NFP_MAX_PHYPORTS 12 > > +/* Maximum supported NFP frame size (MTU + layer 2 headers) */ > +#define NFP_FRAME_SIZE_MAX 10048 > + > #include > #include > > -- > 2.25.1 > -- Kind Regards, Niklas Söderlund