DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Preventing DPDK packet loss in L2 forwarding
@ 2017-12-14 19:13 Sungho Hong
  0 siblings, 0 replies; only message in thread
From: Sungho Hong @ 2017-12-14 19:13 UTC (permalink / raw)
  To: users

Hello I have implemented pingpong for DPDK. with the client sending the
packets and the server receiving the packets and then returning them.

The server part is implemented similar to the L2 forwarding sample in the
DPDK official website.

While doing the L2 forwarding I have noticed that there are packet losses
while I forward the the packets from the receiver queue to the transfer
queue.

My question is ... is there a way to make the packet loss into zero?

I could not find the solution to this since the sample applications from
DPDK website all have packet losses.

the packet losses are counted by the callback function below

rte_eth_tx_buffer_set_err_callback(tx_buffer[portid],
rte_eth_tx_buffer_count_callback, &port_statistics[portid].dropped);



this is the result I have from the L2 forwarding

Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent:                   384126
Packets received:               379889
Packets dropped:                  4237
Aggregate statistics ===============================
Total packets sent:             384126
Total packets received:         379889
Total packets dropped:            4237
====================================================

since my implementation is just pingpong and have very simple
implementation, I don't believe that there should be any packet losses in
my case.




Thank you for reading this letter
Sungho Hong

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

only message in thread, other threads:[~2017-12-14 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 19:13 [dpdk-users] Preventing DPDK packet loss in L2 forwarding Sungho Hong

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