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 7D03441BAE for ; Thu, 2 Feb 2023 14:24:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70A9E42FD8; Thu, 2 Feb 2023 14:24:31 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6171D4014F for ; Thu, 2 Feb 2023 14:24:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675344268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=D0wo/+YLtqYIC+76YoLZNIoNufK33aRCGv9mKF35TE0=; b=I7GzqRN2C1p5kmRtodNgYWIk6Xk0ksJ2FOunIXb6Yazb/JifRR2vmnNFkQd2G/BY/fy7Qn 2+lefh7SupFPA6PEL9EewqSM1iFD7FZhm5RUOmg4uFkuCw/QZicMbg53JkxR/s43yhvKw3 5BIzDkQRM9Hbb3I9GGaSNWla95YOb3c= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-180-bwagujSTPGSRWk32JdLwQg-1; Thu, 02 Feb 2023 08:24:26 -0500 X-MC-Unique: bwagujSTPGSRWk32JdLwQg-1 Received: by mail-pg1-f200.google.com with SMTP id j9-20020a654d49000000b004f0bf9613fbso1002342pgt.20 for ; Thu, 02 Feb 2023 05:24:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D0wo/+YLtqYIC+76YoLZNIoNufK33aRCGv9mKF35TE0=; b=6iUVpsjOuTtGW1wGBnawXixbhLGYBNwpsg7O4b/ffEGFXg82U2x8xJfv74+vOP7+ex 4dwCVfVGNsjYtOQKRp1KbyT01gj6DsxpTyWgKWMauxrjAreH1E25cr7Wf4+d6ij4h3/C ZY8/xbUCuJj+Z6dnEpCFWtGQCwAjmg0pP3uf0A6KQXomxj3QYzPyZDmrgg03JDm63+wX 6R6D4+gYnkn62k6hLkWSTkylqoU7oky1zmjyxo9qS9rJHNAo9muGvrc7Krt6H+vp0k+c bk+kKheysEq4zcmYPbJxcZw4KNc/4+wg6JM2ULJx9AAlg7dLEzj4ScOKy1nOIhBdZ70f UW8A== X-Gm-Message-State: AO0yUKU9NAzWjPVIci1BOudcdSqFVA9zUSgEaL1d1MTQWCjbBsRHsCkU 6Ruq08tr96hjehJxdIuzMS2WJwj8Cvt50io8p8u10NS6TzjpcqUYO2Negksaj5VaGQ24nxoEK1n yeRlFixBKwYZBp+6LS16qPT4= X-Received: by 2002:a17:90a:4a16:b0:22c:39eb:3723 with SMTP id e22-20020a17090a4a1600b0022c39eb3723mr478839pjh.116.1675344265454; Thu, 02 Feb 2023 05:24:25 -0800 (PST) X-Google-Smtp-Source: AK7set+J6FxqUJLxhrK/bLtOk6NG1UlT+wMIjweffDgpFkMEjX5O3EvmGlsEJ5SW82XvfQHHfV6e5leLEPPsKOA4pcU= X-Received: by 2002:a17:90a:4a16:b0:22c:39eb:3723 with SMTP id e22-20020a17090a4a1600b0022c39eb3723mr478830pjh.116.1675344265124; Thu, 02 Feb 2023 05:24:25 -0800 (PST) MIME-Version: 1.0 References: <20230202123021.54416-1-simei.su@intel.com> <20230202123632.56730-1-simei.su@intel.com> In-Reply-To: <20230202123632.56730-1-simei.su@intel.com> From: David Marchand Date: Thu, 2 Feb 2023 14:24:14 +0100 Message-ID: Subject: Re: [PATCH v5] net/i40e: rework maximum frame size configuration To: Simei Su Cc: beilei.xing@intel.com, yuying.zhang@intel.com, dev@dpdk.org, qi.z.zhang@intel.com, qiming.yang@intel.com, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Thu, Feb 2, 2023 at 1:37 PM Simei Su wrote: > @@ -2467,8 +2466,16 @@ i40e_dev_start(struct rte_eth_dev *dev) > "please call hierarchy_commit() " > "before starting the port"); > > - max_frame_size = dev->data->mtu + I40E_ETH_OVERHEAD; > - i40e_set_mac_max_frame(dev, max_frame_size); > + max_frame_size = dev->data->mtu ? > + dev->data->mtu + I40E_ETH_OVERHEAD : > + I40E_FRAME_SIZE_MAX; > + > + /* Set the max frame size to HW*/ > + ret = i40e_aq_set_mac_config(hw, max_frame_size, TRUE, false, 0, NULL); > + if (ret) { > + PMD_DRV_LOG(ERR, "Fail to set mac config"); > + return ret; > + } Reading this patch again. Returning here seems incorrect as we leave rx/tx queue in started state. Don't we need to jump to tx_err label on error? > > return I40E_SUCCESS; > -- David Marchand