aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* vdev_geom may associate multiple vdevs per g_consumerAlan Somers2017-05-111-49/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vdev_geom.c currently uses the g_consumer's private field to point to a vdev_t. That way, a GEOM event can cause a change to a ZFS vdev. For example, when you remove a disk, the vdev's status will change to REMOVED. However, vdev_geom will sometimes attach multiple vdevs to the same GEOM consumer. If this happens, then geom events will only be propagated to one of the vdevs. Fix this by storing a linked list of vdevs in g_consumer's private field. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c * g_consumer.private now stores a linked list of vdev pointers associated with the consumer instead of just a single vdev pointer. * Change vdev_geom_set_physpath's signature to more closely match vdev_geom_set_rotation_rate * Don't bother calling g_access in vdev_geom_set_physpath. It's guaranteed that we've already accessed the consumer by the time we get here. * Don't call vdev_geom_set_physpath in vdev_geom_attach. Instead, call it in vdev_geom_open, after we know that the open has succeeded. PR: 218634 Reviewed by: gibbs MFC after: 1 week Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D10391 Notes: svn path=/head/; revision=318189
* Improve error messages during command timeout for the mpr and mpsScott Long2017-05-112-9/+11
| | | | | | | | | drivers. Sponsored by: Netflix Notes: svn path=/head/; revision=318188
* Add LTO-8 density codes.Kenneth D. Merry2017-05-112-1/+3
| | | | | | | | | | | | | | | lib/libmt/mtlib.c: Add the LTO-8 density code to the density table in libmt. usr.bin/mt/mt.1: Add the LTO-8 density code, tracks, bpmm, and bpi to the density table in the mt(1) man page. MFC after: 3 days Sponsored by: Spectra Logic Notes: svn path=/head/; revision=318185
* Improve build(7): add missing "buildkernel" and "installkernel"Edward Tomasz Napierala2017-05-111-5/+9
| | | | | | | | | | | | to the example, change the architectures to something more common, and improve description of defaults for TARGET. Reviewed by: bdrewery, ngie, imp (older revisions) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10654 Notes: svn path=/head/; revision=318182
* cpio/tests/test_option_lz4: fix a use after free in the failure caseEnji Cooper2017-05-111-1/+1
| | | | | | | | | | | | This change will be upstreamed to the libarchive project. MFC after: 6 days MFC with: r317782 Reported by: Coverity Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318181
* Mark all md tests as requiring unsafe AIO in order to functionEnji Cooper2017-05-111-0/+1
| | | | | | | | | | | | | | | | | | | These tests have been flapping (failing<->passing) on Jenkins for months. It passes reliably for me if unsafe AIO is permitted, but it doesn't pass on Jenkins reliably if unsafe AIO is disabled (the current default). Mark the tests as requiring unsafe AIO to mitigate the intermittent failures when unsafe AIO isn't permitted. If the kernel code is changed to reliably function with md(4) devices using unsafe AIO, this commit can be reverted. MFC after: 2 months PR: 217261 Reported by: Jenkins Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318180
* procstat(1): also reference icmp(4) and sctp(4)Enji Cooper2017-05-111-0/+2
| | | | | | | | | | | This was missed in the previous commit by accident. MFC after: 3 weeks MFC with: r318178 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318179
* procstat(1): document all possible `PRO` (network protocol) valuesEnji Cooper2017-05-111-1/+59
| | | | | | | | | | | Reference the appropriate section 4 manpages for networking protocols. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318178
* Unconditionally install udp(4) and udplite(4) againEnji Cooper2017-05-112-4/+2
| | | | | | | | | | I added this to the MK_USB != no block in error in r278202. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318177
* Persistently store NIC's hardware MAC address, and add a way to retrive itRavi Pokala2017-05-111-1/+2
| | | | | | | | | | | | | | | An earlier version of r318160 allocated if_hw_addr unconditionally; when it became conditional, I forgot to check for NULL in ether_ifattach(). Reviewed by: kp MFC after: 1 week MFC with: r318160 Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D10678 Pointy-hat to: rpokala Notes: svn path=/head/; revision=318176
* procstat(1): clarify the Signal Disposition sectionEnji Cooper2017-05-111-3/+6
| | | | | | | | | | | | | | | | - Fix a typo (SIGIGN -> SIG_IGN). Use .Dv when referencing SIG_IGN. - Use semi-colons as soft breaks when separating sentences for the FLAGS section. - Tweak wording for C slightly to flow better and to be a bit more technically correct (signals with handlers installed will be caught by the target program). - Reference signal(3) in the SEE ALSO section. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318175
* procstat(1): fix a typo (it's -> its)Enji Cooper2017-05-111-2/+2
| | | | | | | | MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318174
* Implement outputting of IPv6 addresses in the ippool debug list of treeCy Schubert2017-05-111-2/+24
| | | | | | | | | | | | | | type pools (ippool -l -d -t tree). Currently IPv6 in ippool tree type pool handling is partially implemented (meaning it doesn't work). This is the first of a series of commits to remediate ippool. This will be MFCed with a yet to be committed series of fixes to ippool after it has been fully remediated. PR: 218433 Notes: svn path=/head/; revision=318173
* Fix uma_zcreate() align argument, now that the constraint is asserted.Justin Hibbits2017-05-111-2/+2
| | | | | | | | The alignment argument is the mask of low bits to mask off when allocating items in a zone, not the block-size alignment. Notes: svn path=/head/; revision=318171
* Fix stack tracing in dtrace for powerpcJustin Hibbits2017-05-112-42/+29
| | | | | | | | | | | | | | | The current method only sort of works, and usually doesn't work reliably. Also, on Book-E the return address from DEBUG exceptions is not the sentinel addresses, so it won't exit the loop correctly. Fix this by better handling trap frames during unwinding, and using the common trap handler for debug traps, as the code in that segment is identical between the two. MFC after: 1 week Notes: svn path=/head/; revision=318167
* There is no good reason for TCP reassembly zone to be UMA_ZONE_NOFREE.Gleb Smirnoff2017-05-101-1/+1
| | | | | | | | | It has strong locking model, doesn't have any timers associated with entries. The entries theirselves are referenced only from the tcpcb zone, which itself is a normal zone, without the UMA_ZONE_NOFREE flag. Notes: svn path=/head/; revision=318166
* Merge bmake-20170510Simon J. Gerraty2017-05-1031-107/+407
|\ | | | | | | | | | | | | No-op change other than version update. Notes: svn path=/head/; revision=318163
| * Import bmake-20170510Simon J. Gerraty2017-05-1032-110/+414
| | | | | | | | Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=318162
* | Ensure buf2 is in scopeSimon J. Gerraty2017-05-101-2/+1
| | | | | | | | Notes: svn path=/head/; revision=318161
* | Persistently store NIC's hardware MAC address, and add a way to retrive itRavi Pokala2017-05-105-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MAC address reported by `ifconfig ${nic} ether' does not always match the address in the hardware, as reported by the driver during attach. In particular, NICs which are components of a lagg(4) interface all report the same MAC. When attaching, the NIC driver passes the MAC address it read from the hardware as an argument to ether_ifattach(). Keep a second copy of it, and create ioctl(SIOCGHWADDR) to return it. Teach `ifconfig' to report it along with the active MAC address. PR: 194386 Reviewed by: glebius MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D10609 Notes: svn path=/head/; revision=318160
* | ipfw nat and natd support multiple aliasing instances with "nat global" featureEugene Grosbein2017-05-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that chooses right alias_address for outgoing packets that already have corresponding state in one of aliasing instances. This feature works just fine for ICMP, UDP, TCP and SCTP packes but not for others. For example, outgoing PPtP/GRE packets always get alias_address of latest configured instance no matter whether such packets have corresponding state or not. This change unbreaks translation of transit PPtP/GRE connections for "nat global" case fixing a bug in static ProtoAliasOut() function that ignores its "create" argument and performs translation regardless of its value. This static function is called only by LibAliasOutLocked() function and only for packers other than ICMP, UDP, TCP and SCTP. LibAliasOutLocked() passes its "create" argument unmodified. We have only two consumers of LibAliasOutLocked() in the source tree calling it with "create" unequal to 1: "ipfw nat global" code and similar natd code having same problem. All other consumers of LibAliasOutLocked() call it with create = 1 and the patch is "no-op" for such cases. PR: 218968 Approved by: ae, vsevolod (mentor) MFC after: 1 week Notes: svn path=/head/; revision=318150
* | Add several new media types to if_media.hEric Joyner2017-05-102-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | These include several 25G types (for active direct attach cables and LR modules), and a missing type for 10G active direct attach. Differential Revision: https://reviews.freebsd.org/D10425 Reviewed by: smh, imp MFC after: 3 days Sponsored by: Intel Corporation Notes: svn path=/head/; revision=318147
* | Don't depend on assert(3) getting evaluatedAlan Somers2017-05-102-4/+6
| | | | | | | | | | | | | | | | | | | | Reported by: imp MFC after: 3 weeks X-MFC-With: 318141, 318143 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=318144
* | strcpy => strlcpyAlan Somers2017-05-101-1/+3
| | | | | | | | | | | | | | | | | | | | Reported by: Coverity CID: 1006715 MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=318143
* | libstand: NULL pointer dereference in rarpToomas Soome2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | readether argument is missing & operator. CID: 1374944 Reported by: Coverity, cem Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D10663 Notes: svn path=/head/; revision=318142
* | strcpy => strlcpyAlan Somers2017-05-101-1/+2
| | | | | | | | | | | | | | | | | | | | Reported by: Coverity CID: 1352771 MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=318141
* | Revert to pre-r318116 wording to not give the false impressionEdward Tomasz Napierala2017-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | that setting the kernels' idea of terminal size is somehow an alternative to environment variables. Reported by: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=318138
* | mkimg: Add -C argument to specify maximum capacityEmmanuel Vadot2017-05-102-16/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a -C option to specify a maximum capacity for the final image file. It is useful to control the size of the generated image for sdcard or when we will add dynamic size partition. Add --capacity which is a shorthand to define min and max capacity at the same time. Reviewed by: bapt, marcel, wblock (manpages) Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D10509 Notes: svn path=/head/; revision=318137
* | hyperv/vmbus: Reorganize vmbus device treeSepherosa Ziehau2017-05-108-42/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For GEN1 Hyper-V, vmbus is attached to pcib0, which contains the resources for PCI passthrough and SR-IOV. There is no acpi_syscontainer0 on GEN1 Hyper-V. For GEN2 Hyper-V, vmbus is attached to acpi_syscontainer0, which contains the resources for PCI passthrough and SR-IOV. There is no pcib0 on GEN2 Hyper-V. The ACPI VMBUS device now only holds its _CRS, which is empty as of this commit; its existence is mainly for upward compatibility. Device tree structure is suggested by jhb@. Tested-by: dexuan@ Collabrated-wth: dexuan@ MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D10565 Notes: svn path=/head/; revision=318136
* | Fix parsing of 'vmov Q<n>.F32,Q<n>.F32' instruction.Michal Meloun2017-05-101-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | parse_qfloat_immediate() accidentaly parses register with size qualifier as immediate constant (It takes '<n>.' substring as valid floating point constant). Due to this, slightly reorder cases in parse_neon_mov() and move parsing of vmov with immediate constant to last place. MFC after: 2 weeks Notes: svn path=/head/; revision=318135
* | Fix the encoded instruction for FBT traps on powerpcJustin Hibbits2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | r314370 changed EXC_DTRACE to a different instruction, but neglected to make the same change to fbt, so dtrace didn't actually pick it up, resulting in entering KDB instead of trapping for dtrace. MFC after: 1 week Notes: svn path=/head/; revision=318130
* | Fix check for fbt_excluded() in powerpcJustin Hibbits2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | fbt_excluded() returns 1 if the symbol is to be excluded. Every other arch has this correct, powerpc was the only broken one MFC after: 1 week Notes: svn path=/head/; revision=318129
* | llh_func_filter needs to be configured for 100GDavid C Somayajulu2017-05-101-10/+24
| | | | | | | | | | | | | | MFC after:3 days Notes: svn path=/head/; revision=318126
* | Adjust whitespace and fix a comment. No functional change.Navdeep Parhar2017-05-101-6/+6
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=318125
* | ip6_output runs with the inp lock held, just like ip_output.Navdeep Parhar2017-05-101-0/+1
| | | | | | | | Notes: svn path=/head/; revision=318124
* | SUBDIR_OVERRIDE: Note how to restore historical behavior pre-r289725.Bryan Drewery2017-05-101-0/+5
| | | | | | | | | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318123
* | Add a -DNO_LIBS to skip building the libraries phase as well.Bryan Drewery2017-05-092-0/+4
| | | | | | | | | | | | | | | | | | This is useful for cases where -DWORLDFAST is useful. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318122
* | Random updates to resizewin(1) man page.Edward Tomasz Napierala2017-05-091-16/+24
| | | | | | | | | | | | | | | | | | Reviewed by: cem, Daniel O'Connor <darius@dons.net.au> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10640 Notes: svn path=/head/; revision=318116
* | Correct "first appeared in" entries for various drivers thatGlen Barber2017-05-095-10/+10
| | | | | | | | | | | | | | | | | | | | exist in stable/11. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318109
* | Remove unused constant (PATH_TEMPLATE)Enji Cooper2017-05-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | It was made unnecessary in r312913. MFC after: 3 weeks MFC with: r312913 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318107
* | Support -DWORLDFAST to skip all build steps up to 'libraries' and 'everything'.Bryan Drewery2017-05-092-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | This allows for building the world against the already-created host/sysroot environment. It is not overly useful outside of cases of large-impact changes such as a testing a new compiler. It will allow quickly getting back to an error in the target-phases of the build where a new compiler is being used. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318106
* | Support skipping 'make obj' tree-walk.Bryan Drewery2017-05-095-15/+38
| | | | | | | | | | | | | | | | | | | | This is part of a larger effort for WITH_AUTO_OBJ and a WORLDFAST option. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318105
* | style(9): move function definition curly braces to column 0Enji Cooper2017-05-091-3/+6
| | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318100
* | Print out when unsafe AIO is enabled to debugging purposesEnji Cooper2017-05-091-0/+2
| | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318099
* | Refactor ATF_REQUIRE_UNSAFE_AIO and PLAIN_REQUIRE_UNSAFE_AIOEnji Cooper2017-05-091-28/+41
| | | | | | | | | | | | | | | | | | | | This is being done to reduce duplication between the two macros. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318098
* | Add a new SDHCI quirk, SDHCI_QUIRK_BROKEN_AUTO_STOP, to workaroundLuiz Otavio O Souza2017-05-092-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | controllers that do not support or have broken ACMD12 implementations. Reviewed by: jmcneill Obtained from: NetBSD MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D10602 Notes: svn path=/head/; revision=318095
* | style(9): clean up trailing whitespaceEnji Cooper2017-05-091-1/+1
| | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318094
* | PROGS+META_MODE: Avoid rebuilding common sources when recursing.Bryan Drewery2017-05-091-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could be seen in lib/libkvm/tests where kvm_test_common.o was a common dependency, but one of the recursed progs had a special CFLAGS+= -I that changed the build command. This would cause all recursed builds to rebuild while fighting over the meta file and object file. Reported by: Mark Millard MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318092
* | cxgbe(4): Do not assume that if_qflush is always followed by inteface-down.Navdeep Parhar2017-05-093-2/+13
| | | | | | | | | | | | | | | | MFC after: 3 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=318091
* | Use const with some read-only buffers in opencrypto APIs.John Baldwin2017-05-092-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Mark the source buffer for a copyback operation as const in the kernel API. - Use const with input-only buffers in crypto ioctl structures used with /dev/crypto. MFC after: 1 month Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D10517 Notes: svn path=/head/; revision=318090