DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: "Morten Brørup" <mb@smartsharesystems.com>
Cc: dev@dpdk.org, Olivier Matz <olivier.matz@6wind.com>
Subject: Re: [dpdk-dev] Weird 2 KB MBUF data room requirement
Date: Fri, 10 Jul 2020 11:26:09 +0100	[thread overview]
Message-ID: <20200710102609.GA684@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C61113@smartserver.smartshare.dk>

On Fri, Jul 10, 2020 at 10:21:40AM +0200, Morten Brørup wrote:
> Dear Ethernet PMD developers,
> 
> According to rte_mbuf_core.h, RTE_MBUF_DEFAULT_DATAROOM is 2048 bytes because some NICs need at least 2 KB buffer to receive standard Ethernet frames without splitting them into multiple segments.
> 
> This is a serious waste of memory, considering that standard Ethernet frames are max 1518 bytes.
> 
> How wide spread is this limitation... is it common or a rare exception?
> 
> Where is it documented which NICs suffer from this limitation?
> 
> Do any Intel NICs suffer from this limitation?
> 
> 
> NB: We are targeting an MBUF total size (incl. memzone element overhead) of 2^N, and this limitation would increase our MBUF total size to 4 KB.
> 
> 
> Med venlig hilsen / kind regards
> - Morten Brørup
> 

AFAIK: the NICs supported by the ixgbe driver only allow the size to be
specified in KB granularity.

However, it may be safe to have a driver modification whereby anything over
1600 bytes is considered as 2KB if jumbo frame support is disabled. I don't
think anyone has actually looked into doing so though, or if there are
other hidden gotchas about attempting to do so.

/Bruce

  reply	other threads:[~2020-07-10 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  8:21 Morten Brørup
2020-07-10 10:26 ` Bruce Richardson [this message]
2020-07-10 12:58   ` Olivier Matz
2020-07-10 13:45     ` Morten Brørup

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=20200710102609.GA684@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=mb@smartsharesystems.com \
    --cc=olivier.matz@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).