From: Asim Jamshed <asim.jamshed@gmail.com>
To: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Fwd: dpdk ixgbe PMD lro limits
Date: Tue, 28 Jun 2016 18:23:23 +0900 [thread overview]
Message-ID: <CANwh_8ZS796VNqzwQyfwHpDrmBXxLoSFrui2fF0M_RmX=CVnFQ@mail.gmail.com> (raw)
In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09090348B7E1@shsmsx102.ccr.corp.intel.com>
On Tue, Jun 28, 2016 at 5:42 PM, Lu, Wenzhuo <wenzhuo.lu@intel.com> wrote:
> Hi Asim,
>
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Asim Jamshed
>> Sent: Tuesday, June 28, 2016 2:41 PM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] Fwd: dpdk ixgbe PMD lro limits
>>
>> Hi,
>>
>> Apologies in advance if this question has been asked in the past.
>>
>> I have been performing mTCP-related tests on dpdk-16.04 with ixgbe PMD. I am
>> using 82599ES 10-Gigabit adapters for my experiments. I have a few queries
>> regarding LRO.
>>
>> 1) What is the theoretical maximum size of the Ethernet frame I can get from
>> the driver once LRO is enabled? In my experiments, I was seeing packet size as
>> high as 16KB. Can it be as high as ~2^16 bytes (iph->tot_len)?
> I'm not sure about if I understand your question correctly. Assume you're talking about the TCP segment after LRO. So, it's said there are no limitations on the maximum packet length.
The issue that I am facing is fixing the size of mbuf.
The default size of mbuf is (2048 + sizeof(struct rte_mbuf) +
RTE_PKTMBUF_HEADROOM) which needs to be augmented
once lro is enabled (am I right?). I tried stretching the limits
of the mempool by increasing mbuf size to (65536 +
sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM),
and I got the following error:
Initializing port 0... EAL: Error - exiting with code: 1
Cause: rte_eth_rx_queue_setup:err=-22, port=0, queueid: 0
My exact calls for rte_mempool_create() and
rte_eth_rx_queue_setup() were:
pktmbuf_pool = rte_mempool_create(name, 8192,
MBUF_SIZE, 256,
sizeof(struct rte_pktmbuf_pool_private),
rte_pktmbuf_pool_init, NULL,
rte_pktmbuf_init, NULL,
rte_socket_id(), 0);
ret = rte_eth_rx_queue_setup(portid, rxlcore_id, 128,
rte_eth_dev_socket_id(portid), &rx_conf,
pktmbuf_pool);
>
>>
>> 2) Since the NIC is reassembling payloads (of one flow) into a single packet,
>> what does the Ethernet controller do with the tcp checksum field in the TCP
>> header? I am observing that each LRO packet has checksum value as zero? Is
>> that normal? I could not find any relevant documentation on the Web.
> That's expected.
> You can search 82599 datasheet. I think that's what you're looking for.
Thanks!
Regards,
--Asim
>
>>
>> Thanks in advance,
>> --Asim
next prev parent reply other threads:[~2016-06-28 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CANwh_8ZXFZhs3iBDJFq7ebPTXkWkMLJDgLcw4iMeVgnzW5+AoA@mail.gmail.com>
2016-06-28 6:41 ` Asim Jamshed
2016-06-28 8:42 ` Lu, Wenzhuo
2016-06-28 9:23 ` Asim Jamshed [this message]
2016-06-29 0:29 ` Lu, Wenzhuo
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='CANwh_8ZS796VNqzwQyfwHpDrmBXxLoSFrui2fF0M_RmX=CVnFQ@mail.gmail.com' \
--to=asim.jamshed@gmail.com \
--cc=dev@dpdk.org \
--cc=wenzhuo.lu@intel.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).