From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 2F59395D7 for ; Tue, 9 Feb 2016 17:36:01 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id p63so30782715wmp.1 for ; Tue, 09 Feb 2016 08:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=6rQi5wVXqud9JpeDJwS/Cax4arltUtLEpYPofc/vywU=; b=hMa8zy3NAqc+uLU2IVIpbShATXwfEERsn8mB6GGNqn0+gyz7ByLSFQWT1lJmcB9k+h dNFPveCyt07j5h0E1MMJS0U5RiPcKT74tMtyp4DlyLYkjsc9d9jIS9jFmtJmOvcQEwO9 u1Ty9a5InbZoIBFC7tJPLbAX3WqEzyjAzqsPlEabJlZpIIb+jps0XbsayTe4CBPJKASb g+WqKl5c9JDAA/EX7mj+VmsK0RiWusW3gwEGp7cpf2X/kpPPBf+mmRzs/5nLV7RdVWZr zC7ZQ6zIoWXU2T6mkvh2UHhD86WM7uMzCYxpXlTtUl/ihTMMwxoI4zxQDDrBzmo2UP4p oViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=6rQi5wVXqud9JpeDJwS/Cax4arltUtLEpYPofc/vywU=; b=Ytb5H/pJPh2aZ9jiTmn0+O5NDKuhVmIi/C6od5OLKM7Ld/QcwRZljJYue9WT0K8iF0 JAGpXvrsx3B7z/LsrLUYiiRLzdLKUGt+OGVU7O78aLnkCzC8s2Ia75+ZH3F3y6kHUcSu 7oj8G+pWcy9WUyvz7HWPkm9oBr5s3rGkj1GC95JFjG+b0AKYwbv/XAm/UjBt21n0A0mG 6baq6/GEuZL31kJ0omGhnO6mgSI5v0XUZGMMOmWJ9ZyPMxQGlqBQbfJYVcVFxk4//d0l qC5qcQytcLv44yurnrM6voG/UtJ52xSa3CSI0pb+wfVZdJjqJpcncmZeOMV+heigINTX 2QpA== X-Gm-Message-State: AG10YOQw5WA89q8v2H0MXXqj8eJToDU4uQiT6/ETPQ7gmcd9R65eFPVqTTWL7N7XgWL7c3vV X-Received: by 10.28.99.69 with SMTP id x66mr6060319wmb.95.1455035760822; Tue, 09 Feb 2016 08:36:00 -0800 (PST) Received: from [10.16.0.205] (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id w17sm18274940wmw.5.2016.02.09.08.35.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Feb 2016 08:36:00 -0800 (PST) Message-ID: <56BA1561.3060201@6wind.com> Date: Tue, 09 Feb 2016 17:35:45 +0100 From: Julien Meunier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: "Zhang, Helin" , dev@dpdk.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] i40e: cannot change mtu to enable jumbo frame X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 16:36:02 -0000 Hello Helin, I tried to send jumbo frames to a i40e card. However, I observed that all frames are dropped. Moreover, set_mtu function is not implemented on i40e PMD. > testpmd --log-level 8 --huge-dir=/mnt/huge -n 4 -l 2,18 --socket-mem 1024,1024 -w 0000:02:00.0 -w 0000:02:00.2 -- -i --nb-cores=1 --nb-ports=2 --total-num-mbufs=65536 ============= Configuration ============= +-----------+ +-------------+ | | | | | tgen | | | | +----------+ port 0 | | | | | | | | | | | | | | | | | | +----------+ port 1 | | | | | +-----------+ +-------------+ DPDK: DPDK-v2.2 ========== MTU = 1500 ========== Packet sent from a tgen > p = Ether / IP / UDP / Raw(MTU + HDR(Ethernet)- HDR(IP) - HDR(UDP)) > len(p) = 1514 testpmd> start PMD: i40e_rxd_to_vlan_tci(): Mbuf vlan_tci: 0, vlan_tci_outer: 0 testpmd> stop Telling cores to stop... Waiting for lcores to finish... PMD: i40e_update_vsi_stats(): *** VSI[13] stats start *** PMD: i40e_update_vsi_stats(): rx_bytes: 1518 PMD: i40e_update_vsi_stats(): rx_unicast: 1 PMD: i40e_update_vsi_stats(): *** VSI[13] stats end *** PMD: i40e_dev_stats_get(): *** PF stats start *** PMD: i40e_dev_stats_get(): rx_bytes: 1514 PMD: i40e_dev_stats_get(): rx_unicast: 1 PMD: i40e_dev_stats_get(): rx_unknown_protocol: 1 PMD: i40e_dev_stats_get(): rx_size_1522: 1 PMD: i40e_dev_stats_get(): *** PF stats end *** -------------- Forward statistics for port 0 -------------- RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 0 TX-dropped: 0 TX-total: 0 ---------------------------------------------------------------------------- PMD: i40e_update_vsi_stats(): *** VSI[14] stats start *** PMD: i40e_update_vsi_stats(): tx_bytes: 1514 PMD: i40e_update_vsi_stats(): tx_unicast: 1 PMD: i40e_update_vsi_stats(): *** VSI[14] stats end *** PMD: i40e_dev_stats_get(): *** PF stats start *** PMD: i40e_dev_stats_get(): tx_bytes: 1514 PMD: i40e_dev_stats_get(): tx_unicast: 1 PMD: i40e_dev_stats_get(): tx_size_1522: 1 PMD: i40e_dev_stats_get(): *** PF stats end *** -------------- Forward statistics for port 1 -------------- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 1 TX-dropped: 0 TX-total: 1 ---------------------------------------------------------------------------- +++++ Accumulated forward statistics for all ports+++++ RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 1 TX-dropped: 0 TX-total: 1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ => OK ========== MTU = 1600 ========== Packet sent > p = Ether / IP / UDP / Raw(MTU + HDR(Ethernet)- HDR(IP) - HDR(UDP)) > len(p) = 1614 testpmd> port config mtu 0 1600 rte_eth_dev_set_mtu: Function not supported Set MTU failed. diag=-95 testpmd> port config mtu 1 1600 rte_eth_dev_set_mtu: Function not supported Set MTU failed. diag=-95 testpmd> start testpmd> stop Telling cores to stop... Waiting for lcores to finish... PMD: i40e_update_vsi_stats(): *** VSI[13] stats start *** PMD: i40e_update_vsi_stats(): rx_bytes: 1618 PMD: i40e_update_vsi_stats(): rx_unicast: 1 PMD: i40e_update_vsi_stats(): *** VSI[13] stats end *** PMD: i40e_dev_stats_get(): *** PF stats start *** PMD: i40e_dev_stats_get(): rx_bytes: 1614 PMD: i40e_dev_stats_get(): rx_unicast: 1 PMD: i40e_dev_stats_get(): rx_unknown_protocol: 1 PMD: i40e_dev_stats_get(): rx_size_big: 1 PMD: i40e_dev_stats_get(): *** PF stats end *** -------------- Forward statistics for port 0 -------------- RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 0 TX-dropped: 0 TX-total: 0 ---------------------------------------------------------------------------- PMD: i40e_update_vsi_stats(): *** VSI[14] stats start *** PMD: i40e_update_vsi_stats(): tx_bytes: 0 PMD: i40e_update_vsi_stats(): tx_unicast: 0 PMD: i40e_update_vsi_stats(): *** VSI[14] stats end *** PMD: i40e_dev_stats_get(): *** PF stats start *** PMD: i40e_dev_stats_get(): tx_bytes: 0 PMD: i40e_dev_stats_get(): tx_unicast: 0 PMD: i40e_dev_stats_get(): tx_size_big: 0 PMD: i40e_dev_stats_get(): *** PF stats end *** -------------- Forward statistics for port 1 -------------- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 ---------------------------------------------------------------------------- +++++ Accumulated forward statistics for all ports+++++ RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 0 TX-dropped: 0 TX-total: 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Done. => Frame correctly received on port 0, but never forwarded or xmit on port 1. Does a mtu_set function will be developed soon in order to support jumbo frame ? Regards, -- Julien MEUNIER 6WIND