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 E25DBA034C; Mon, 8 Aug 2022 14:28:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86B4E4067B; Mon, 8 Aug 2022 14:28:17 +0200 (CEST) Received: from mail.tutus.se (mail.tutus.se [193.181.0.5]) by mails.dpdk.org (Postfix) with ESMTP id 1352E4014F for ; Mon, 8 Aug 2022 14:28:16 +0200 (CEST) Received: from mail.tutus.se (localhost.localdomain [127.0.0.1]) by mail.tutus.se (Proxmox) with ESMTP id AEF151436F2 for ; Mon, 8 Aug 2022 14:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tutus.se; h=cc :content-transfer-encoding:content-type:content-type:date:from :from:message-id:mime-version:reply-to:subject:subject:to:to; s= key1; bh=yyE6sZrDA1o2NDWEfaMZo6fA40jotfj2UkuiaPqxGQ0=; b=XAfrMfC /bwvi/hUn5QGcMYCMPV6ZBZ5zCxVmu/B1uVDfv/YFakILQrETK6v1c7mvmUXae1e t9IdCyP1xAQF+UcKfQZbBxlpj9r3tunDYjE2MaKK8Ht1C0YmhOjQ+SViTLhM6hpf 4qD8GbKNYtgyFW/D2eSFJz+0ypRAq+N0yKQEcTcEyxj2tE7Fe3sD1gBPIRri7g/v zu78arJp7uIH0UZT6uAciu1w7S7YGKnRqbRYwaJRTJTkSf7ZR8rSUN8VzFSH9+Mu 3m5RCM0erJm6agOrsyV/zDTEnFHlA47IdyRTxUNiKJPo3fQbA2qli8RBQiUkHqJg 0UTF5OHtIBpp62g== Message-ID: Date: Mon, 8 Aug 2022 14:29:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: Francesco Mancino Subject: [PATCH v5] net/tap: Allow jumbo frames To: dev@dpdk.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 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 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. --- drivers/net/tap/rte_eth_tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 9e1032fe72..54ca4ca5e9 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -1066,7 +1066,7 @@ tap_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->if_index = internals->if_index; dev_info->max_mac_addrs = 1; - dev_info->max_rx_pktlen = (uint32_t)RTE_ETHER_MAX_VLAN_FRAME_LEN; + dev_info->max_rx_pktlen = (uint32_t)RTE_ETHER_MAX_JUMBO_FRAME_LEN; dev_info->max_rx_queues = RTE_PMD_TAP_MAX_QUEUES; dev_info->max_tx_queues = RTE_PMD_TAP_MAX_QUEUES; dev_info->min_rx_bufsize = 0; -- 2.34.1