title: Preventing DPDK packet loss in L2 forwarding
body: <p>Hello I have implemented pingpong for DPDK. 
  with the client sending the packets and the server receiving the packets and then returning them. </p>
  
  <p>The server part is implemented similar to the L2 forwarding sample in the DPDK official website. </p>
  
  <p>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. </p>
  
  <p>My question is ... is there a way to make the packet loss into zero? </p>
  
  <p>I could not find the solution to this since the sample applications from DPDK website all have packet losses.  </p>
  
  <p>the packet losses are counted by the callback function below</p>
  
  <pre><code>rte_eth_tx_buffer_set_err_callback(tx_buffer[portid], rte_eth_tx_buffer_count_callback, &amp;port_statistics[portid].dropped);
  </code></pre>
  
  <p>this is the result I have from the L2 forwarding </p>
  
  <pre><code>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              
  ====================================================
  </code></pre>
  
  <p>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. </p>