DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] MTU vs MRU
@ 2018-09-26  0:38 Chas Williams
  0 siblings, 0 replies; only message in thread
From: Chas Williams @ 2018-09-26  0:38 UTC (permalink / raw)
  To: dev

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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-26  0:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26  0:38 [dpdk-dev] MTU vs MRU Chas Williams

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).