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 C6E2F42417; Thu, 19 Jan 2023 15:50:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B59BD40223; Thu, 19 Jan 2023 15:50:44 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id 06B02400D5 for ; Thu, 19 Jan 2023 15:50:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KY+aRiJFCKs9rI+2IynS8vLJMEA3EC8Vq7rPdUAmyKs9iNGd01eWrgtaDhGrQEhWy6+F406KT9P92Jf098um5AVeA4znsOgo31V+pA59waEAUvL5j7+PdgVEgeZdFtwPJ3eO3/zlKF0OQM6VX4hv/cp1gpRioFGDuRuoC8yDEuMCGcV/IcB+uMqLM1z2Auv8Lrp/bhXX4GOdCa5pbSu5plJMF4jPRMt4p4GqEjBNuZunFKhuFdm/A96XBrOzcbWmEoUw8McvY3GFDSvRmqqkByiY8rXRee0s1S1nGmRUDNN/B/4vgXsA1MNFbttGsNRPPf8CNrKs2MJ3L3TzD/X3zA== 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=A6igJeJcLNzQjZxOsmWVun/PckVJFQX32gRYnwOiSTY=; b=SDzVv4Uo7PN2Xe2wgWmd1D5czpCldXxoKE76Qpn/oRIqTLDn4i2agPeQLlktfAbtr627eB+czWcFVAWmZaihv8nxx0LqGUCiZDLs+1yutfes4e8wgeewpS3Fx3FUgUq11rIbIIxvO9w7gS9jbf4a/LV5urNdJEyoaL4vWqEcidDLK7dUG7+WIzb7Ext9yiqgbDvlObinecEFMiGORfTJ4SNVV1YZ9BNztr9WiuGqCbOeYpW0GCLPJtTNZsr7oeNMQ4Q/b6TIU7DYCUSO7eEJHc46BlivL7w5YG+Mm0LBD/FZ/NCrbmyvUhP/rQuTohifKAtklwFe5Ozjxg9rPGGklw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A6igJeJcLNzQjZxOsmWVun/PckVJFQX32gRYnwOiSTY=; b=YNm9zBf55JZX/dc2uU5C3YC1KtiBlKLWnxNR5j8nZK0KaYERAWw2v+QY0sJ4eBo9bZM977E0YSuFNSNWZMlUsY6L2bupbNGVa9RNb6BR6rOu16u3Ot8gVSWNwYplCVFVWUTJ4oRIRMNXH+FrPKk1dqeOBpE2DJtBHmVU2V4AKAQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CH3PR12MB7668.namprd12.prod.outlook.com (2603:10b6:610:14d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Thu, 19 Jan 2023 14:50:40 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a%8]) with mapi id 15.20.6002.024; Thu, 19 Jan 2023 14:50:39 +0000 Message-ID: Date: Thu, 19 Jan 2023 14:50:33 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: Stephen Hemminger , Francesco Mancino Cc: dev@dpdk.org References: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> <20220808080323.53f303fe@hermes.local> From: Ferruh Yigit Subject: Re: [PATCH v7] net/tap: Allow jumbo frames In-Reply-To: <20220808080323.53f303fe@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LNXP123CA0006.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:d2::18) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH3PR12MB7668:EE_ X-MS-Office365-Filtering-Correlation-Id: 202ce089-b712-47e1-a912-08dafa2c882f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jB1Fpar4Wn8JtKtKXK0Y+hsl2OOiwhvRyhpy3H+kEHXcluDO1ZUEa/Gb3ApIlMiniba/RCldycwzT+f5NQ67CUchgc7yZnrRm20gIIR4JCYJpmSGsMM4h5lzZdCt6pVCZzcaTBkzsGI1Eb2bIIECzJcjI85a2wRxczoZ60VoVtwrykE0E5RyNHGdsIF0ZWimjQz6RAPUR2oDaErzdsrpsDrq8Y8ID5nsfVjb3FPOqptFJVh1Skc55eu5kcYsGZ8QO02pZPZv7/RFtpXpxRmUIQ3pfyJ/vDV7RDlJ/v1q5Sz9kQLzXa8MX6ydM9qi9d8lEUMIc/4KsSuGw9kwhzTULu3wy88/QQpSB0iy6cNJ0bXjC1nVsFd+XZYkHxQ3DNjriZCwae/rgqLaZDUCJZ+YFAAA1VNpEuAB/lDbqMbGTa3r1NVYmCQEOUS6lvdTgNAQ1h27uinhNEGRmwZz6EFy1qPiIkVcFPvutg99IKmQJr8LBUFiGRjMzAtPfiYW+/YzcprjnjiillPMHwdSprzZXwR3Ba0/ZWcR69KWafq8tQclbH+LehPqL/otRpKzjcjzZOGl9DIPqYxdGQ2oZJJc/82KqWbxP5H9ywko7rCulBahwTtfh8XAhHsZGXTeQCbpsRcKTvzidRxqsnmj7ijJkdRwWSOskNtYKy6bj7rhWRZMigbMPbfczgMqZ5EiTyvqd0viIrd0nxnu+iUWXl0begPL97VePd8NdevqoeIOnjU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(39860400002)(366004)(136003)(346002)(451199015)(8936002)(36756003)(31696002)(4744005)(86362001)(38100700002)(44832011)(41300700001)(5660300002)(66946007)(4326008)(66476007)(2906002)(66556008)(2616005)(8676002)(53546011)(186003)(83380400001)(26005)(316002)(6486002)(6512007)(478600001)(6506007)(6666004)(110136005)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UE9rMDEzaGRzWFlDS1JhcGlLNjFUMDBzSnZvWjl2VU5rR2VqQXJLZVhyZ0VT?= =?utf-8?B?Yy9ubHpzTEhqbGNIWDJKMWxVSGY5SHoxVGx0MkhrK2YrSTBGbisxMnVDY3pV?= =?utf-8?B?TU9LNUVSWTgxR2dsZk93bWNIMksvZ1dWM0crZWt4NUp3MnRjYTJqN0RXRlQz?= =?utf-8?B?NU1SQ2FZTlU5MXMzcFh5VU5WQi9HR0o5QnNkL0c3UnRHL1pvdC96K1FQUVVj?= =?utf-8?B?dldRa1hEQk4vSDJTc1h0bWc5MFhMcTdlNHpRcEU4NGRrMThjd1M3YStGMmRv?= =?utf-8?B?L2oxQ3U1R2pvS1B2Y1oxa0ZBS3MvZnc5Nm9tN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?Q?P2wswZ/EUaXYQwXdSKOi1blSk?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 202ce089-b712-47e1-a912-08dafa2c882f X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 14:50:39.8707 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fkkrU23o7P1QTpxv9/Mh738fPnOIdjSmnHJqmVZc8XTMYuzMqLmtxhbp4GW1Ja8s X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7668 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 8/8/2022 4:03 PM, Stephen Hemminger wrote: > On Mon, 8 Aug 2022 16:49:44 +0200 > Francesco Mancino wrote: > >> eth_dev_validate_mtu, introduced in 990912e676e, validates configured >> MTU plus overhead against max_rx_pktlen. >> Since TAP is a virtual device, it should support as big MTU as possible. >> >> Signed-off-by: Francesco Mancino > dev_info->min_rx_bufsize = 0; > > > Thanks for your patience. > > Since tap is built on top of an existing kernel network device a more > complete solution would be to query the kernel device to find out what > its MTU is. > > Acked-by: Stephen Hemminger +1 to get as it is for now, but if you have a chance, please send 'IFLA_MAX_MTU' implementation to replace current one, thanks. Applied to dpdk-next-net/main, thanks.