summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r311963: Remove writability requirement for single-mbuf, contiguous-rpokala2017-01-191-1/+1
| | | | | | | | | | range m_pulldown() m_pulldown() only needs to determine if a mbuf is writable if it is going to copy data into the data region of an existing mbuf. It does this to create a contiguous data region in a single mbuf from multiple mbufs in the chain. If the requested memory region is already contiguous and nothing needs to change, the mbuf does not need to be writeable.
* MFC 310847 310864jpaetzel2017-01-191-16/+110
| | | | | | | | | | | | | | | | | | | | | | | | Harden CARP against network loops. If there is a loop in the network a CARP that is in MASTER state will see it's own broadcasts, which will then cause it to assume BACKUP state. When it assumes BACKUP it will stop sending advertisements. In that state it will no longer see advertisements and will assume MASTER... We can't catch all the cases where we are seeing our own CARP broadcast, but we can catch the obvious case. Unbreak ip_carp with WITHOUT_INET6 enabled by conditionalizing all IPv6 structs under the INET6 #ifdef. Similarly (even though it doesn't seem to affect the build), conditionalize all IPv4 structs under the INET #ifdef This also unbreaks the LINT-NOINET6 tinderbox target on amd64; I have not verified other MACHINE/TARGET pairs (e.g. armv6/arm). Submitted by: torek Obtained from: FreeNAS Pointyhat fix: ngie
* MFC 311122jpaetzel2017-01-191-28/+11
| | | | | | Workaround NFS bug with readdirplus when there are greater than 1 billion files in a filesystem. Reviewed by: kib
* MFC r311971: Report random flash storage as non-rotating to GEOM_DISK.mav2017-01-195-10/+16
| | | | While doing it, introduce respective constants in geom_disk.h.
* MFC r293040,293341,293435:delphij2017-01-193-352/+40
| | | | | | Reduce libstand Makefile duplication. PR: 216251
* MFC r311984:kib2017-01-191-8/+20
| | | | | For the main binary, postpone enforcing relro read-only protection until copy relocations are done.
* MFC: r273180, r283754, r297329, r299414, r300707, r310309, r310340 (partial),marius2017-01-186-33/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r310341, r311664, r311793-311794 o Use correct response bits for MMC_RSP_R4-R7 types o Make sdhci(4) work after suspend/resume for chipsets that require the frequency quirk. This makes it work on eg ThinkPad T420. o Add a convenience macro that masks all the bits related to clock divisors in all versions of the sdhci spec (the HI bits are just unused reserved bits in earlier versions). o sdhci/mmc: Minor whitespace cleanups o Add Braswell PCI IDs for Intel Cherryview o mmc: Accept even lower voltage for Cherryview And HP x2 210, per DragonFlyBSD 240bd9cd58f8259c12c14a8006837e698. o In mmcsd_task(), bio_resid was not being set to 0 on a successful read or write, resulting in random short-read and short-write returns for requests. Fixing this fixes nominal block I/O via mmcsd(4). Obtained from: DragonFlyBSD (fd4b97583be1a1e57234713c25f6e81bc0411cb0) o Add support for Intel Apollo Lake and Bay Trail eMMC PCI controllers. o Flesh out the support for Intel Braswell eMMC controllers further. o In sdhci_init_slot(), use the right capability field for determining the announced bus width based on MMC_CAP_*_BIT_DATA.
* MFC: r296135marius2017-01-1811-42/+38
| | | | | | | Replace several bus_alloc_resource() calls with bus_alloc_resource_any() Most of these are BARs, and we allocate them in their entirety. The one outlier in this is amdsbwd(4), which calls bus_set_resource() prior.
* MFC 310028: Use db_lookup_proc() in the DDB 'show procvm' command.jhb2017-01-181-1/+1
| | | | This allows processes to be identified by PID as well as a pointer address.
* MFC r311947, r311981:pfg2017-01-182-3/+9
| | | | | | | | | | | | | | rpcgen(1): Avoid unused variable warning on generated code. Avoid "unused variable 'i'" warnings in generated .c files by only emitting the "int i;" for non-opaque arrays. Opaque arrays use xdr_opaque() rather than iterating over the array. Obtained from: OpenBSD (CVS rev 1.28) rpcgen(1): Check getrlimit() return for generated code. Obtained from: NetBSD (CVS rev 1.27, 1.28)
* MFC r310630: libkvm: support access to vmm guest memory, allow writes toavg2017-01-183-7/+49
| | | | | | fwmem and vmm Sponsored by: Panzura
* MFC r311275: Restructure libz.delphij2017-01-1849-44/+627
|
* MFC r309527-309528:yongari2017-01-183-0/+11
| | | | | | | | | r309527: Recognize RealTek ALC1150 7.1 channel HD audio codec. r309528: Fix too low volume on MSI H170 GAMING M3 board by poking vendor specific COEF.
* MFC r302548:yongari2017-01-181-13/+1
| | | | | | | | Belatedly remove CSUM_IP_FRAGS and CSUM_FRAGMENT offloading capabilities. It was removed in r243624 and r254804/r271006 respectively. This file and mbuf(9) needs updates for other offloading capabilities(i.e. CSUM_SCTP and CSUM_TSO).
* MFC r295736,295738:yongari2017-01-181-9/+7
| | | | | | | | | r295736: Remove duplicated check. r295738: Fix a bug introduced in r295736 TX descriptor address should be updated for valid chain.
* MFC r295735:yongari2017-01-187-7/+7
| | | | Fix variable assignment.
* MFC r304576:yongari2017-01-181-1/+3
| | | | Add Killer E2400 to the supported hardware list.
* MFC r304574-304575,304584:yongari2017-01-184-13/+32
| | | | | | | | | | | | | | | | | | | | | r304574: Correct DMA channel number selection on AR816x family of controllers. For Gigabit Ethernet version of AR816x, AR813x/AR815x except L1D controller, use vendor recommended ASPM parameters. While here, increase alc_dma_burst array size. Broken H/W can return bogus value in theory. r304575: Add Killer E2400 Gigabit Ethernet support. It seems Killer E2200/E2400 has a BIOS misconfiguration or silicon bug which triggers DMA write errors when driver uses advertised maximum payload size. Force the maximum payload size to 128 bytes in DMA configuration. This change should fix occasional DMA write errors reported on Killer E2200. r304584: Add a missing change in r304575.
* MFC r299864,r303166:ngie2017-01-172-2/+1
| | | | | | | | | | r299864 (by markj): opt_kdtrace.h is not needed for SDT probes as of r258541. r303166 (by imp): Add opt_ddb.h.
* MFC r311650lifanov2017-01-171-1/+1
| | | | | | | | | | | Restore priority value for OGIO_KEYMAP PR: 206678 Submitted by: ecturt@gmail.com Reviewed by: cem Approved by: cem, matthew (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5095
* MFC r311879:kib2017-01-171-4/+4
| | | | Use ANSI C definitions, update comment.
* Fix mismerge in r312117. This is a direct commit to stable/10.np2017-01-171-1/+0
|
* MFC r312113:ngie2017-01-171-6/+6
| | | | Clean up trailing whitespace
* MFC r312122:ngie2017-01-1711-4519/+0
| | | | | | Remove contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind This should have been pruned in r305358
* MFC r312111:ngie2017-01-171-1/+1
| | | | Remove unused vars to fix -Wunused issues
* MFC r312118,r312121:ngie2017-01-171-1/+1
| | | | | | | | | | | | | | | r312118: Fix -Wformat issue with zero-length format string passed to err(3) Tested with: clang, gcc 4.2.1, gcc 4.9 r312121: Follow up to r312118 State that execve failed instead of just printing out the program name and strerror(errno) via err(3).
* MFC r311815:kib2017-01-161-4/+9
| | | | Forcibly remove the cached items from pseudofs vncache on module unload.
* MFC r311781:kib2017-01-162-11/+1
| | | | Use standard Versions.def for libprocstat.
* MFC r311780:kib2017-01-161-1/+1
| | | | Use tab for indent.
* MFC r311769:smh2017-01-161-3/+3
| | | | | | Fix rstat: symbol not in namelist from netstat Sponsored by: Multiplay
* MFC r312009:ngie2017-01-161-18/+18
| | | | | | Add license preamble for r286964; credit to asomers While here, clean up trailing whitespace
* MFC r312009:ngie2017-01-161-3/+29
| | | | | | Add license preamble for r286964; credit to asomers While here, clean up trailing whitespace
* MFC r311140:ngie2017-01-164-4/+4
| | | | | | | | | | | | Only bake krb5_config.h support in to ssh(3), etc if both MK_GSSAPI and MK_KERBEROS_SUPPORT != no This fixes the odd case where someone specified MK_GSSAPI=no and MK_KERBEROS_SUPPORT=yes (which admittedly, probably doesn't make sense, but the build system doesn't prevent this case today, and it didn't when I filed the bug back in 2011 either). PR: 159745
* MFC r310656,r311221:ngie2017-01-161-1/+2
| | | | | | | | | | | | | | | r310656: style(9): sort alignment in udp_recv(..) r311221: Initialize msg.msg_flags to 0 This mutes a valid coverity warning about it being uninitialized when passed in to sendmsg(2). CID: 1368202
* MFC r310655:ngie2017-01-165-21/+39
| | | | | | | | | | | | | | | Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used as the listening address in snmpd_input(..) Stash the IPv4 address of the receiver via the recv(..) callback and use it in the send(..) callback for the transport by specifying IP_SENDSRCADDR for the control message type. Add sendmsg logic to the UDP transport's send(..) callback and use the respective send(..) callback for the transport instead of calling sendto in snmpd_input(..). Obtained from: Isilon OneFS (^/onefs/branches/BR_8_0_0_DEV@r507595)
* MFC r311740:ngie2017-01-162-4/+6
| | | | | | | | Improve the smilint target in the hostres and mibII modules - Mark the smilint target .PHONY so it's always executed when requested - Leverage .PATH for BMIBS instead of spelling the path out longhand for them
* MFC r311742:ngie2017-01-161-0/+3
| | | | | | | Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at
* MFC r311758:ngie2017-01-161-1/+3
| | | | | | | Add a REVISION section to track changes for the BEGEMOT-ATM-FREEBSD-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at
* MFC r311741,r311761:ngie2017-01-162-0/+16
| | | | | | | | | | | | | | | | | r311741: Add a REVISION section to track changes for the hostres module There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at r311761: Add a REVISION section to track changes for the BEGEMOT-NETGRAPH MIB file This change also documents the modification harti made to a handful of objects in r122758 (the max OCTET STRING width was increased from 15 to 31 octets)
* MFC r311759,r311760:ngie2017-01-162-0/+6
| | | | | | | | | | | | | | | | r311759: Add a REVISION section to track changes for the FOKUS-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at r311760: Add a REVISION section to track changes for the BEGEMOT-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at
* MFC r311101:pfg2017-01-163-9/+11
| | | | | | | | | libkvm - extend a bit the swap statistics field. Change ksw_used and ksw_total to unsigned, which increases the maximum total swap that can be displayed properly from ~8TB to ~16TB. Obtained from: DragonflyBSD (ecc2e461)
* MFC r283263, r289359, r308187, r311660, r311693, r311727, r311797:ian2017-01-154-45/+162
| | | | | | | | | | | | | | | | | | | | | | | Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing this value at runtime. Add support for the BCM57765 card reader. Toggle card insert/remove interrupt enable bits on events. Add a new sdhci interface method, get_card_present(). Now that the PRESENT_STATE register is only used for the inhibit bits loop in this function, sdhci_start_command(), eliminate the state variable and restructure the loop to read the register just once at the top of the loop. Add support for non-removable media, and a quirk to use polling to detect card insert/remove events on controllers that don't implement the insert and remove interrupts. Add sdhci_handle_card_present_locked() that can be called from the interrupt handler which already holds the mutex, and have sdhci_handle_card_present() be just a tiny wrapper that does the locking for external callers.
* MFC r311848:np2017-01-141-0/+1
| | | | cxgbe(4): Attach to the 2x25 debug card. This is for internal use only.
* MFC r311831 and r311832.np2017-01-141-2/+3
| | | | | | | | | | r311831: cxgbe(4): The wraparound logic in start_wrq_wr() should not get involved in work requests that end at the end of the descriptor ring, even though the pidx wraps around to 0. r311832: cxgbe(4): Enable automatic cidx flush for all control queues.
* MFC r311646:kib2017-01-141-1/+1
| | | | Define _POSIX_PRIORITY_SCHEDULING as 0, to account for the kernel option.
* MFC r311983arybchik2017-01-142-0/+49
| | | | | | | | sfxge(4): add sysctl to change MAC stats update period The sysctl controls the period per interface. Sponsored by: Solarflare Communications, Inc.
* MFC r311977arybchik2017-01-144-4/+45
| | | | | | sfxge(4): add tunable to configure MAC stats update period Sponsored by: Solarflare Communications, Inc.
* MFC r311962arybchik2017-01-143-14/+10
| | | | | | | | | | sfxge(4): stats refresh in SW should depend on HW update period The period should be taken into account by the function which refreshes driver stats. Reviewed by: philip Sponsored by: Solarflare Communications, Inc.
* MFC r311961arybchik2017-01-142-11/+15
| | | | | | | | | sfxge(4): do not ignore requested MAC stats update period Firmware version which takes PERIOD_MS parameter into account is required. Sponsored by: Solarflare Communications, Inc.
* MFC r311877arybchik2017-01-141-0/+14
| | | | | | | | | | | | | | | | sfxge(4): avoid unnecessary mbuf data prefetch Unnecessary prefetch just loads HW prefetcher and displaces other cache entries (which could be really useful). If we parse mbuf for TSO early and use firmware-assisted TSO, we do not expect mbuf data access when we compose firmware-assisted TSO (v1 or v2) option descriptors. If packet header needs to be linearized or finally FATSO cannot be used because of, for example, too big header, we do not care about a bit more performance degradation because of prefetch absence (it is better to optimize more common case). Sponsored by: Solarflare Communications, Inc.
OpenPOWER on IntegriCloud