freebsd-dev/usr.bin/netstat
Gleb Smirnoff f0e49f6631 Whenever flowtable lookup fails, we do route lookup and then try to
insert flow entry. During the route lookup the critical section is
exited. It may happen, that after route lookup we will be executed
on an other CPU that already has such flowentry. Before this change
we simply freed the flowentry and returned to ip_output() with
failure.

Actually there is nothing wrong with using previously allocated
flow entry, updating it properly. Thus, make flowentry_insert()
return the new either old fle, and make use of it.

Count reuses as "collisions" and real inserts as "inserts".

Reviewed by:	adrian
Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.
2014-02-14 10:56:26 +00:00
..
atalk.c Revert r228650, and work around the clang false positive with printf 2011-12-17 22:32:00 +00:00
bpf.c Revert most part of 200420 as requested, as more review and polish is 2009-12-13 03:14:06 +00:00
flowtable.c Whenever flowtable lookup fails, we do route lookup and then try to 2014-02-14 10:56:26 +00:00
if.c Claim copyright since I've almost rewritten this file in r256512. 2013-12-29 19:31:49 +00:00
inet6.c - Use getnameinfo(3) instead of gethostbyaddr(3) or inet_ntop(3). 2013-08-17 17:23:42 +00:00
inet.c Print the MD5 signature information introduced in r221023 in the 2014-02-05 20:43:03 +00:00
ipsec.c Remove the large part of struct ipsecstat. Only few fields of this 2013-07-23 14:14:24 +00:00
ipx.c Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
main.c o Revamp API between flowtable and netinet, netinet6. 2014-02-07 15:18:23 +00:00
Makefile o Revamp API between flowtable and netinet, netinet6. 2014-02-07 15:18:23 +00:00
mbuf.c Remove obtained, but never used data. 2013-10-15 09:21:05 +00:00
mroute6.c Use more fine-grained kvm(3) symbol lookup: routing code retrieves only 2013-12-20 00:17:26 +00:00
mroute.c Use more fine-grained kvm(3) symbol lookup: routing code retrieves only 2013-12-20 00:17:26 +00:00
netgraph.c Use more fine-grained kvm(3) symbol lookup: routing code retrieves only 2013-12-20 00:17:26 +00:00
netisr.c WARNS=6 compliance 2013-02-19 13:17:16 +00:00
netstat.1 Bump dates in nestat(1) and route(8) man pages. 2014-01-11 09:44:00 +00:00
netstat.h o Revamp API between flowtable and netinet, netinet6. 2014-02-07 15:18:23 +00:00
pfkey.c Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat, 2013-07-09 10:08:13 +00:00
route.c Explicitly free rt_tables to please Coverity. 2013-12-31 12:11:48 +00:00
sctp.c WARNS=6 compliance 2013-02-19 13:17:16 +00:00
unix.c WARNS=6 compliance 2013-02-19 13:17:16 +00:00