summaryrefslogtreecommitdiff
path: root/locking.h
AgeCommit message (Expand)AuthorFilesLines
2015-03-30mz: Make access to pcap init functions thread safeVadim Kochan1-0/+2
2015-03-20flowtop: Don't init screen until collector is readyVadim Kochan1-0/+31
2014-04-22built_in: Remove unnecessary #include <built_in.h> from several headersTobias Klauser1-2/+0
2013-06-04misc: cleanup header commentsDaniel Borkmann1-6/+0
2013-05-10make: allow to overwrite CFLAGS, CCACHEDaniel Borkmann1-1/+1
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+97
e reset, possibly through FLR or other backdoors, to put things back into a working state. This is important for backdoor resets, but we can actually just virtualize the "front door" resets provided via PCIe and AF FLR. Set these bits as virtualized + writable, allowing the default write to set them in vconfig, then we can simply check the bit, perform an FLR of our own, and clear the bit. We don't actually have the granularity in PCI to specify the type of reset we want to do, but generally devices don't implement both PCIe and AF FLR and we'll favor these over other types of reset, so we should generally lineup. We do test whether the device provides the requested FLR type to stay consistent with hardware capabilities though. This seems to fix several instance of devices getting into bad states with userspace drivers, like dpdk, running inside a VM. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Greg Rose <grose@lightfleet.com>
Diffstat