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 8BDC2432D8; Wed, 8 Nov 2023 16:07:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25B7C40DDB; Wed, 8 Nov 2023 16:07:34 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 504F3402A7 for ; Wed, 8 Nov 2023 16:07:32 +0100 (CET) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 91BBE69; Wed, 8 Nov 2023 18:07:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 91BBE69 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1699456051; bh=fIcBFBplsksHg+cFt3GsdsBfHBTBNiwiD1OSnXb7OU8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=F+MKPv5zOJTv8+KagDGLYg6TYo/+ClokTda0UZKEvUkpAlHypGbArPDJXkDutnRrS eFBUz+dmsQCfVO1GuIoZwZp+c7E9yO+GXGvRaUXanFIhMZgNwLwnsQfZyW3ixFiPoE v4GOieKWVxE2VcQ75T7LFEqxBqNvGHRMBKiyxyfI= Message-ID: Date: Wed, 8 Nov 2023 18:07:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] ethdev: account for smaller MTU when setting default Content-Language: en-US To: Joshua Washington , Thomas Monjalon , Ferruh Yigit , Hyong Youb Kim , Rosen Xu , Somnath Kotur , Huisong Li Cc: dev@dpdk.org, Rushil Gupta References: <20231108060535.1249507-1-joshwash@google.com> From: Andrew Rybchenko Organization: OKTET Labs In-Reply-To: <20231108060535.1249507-1-joshwash@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 11/8/23 09:05, Joshua Washington wrote: > Currently, if not specified in the user configuration, > rte_eth_dev_configure() sets the MTU of the device to RTE_EHTER_MTU. > This value could potentially be larger than the MTU that the device > supports. This change updates the configured MTU to be the minimum of > the maximum suported MTU and the default DPDK MTU. > > Fixes: 1bb4a528c4 ("ethdev: fix max Rx packet length") > Signed-off-by: Joshua Washington > Signed-off-by: Rushil Gupta Acked-by: Andrew Rybchenko