From patchwork Mon Aug 8 11:50:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Mancino X-Patchwork-Id: 114720 X-Patchwork-Delegate: andrew.rybchenko@oktetlabs.ru Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 99FFAA034C; Mon, 8 Aug 2022 13:48:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38D634067B; Mon, 8 Aug 2022 13:48:53 +0200 (CEST) Received: from mail.tutus.se (mail.tutus.se [193.181.0.5]) by mails.dpdk.org (Postfix) with ESMTP id 7513F4014F for ; Mon, 8 Aug 2022 13:48:52 +0200 (CEST) Received: from mail.tutus.se (localhost.localdomain [127.0.0.1]) by mail.tutus.se (Proxmox) with ESMTP id 1C5A914366F for ; Mon, 8 Aug 2022 13:48:52 +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=jwLRscKDQLIKMbVruFBvN8vqrlRaqaWP968nVnr3W6Q=; b=OyPVGx6 zN1nwVHXn0j3vSyqno6xWW15wsO+hiC/LiK7FX7fQG0JMBbSAfp9cje7mBuDIXbA n4eEdM+2Ji/yEnVrGiYaR2iy3PBsngh5L3pM0BI0I5Z4jFSM8tWxAmSHOqKGL7hB qWLfypWe8PfREqpXUF53w+f3AWM/bFW7ZXsfxqKDPBruqmn5dcYOV1ayWGW59LTJ 0lqVL12CwxQt9gN2r8GlYctzA1EivDpU72/FsqNcWKQqVf8bcyxtU80RA53wlRQy akqbU5crEyQBAXYGH9kPbxfNaG/X7RIcpb7lg9/OzpwmutQuK046KLsXqJJ4rCE/ n37gTmJeyZKT6Nw== Message-ID: <6851eba5-3320-d374-90f3-279a19eff60b@tutus.se> Date: Mon, 8 Aug 2022 13:50:02 +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 v3] net/tap: Allow jumbo frames To: dev@dpdk.org Content-Language: en-US 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;