HardenedBSD/usr.bin/netstat
Adrian Chadd 0e778c88c9 Don't insert a flowtable entry if the lle isn't yet valid.
Some of the collisions that are occuring are due to flowtable lookups
that succeed but have an invalid lle - typically because the L2 adjacency
lookup hasn't completed.  This would lead to a follow-up insert which
would then fail (ie, collision) and the code would fall through to doing
a slow-path L2/L3 lookup in the netinet/netinet6 code.

This patch simply aborts storing a new flowtable entry if the lle isn't
yet valid.

Whilst I'm here, add a new pcpu counter for the item so the number of
failures can be tracked separately from generic "collisions."

Reviewed by:	glebius
MFC after:	10 days
Sponsored by:	Netflix, Inc.
2014-02-14 00:05:09 +00:00
..
atalk.c
bpf.c
flowtable.c Don't insert a flowtable entry if the lle isn't yet valid. 2014-02-14 00:05:09 +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
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
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
unix.c