DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Helin" <helin.zhang@intel.com>
To: Julien Meunier <julien.meunier@6wind.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] i40e: cannot change mtu to enable jumbo frame
Date: Wed, 10 Feb 2016 15:20:21 +0000	[thread overview]
Message-ID: <F35DEAC7BCE34641BA9FAC6BCA4A12E70A997682@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <56BA1561.3060201@6wind.com>



> -----Original Message-----
> From: Julien Meunier [mailto:julien.meunier@6wind.com]
> Sent: Wednesday, February 10, 2016 12:36 AM
> To: Zhang, Helin <helin.zhang@intel.com>; dev@dpdk.org
> Subject: i40e: cannot change mtu to enable jumbo frame
> 
> 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 ?
Yes, we will implement soon later.
Could you help to try with max_pkt_len in port config for now?

Regards,
Helin

> 
> Regards,
> 
> --
> Julien MEUNIER
> 6WIND

  parent reply	other threads:[~2016-02-10 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 16:35 Julien Meunier
2016-02-09 19:05 ` Zhu, Heqing
2016-02-10 10:53   ` Julien Meunier
2016-02-10 13:54     ` Ananyev, Konstantin
2016-02-10 15:20 ` Zhang, Helin [this message]
2016-02-12 14:08   ` Julien Meunier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F35DEAC7BCE34641BA9FAC6BCA4A12E70A997682@SHSMSX104.ccr.corp.intel.com \
    --to=helin.zhang@intel.com \
    --cc=dev@dpdk.org \
    --cc=julien.meunier@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).