DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chas Williams <3chas3@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] MTU vs MRU
Date: Tue, 25 Sep 2018 20:38:34 -0400	[thread overview]
Message-ID: <f21f94db-39a5-7e05-796a-4cb41fff40e9@gmail.com> (raw)

What does (or should) rte_eth_dev_set_mtu() do?  The documentation says
"Change the MTU of an Ethernet device."  At least of few of the PMDs do
something similar to the following:

         eth_em_infos_get(dev, &dev_info);
         frame_size = mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + ...

         /* check that mtu is within the allowed range */
         if ((mtu < ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))
                 return -EINVAL;

         /* update max frame size */
         dev->data->dev_conf.rxmode.max_rx_pkt_len = frame_size;

What does max_rx_pkt_len mean here?  MRU or is pkt here really frame?

                 reply	other threads:[~2018-09-26  0:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=f21f94db-39a5-7e05-796a-4cb41fff40e9@gmail.com \
    --to=3chas3@gmail.com \
    --cc=dev@dpdk.org \
    /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).