From: Andriy Berestovskyy <aber@semihalf.com>
To: Jay Rolette <rolette@infinite.io>
Cc: DPDK <dev@dpdk.org>
Subject: Re: [dpdk-dev] Couple of PMD questions
Date: Wed, 20 Apr 2016 11:35:18 +0200 [thread overview]
Message-ID: <CAOysbxosz8vLq682U0q7fmeQqkVHzpuS-reUpBS+XycnBiRFag@mail.gmail.com> (raw)
In-Reply-To: <CADNuJVoS0=Bd+7jb93wfYH_OvzP_H6PtQ9xxqshV5OiRNx=qBQ@mail.gmail.com>
Hi Jay,
On Tue, Apr 19, 2016 at 10:16 PM, Jay Rolette <rolette@infinite.io> wrote:
> Should the driver error out in that case instead of only "sort of" working?
+1, we hit the same issue. Error or log message would help.
> If I support a max frame size of 9216 bytes (exactly a 1K multiple to make
> the NIC happy), then max_rx_pkt_len is going to be 9216 and data_room_size
> will be 9216 + RTE_PKTMBUF_HEADROOM.
Try to set max_rx_pkt_len <= 9K - 8 and mempool element size to 9K +
headroom + size of structures.
> Is that check correct?
Datasheet says:
The MFS does not include the 4 bytes of the VLAN header. Packets with
VLAN header can be as large as MFS + 4. When double VLAN is enabled,
the device adds 8 to the MFS for any packets.
Regards,
Andriy
next prev parent reply other threads:[~2016-04-20 9:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 20:16 Jay Rolette
2016-04-20 9:10 ` Bruce Richardson
2016-04-20 12:22 ` Jay Rolette
2016-04-20 14:05 ` Bruce Richardson
2016-04-20 15:47 ` Jay Rolette
2016-04-21 9:13 ` Andriy Berestovskyy
2016-04-21 10:54 ` Bruce Richardson
2016-04-20 9:35 ` Andriy Berestovskyy [this message]
2016-04-20 12:45 ` Jay Rolette
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=CAOysbxosz8vLq682U0q7fmeQqkVHzpuS-reUpBS+XycnBiRFag@mail.gmail.com \
--to=aber@semihalf.com \
--cc=dev@dpdk.org \
--cc=rolette@infinite.io \
/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).