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 BC2A2A034C; Mon, 8 Aug 2022 11:30:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B09904067B; Mon, 8 Aug 2022 11:30:07 +0200 (CEST) Received: from mail.tutus.se (mail.tutus.se [193.181.0.5]) by mails.dpdk.org (Postfix) with ESMTP id BE1DB4014F for ; Mon, 8 Aug 2022 11:30:06 +0200 (CEST) Received: from mail.tutus.se (localhost.localdomain [127.0.0.1]) by mail.tutus.se (Proxmox) with ESMTP id 579A61436F5 for ; Mon, 8 Aug 2022 11:30:06 +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=mMwYLaQlTu5xKwhC2+Dv6iP6gEqxvrZFsyhU5ayld0M=; b=YSSNqzD 1udIAn8imBetQ9oBmJKcBzFAmTtACig/bCYbSGFA8glRZ6bU7MnqISCo3NE0LU5U DImOLb7KbtB7GVtpaqPvIJCs9hZJyBi8605vrdB2CJso3Mtdz1MOSxzbAPS7QCtw Cd2tc4orASfiduCjQfXKGzmPXpSzZUzZVD4RU7Ag/c9ZjwUSKcyrENPKcrqnaXED 4q8AOccTJKUMEKt45BPAKAcKCGYQYN8GfN6s0eKtxgwgdIp16meH184UNs+nxqVj /i+TAj/p+syAt3+I5mst9TGVYOkNXtz2H1nZCYKKx4qnseaz80zgwbevjBjxjsRv dYAeoTdI1sJUG+w== Message-ID: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> Date: Mon, 8 Aug 2022 11:31:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US From: Francesco Mancino Subject: [PATCH] net/tap: Allow jumbo frames To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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