DPDK usage discussions
 help / color / mirror / Atom feed
From: "Gábor LENCSE" <lencse@hit.bme.hu>
To: users@dpdk.org
Subject: Re: Unexpected behavior when using mbuf pool with external buffers
Date: Wed, 22 Dec 2021 13:28:31 +0100	[thread overview]
Message-ID: <36e7779e-b2e1-657e-da42-bf14bb34e29a@hit.bme.hu> (raw)
In-Reply-To: <CA+xtTg0xThxPwuKnMrCZR+dqxSpv86bTW3wNok69Q7bfDzSukw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

Dear Michal,

12/22/2021 10:56 AM keltezéssel, Michał Niciejewski írta:
>     auto tx_num = rte_eth_tx_burst(1, queue, mbufs.data(), rx_num);

I suspect that the frame is sometimes simply not transmitted at high rates.

The rte_eth_tx_burst() function reports the number of actually 
transmitted frames. I usually send a frame using the following loop:

while ( !rte_eth_tx_burst(eth_id, 0, &pkt_mbuf, 1) )
   ;

> Did anyone have similar issues or know what could cause such behavior?

I met a somewhat similar issue, when I implemented the first version of 
siitperf: https://github.com/lencsegabor/siitperf

Then I was not aware of RFC 4814 yet, so I always transmitted the very 
same frame for throughput measurements, but I used a counter to be able 
to uniquely identify the test frames for packet delay variation 
measurement. I wanted to use the frame as a template and I modified its 
counter (and checksum) field after sending.  I have found that even if 
the rte_eth_tx_burst() function reported that the frame was sent, it was 
still in the buffer and I have rewritten its counter. (The receiver 
reported no frame with counter value 0, and 2 frames with the highest 
value of the counter.)
To circumvent the problem, I used an array of frames and I modified 
always the next element (modulo array size).

Best regards,

Gábor

[-- Attachment #2: Type: text/html, Size: 2384 bytes --]

  parent reply	other threads:[~2021-12-22 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-22  9:56 Michał Niciejewski
2021-12-22 10:24 ` Van Haaren, Harry
2021-12-22 16:30   ` Michał Niciejewski
2022-01-18 13:41     ` Michał Niciejewski
2021-12-22 12:28 ` Gábor LENCSE [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-21 11:48 Michał Niciejewski

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=36e7779e-b2e1-657e-da42-bf14bb34e29a@hit.bme.hu \
    --to=lencse@hit.bme.hu \
    --cc=users@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).