summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-27Make iwm(4) use CTS-to-self for HT protection if the AP requests this,Stefan Sperling
rather than always using RTS for HT protection.
2019-02-27update RFC references, from tobias_heider at genua.de, ok claudio@Stuart Henderson
2019-02-27Back in 2016 we enabled RTS threshold by default because it apparentlyStefan Sperling
helped us on a loaded hackathon wifi network. In 11n mode we are now using a heuristic for this. Disable RTS threshold for all other modes again because it can do more harm than good in many situations. This change may increase Tx throughput in 11a/g modes, though results depend on the driver. Some drivers, e.g. urtwn(4), keep using RTS regardless for unknown reasons and may need to be fixed separately. And we will keep using RTS if the AP enables 11g protection while 11b clients are around.
2019-02-27try to make this check work better and gather more outputSebastian Benoit
2019-02-27Make xhci_ring_produce() check the previous TRB to find out if itPatrick Wildt
needs the Chain Bit set or not instead of using the last parameter, which is used to mark the last TRB in a USB transfer, not in a TD. To make that work we need to setup the recently acquired TRB before calling xhci_xfer_get_trb() the next time. Thus setting up the initial TRB has to happen right away. To kick the transfer off we simply flip the toggle bit on the first TRB right at the end. Fixes regression for jcs@, dhill@ and stsp@ Initially discussed with mpi@ ok stsp@
2019-02-27remove unused includesdenis
OK yasuoka@
2019-02-27Adjust to the last bgpd change. sa2addr gets an extra agrument andClaudio Jeker
local and remote address in struct peer changed to bgpd_addrs. OK benno@
2019-02-27Convert the remote and local addresses in struct peer to be bgpd_addrsClaudio Jeker
instead of sockaddr_storage. This again helps protability and simplifies some code. sa2addr now takes an optional pointer to return the port of the sockaddr. OK benno@
2019-02-27Fix export none. none became a keyword some time ago and so this broke.Claudio Jeker
Switch also default-route to a keyword and remove the old 6.3/6.4 announce compat code. Reported by florian@ OK benno@
2019-02-27Test the export statement for neighborsClaudio Jeker
2019-02-27Implement support for dynamic RTS threshold in MiRA.Stefan Sperling
Improves throughput and latency on 11n networks. Tested by myself, jmc@, jcs@, phessler@, benno@
2019-02-27Fix iwn(4) scan misreporting the channel of wifi networks in some situations.Stefan Sperling
Problem noticed by jmc@
2019-02-26In preparation for reusing libLLVM component library Makefiles to buildJonathan Gray
libLLVM from a single directory avoid reused filenames by symlinking duplicated names with a prefix of the component library name so object file names will be unique. symlink approach suggested by deraadt@ ok patrick@
2019-02-26syncTheo de Raadt
2019-02-26crank to 6.5-betaTheo de Raadt
2019-02-26define LLVM_ENABLE_THREADS and LLVM_HAS_ATOMICSJonathan Gray
matches the result of building with cmake ok patrick@
2019-02-26tweak the mbuf loading in the tx path so it's easier to read.David Gwynne
count mbuf load failures as output errors so i can see if that's a problem (it's not, but at least i can see it isn't now).
2019-02-26use real format strings, resolve compiler warnings; ok millert@cheloha
2019-02-26add domain-search to the list of options capable of adding to resolv.conf;Jason McIntyre
confirmed by and ok krw
2019-02-26Move release check up front.Antoine Jacoutot
2019-02-26Fix sending IKEV2_CFG_INTERNAL_IP6_DNS, IKEV2_CFG_INTERNAL_IP6_NBNS,Patrick Wildt
IKEV2_CFG_INTERNAL_IP6_DHCP and IKEV2_CFG_INTERNAL_IP6_SERVER by using the correct member in the iked_addr struct for the address. From Aram Havarnean
2019-02-26Correct return values for non-fatal alerts.Joel Sing
In the close notify case we need to signal EOF and in the user cancelled case we need to return WANT_POLLIN. Returning success results in tls13_record_layer_read_record() thinking that we have record data when we do not, which then results in the content type check later failing. ok tb@
2019-02-26Correctly propagate EOF from BIO in tls13_legacy_wire_read().Joel Sing
ok tb@
2019-02-26Correctly handle tls_read() and tls_write() failures.Joel Sing
Otherwise a TLS error (for example the remote end sent a fatal alert) is silently ignored. ok bluhm@ tb@
2019-02-26syncVisa Hankala
2019-02-26Add manual pages for SMR.Visa Hankala
OK mpi@ sashan@
2019-02-26Introduce safe memory reclamation, a mechanism for reclaiming sharedVisa Hankala
objects that readers can access without locking. This provides a basis for read-copy-update operations. Readers access SMR-protected shared objects inside SMR read-side critical section where sleeping is not allowed. To reclaim an SMR-protected object, the writer has to ensure mutual exclusion of other writers, remove the object's shared reference and wait until read-side references cannot exist any longer. As an alternative to waiting, the writer can schedule a callback that gets invoked when reclamation is safe. The mechanism relies on CPU quiescent states to determine when an SMR-protected object is ready for reclamation. The <sys/smr.h> header additionally provides an implementation of singly- and doubly-linked lists that can be used together with SMR. These lists allow lockless read access with a concurrent writer. Discussed with many OK mpi@ sashan@
2019-02-26ikectl's built-in CA command for simple configurations has a fixed certificateStuart Henderson
validity for the ca certificate. Raise this from 365 days to 4500 as expiry means installing new CA certificates on all client machines which can cause significant pain. This doesn't change the default validity for server certificates which remains at 1 year (controlled by ikeca.cnf) - refreshing key and certificate on these can be done easily without visiting all machines. ok deraadt@
2019-02-26Add missing break; in case statement and while there check that theClaudio Jeker
filter_community type is valid. Found while looking into a gcc warning about uninitialized data.
2019-02-26Some betoh64 sneaked in again, change to be64toh to be posix compliant.Claudio Jeker
2019-02-26To simplify the upcoming UTF-8 cleanup in less(1), delete supportIngo Schwarze
for ANSI escape sequences introduced by an 8-bit CSI (e.g. "\23343m") because these are neither compatible with UTF-8 nor strictly compatible with pure ASCII and for those introduced by an UTF-8 CSI (e.g. "\302\23343m") because not even xterm(1) supports them at all, not even with a non-default configuration, because both forms are very rarely used, if at all, and because the current code trying to support them doesn't even appear to work according to my tests. Full support for the ESC-[ CSI (e.g. "\033[43m") remains. Tweaks and OK millert@, OK nicm@, and sthen@ agrees with the general direction.
2019-02-26Extend ext-community test to include most of the possible wildchar supportClaudio Jeker
2019-02-26Add support for '*', local-as and neighbor-as for ext-community matchingClaudio Jeker
and setting. This allows rules like: ext-community * * # delete any ext-community ext-community ovs * # delete any ext-community of specified type ext-community rt 1.2.3.4:* and ext-community rt 65001:local-as ext-community rt local-as:11111 Note: Sometimes the type of the ext-community is underspecified when using wildchars or expands. So 'ext-community rt *' or 'ext-community soo *' will match for any of the 3 possible types (2-byte AS, 4-byte AS and IP address). If local-as/neighbor-as is used as an expand of as-number like ext-community rt local-as:11111 then bgpd will default to the 4-byte AS type to encode the community. OK benno@
2019-02-26Re-enable interrupts on resume with RF switch disabledkn
When disabling the switch, suspending and eventually resuming again with wifi still off, re-enabling the switch has no effect due to interrupts being disabled completely. To ensure seemless operation, explicitly enable interrupts during hardware initialization iff the switch is disabled. While here, initialize the interrupt mask up front to avoid clearing the previously set mask in any case. OK mlarkin, Feedback and OK ststp
2019-02-26syncTheo Buehler
2019-02-26g/c unused robots_roll file.Theo Buehler
From Randy Hartman
2019-02-26i forgot to commit a regen after fixing some bcm entriesDavid Gwynne
2019-02-26don't let rxr completely fill the rxr ring.David Gwynne
at the moment there are 256 slots on the right. if rxr raises the high watermark to 256, we overwrite ring entries.
2019-02-26get rid of the mpw goopDavid Gwynne
this reduces the output that mpw interfaces generate from 3 lines to the one generic mpls and pwe3 line. mpw can be configured with the individual ioctls, and gains the ability to do flow aware transport.
2019-02-26don't check the pseudowire type in tx and rx paths.David Gwynne
whether the mpw interface is advertising "ethernet" or "ethernet- tagged" is something the ends of the wire agree on (ie, ldpd is configured a certain way), it is not something that affects ethernet encap or decap. the MPW ioctls can still configure it and read it, but it has no bearing on how the driver operates on packets.
2019-02-26implement support for pwe3 ioctlsDavid Gwynne
this allows individual configuration of the use of control words, flow aware tranport labels, and the local and remote label plus neighbor individually. discussed with claudio@ at a2k19 ok mpi@
2019-02-26use NET_LOCK to coordinate destroying a cloned interface.David Gwynne
2019-02-26add support for the new pwe3 ioctls.David Gwynne
the existing mpw ioctl is still available for ldpd to use for a (short) while. discussed with claudio@ at a2k19 ok mpi@
2019-02-26check for root on mpls and pwe3 ioctlsDavid Gwynne
part of a larger diff ok mpi@
2019-02-26add some generic ioctls for configuring mpls pseudowire parameters.David Gwynne
these will replace the monstor mpw ioctl, and will be used by an upcoming mpls ip tunnel interface driver. discussed with claudio@ at a2k19 ok mpi@
2019-02-26put the rx buffer at the end of the cluster.David Gwynne
makes m_prepend later less likely to allocate a new mbuf.
2019-02-26avoid a deadlock in ixl_down when calling ifq_barrier.David Gwynne
this is particularly noticable on sparc64 when you reboot. ok jmatthew@
2019-02-26put the rx buffer at the end of the mbufDavid Gwynne
this should give a bit of space if the packet needs an m_pullup. care is taken to ensure the packet is still aligned for the ip stack. ok and tweaks claudio@
2019-02-25syncStuart Henderson
2019-02-25create a RETURN VALUES section and put things that return in there.David Gwynne
hopefully it is a bit more obvious that what rw_enter returns can be passed up to userland. reads ok jmc@ ok mpi@