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 5B3ECA00C2; Mon, 8 Aug 2022 16:48:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02B8C4067B; Mon, 8 Aug 2022 16:48:36 +0200 (CEST) Received: from mail.tutus.se (mail.tutus.se [193.181.0.5]) by mails.dpdk.org (Postfix) with ESMTP id 9E9F34014F for ; Mon, 8 Aug 2022 16:48:34 +0200 (CEST) Received: from mail.tutus.se (localhost.localdomain [127.0.0.1]) by mail.tutus.se (Proxmox) with ESMTP id 36D9B143720 for ; Mon, 8 Aug 2022 16:48:34 +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:in-reply-to:message-id:mime-version:references:reply-to :subject:subject:to:to; s=key1; bh=XykmvjV3ekfW7rTU38XZxvqpndMm/ sWqTmak9gfEi+g=; b=XEzPcB7eM6lsu9G4C3TCvb+NaX4k+ZfEqo843lnWz8Gdr MAbQeoUUsyztY/tjt62PLk3pkZWF4JiXaPoLnMzsstTBJz/TjfIoI5/JyQxeB8JG pqe4af1UolnlZV+Ef0lySFJQ9dpe0YrmhozQXP0QHwZN+bK1Jlzv1bHB2D3V6eK3 BSobRGJOrfmNUOTZe0ZGz3mdqK9Ef+f3ij/AUpYpXmK+nbfy+v+74m7856JrqVIp NeLeajUIGF/Hu4Mc0i48HnxuMmwl9WPyIncxUxBdOUYPCYsUg6L6v2vJ8nkiGCWI Yw5tNHtfekGBN3ip63GO2eD+kgvblthDRrreNFVLA== Message-ID: Date: Mon, 8 Aug 2022 16:49:44 +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 v7] net/tap: Allow jumbo frames References: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> Content-Language: en-US To: dev@dpdk.org In-Reply-To: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> 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. Signed-off-by: Francesco Mancino --- 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..df7f948972 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 = 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