Re: PF_RING + bridge continue

Eitan Michaelson <[email protected]> Sun, 14 Jul 2019 20:55:24 +0300
Newsgroups gmane.linux.ntop.devel
Message-ID <[email protected]>
--===============6139973746141496493==
Content-Type: text/html; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit

<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;"
    bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>Looks like after the first packet is drooped there is no way for
      my application to continue and receive packets.</p>
    <p>As long as there are no doped packets all is OK, the first drop
      practically breaks the application.</p>
    <p>It does not matter if pfring_recv() is blocking or not</p>
    <p><br>
    </p>
    <p>[  679.175760] [PF_RING] Welcome to PF_RING 7.5.0 ($Revision:
      unknown$) // Custom kernel<br>
      [  679.175760] (C) 2004-17 ntop.org<br>
      [  679.185328] LINUX_VERSION_CODE 00040E7B<br>
      [  679.189173] [PF_RING] Min # ring slots 4096<br>
      [  679.193358] [PF_RING] Slot version     17<br>
      [  679.197368] [PF_RING] Capture TX       Yes [RX+TX]<br>
      [  679.202183] [PF_RING] IP Defragment    No<br>
      [  679.206208] NET: Registered protocol family 27<br>
      [  679.210679] [PF_RING] pf_ring initialized correctly</p>
    <p><br>
    </p>
    <br>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 14/07/2019 19:38, Eitan Michaelson
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:[email protected]">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
      <p>Hello, <br>
      </p>
      <p><br>
      </p>
      <p>After some more testing it looks like it might have nothing to
        do with PF_RING attached to a bridge.</p>
      <p>My test is sending a 1024 bytes UDP packet at a fast rate
        (about 110,000 packets per second) to a small old Linux</p>
      <p>box running the PF_RING enabled process. </p>
      <p><br>
      </p>
      <p>The process is pending on pfring_recv() waiting to get new
        packets on br0 .<br>
      </p>
      <p><br>
      </p>
      <p>What I was able to see is that at some point after the test has
        started, </p>
      <p>the drops count (got it from pfring_stats()) went up rapidly.<br>
      </p>
      <p>while pfring_recv() was pending forever and not getting
        triggered to read more packets.<br>
      </p>
      <p><br>
      </p>
      <p>What did I do wrong?<br>
        Thanks</p>
      <p>Eitan.</p>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Ntop-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="http://listgateway.unipi.it/mailman/listinfo/ntop-dev">http://listgateway.unipi.it/mailman/listinfo/ntop-dev</a></pre>
    </blockquote>
  </body>
</html>

--===============6139973746141496493==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
--===============6139973746141496493==--