<div dir="ltr"><div>Thanks for your replay.<br>Is this ring-size the size of NIC rx-ring size, that set by ethtool? or the size of rx-ring that contain sk-buffs (socket buffer)?<br></div><div>I studied some code of suricata/src/source-af-packet.c and saw that buffer-size is used by setsockopt() function to set tcp buffer size (that its max size is limited by rmem_max). Af-packet is a layer2 socket, So is it needed to use this buffer?<br>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 8:47 PM, Peter Manev <span dir="ltr"><<a href="mailto:petermanev@gmail.com" target="_blank">petermanev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Aug 2, 2014 at 7:52 AM, Mahnaz Talebi <<a href="mailto:mhnz.talebi@gmail.com">mhnz.talebi@gmail.com</a>> wrote:<br>
> Hi,<br>
> what is mean of ring-size in af-packet mode? Is it related to rx-ring or<br>
> socket buffer (which contain sk-buffs)? or it is related to new buffer that<br>
> created by suricata? How about buffer-size?<br>
> I'm confused about the meaning of their.<br>
><br>
><br>
<br>
</div></div>Use ring-size on kernels bigger than 3.2 and when you use >1 threads.<br>
Basically it a s per thread packet buffer.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
--<br>
Regards,<br>
Peter Manev<br>
</font></span></blockquote></div><br></div>