Re: m_pkthdr.rcvif dangling pointer problem

2011-07-17 Thread Vadim Goncharov
Hi Gleb Smirnoff! On Thu, 14 Jul 2011 19:44:57 +0400; Gleb Smirnoff wrote about 'm_pkthdr.rcvif dangling pointer problem': > 1) Every m_pkthdr.rcvif should if_ref() the interface. Releasing > references can be done in the mbuf allocator: mb_dtor_mbuf(), > mb_dtor_pack(). I'm afraid this appro

Re: m_pkthdr.rcvif dangling pointer problem

2011-07-17 Thread Ryan Stone
On Sun, Jul 17, 2011 at 7:59 AM, Vadim Goncharov wrote: > Ways to improve are to be found from this starting point. However, > are that +2 atomic ops per packet really so expensive? How many of > atomic ops are already on that path? Any measures? On high-performance multiqueue NICs, those two ato

Re: (TCP/IP) Server side sends RST after 3-way handshake.Syn flood defense or queue overflow?

2011-07-17 Thread Vladimir Budnev
> When you enable "net.inet.tcp.log_debug=1" it will tell you at LOG_DEBUG > level what went wrong and why it sent the RST. > Thank you Andre. Now its clear what causes the problem, here is what i got in logs: Jul 18 10:33:55 kernel: TCP: [127.0.0.1]:52971 to [127.0.0.1]:10002 tcpflags 0x10; tcp