summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* simple_httpd: cosmetic cleanups.pfg2014-09-181-76/+77
| | | | | | | Many tab vs space cleanups. Use setpgid() instead of setpgrp() which is more portable, MFC after: 5 weeks
* - Use if_get_counter() to fetch ifnet statistics.glebius2014-09-181-12/+12
| | | | | | | - Report IFCOUNTER_OQDROPS to linprocfs. Wasn't there before. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Reorder sysctls for spa.c global tunables; add sysctl for ccw_retry_interval.will2014-09-181-4/+8
| | | | | MFC after: 1 month Sponsored by: Spectra Logic
* Fix the handling of EOP in status descriptors for if_igb(4) and don'tadrian2014-09-182-9/+8
| | | | | | | | | | | | | double-free mbufs. Like ixgbe(4) chipsets, EOP is only set on the final descriptor in a chain of descriptors. So, to free the whole list of descriptors, we should free the current slot _and_ the assembled list of descriptors that make up the fragment list. The existing code was setting discard once it saw EOP + an error status; it then freed all the subsequent descriptors until the next EOP. That's totally the wrong order.
* Remove a bunch of methods that are superseded by if_inc_counter().glebius2014-09-182-148/+0
| | | | | Sponsored by: Netflix Sponsored by: Nginx, Inc.
* - Use if_inc_counter() to increment various counters.glebius2014-09-188-123/+162
| | | | | | | | | - Do not ever set a counter to a value. For those counters that we don't increment, but return directly from hardware create cases in if_get_counter() method. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* bpobj_iterate_impl(): Close a refcount leak iterating on a sublist.will2014-09-181-1/+3
| | | | | | | | | | | | | If bpobj_space() returned non-zero here, the sublist would have been left open, along with the bonus buffer hold it requires. This call does not invoke any calls to bpobj_close() itself. This bug doesn't have any known vector, but was found on inspection. MFC after: 1 week Sponsored by: Spectra Logic Affects: All ZFS versions starting 21 May 2010 (illumos cde58dbc) MFSpectraBSD: r1050998 on 2014/03/26
* Fix incremental builds involving non-root users with read-only source files.will2014-09-181-1/+1
| | | | | | This is a followup commit to r271771. MFC after: 1 month
* Fix incremental builds involving non-root users with read-only source files.will2014-09-181-2/+2
| | | | | | This is a followup commit to r271771. MFC after: 1 month
* While not too late rename 'ifnet_counter' to 'ift_counter'. One of theglebius2014-09-183-8/+8
| | | | | | | | imporant moments that we discussed with Marcel and Anuranjan was that a converted driver should return false for 'grep ifnet if_driver.c' :) Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Accidentially, ng_ppp changes leaked out with r271770. The properglebius2014-09-181-16/+15
| | | | | | | | | commit message should have been: In case if ng_ppp(4) runs only IPv4, with one link, w/o any encryption and compression, set faster rcvhook method. Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
* Fix incremental builds involving non-root users with read-only source files.will2014-09-185-7/+7
| | | | | | | | | | | Makefiles should not assume that source files can be overwritten. This is the common case for Perforce source trees. This is a followup commit to r211243 in the same vein. MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06
* Add a function to set if_get_counter method for an ifnet. To be usedglebius2014-09-183-0/+36
| | | | | in the drivers that are already converted to "Juniper drvapi". This can be revisited in future.
* zfs_setprop_error(): Handle errno value E2BIG.will2014-09-181-0/+6
| | | | | | | | | | | | | | | | | | | | This errno value is emitted by dsl_props_set_check() in sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c, and is used to mean that the property value is too long. For the record, the maximum length is ZAP_MAXVALUELEN, which is 8*1024 bytes. Instead of claiming an unknown error (and abort()ing), provide something more specific to the scenario involved. As far as I can tell, E2BIG is not emitted for any other scenario. MFC after: 1 week Sponsored by: Spectra Logic Affects: All ZFS versions starting 27 Feb 2009 (illumos ccba0801) This change modified the value returned by dsl_props_set_check(), so that it can distinguish between a name that's too long and a value that's too long, but libzfs was not updated accordingly. MFSpectraBSD: r1051499 on 2014/03/28 11:07:59
* Fix an assert to tolerate spare parents with more than 2 children.will2014-09-181-4/+8
| | | | | | | | | | | This can occur if a spare is being spared, which would yield three children: the original pool drive, the previous spare, and the spare that is replacing it. MFC after: 1 week Sponsored by: Spectra Logic Affects: All ZFS versions starting 7 Jun 2006 (illumos 94de1d4c) MFSpectraBSD: r668345 on 2013/06/04 17:10:43
* Switch to text mode in UEFI bootemaste2014-09-183-0/+274
| | | | | | | The loader previously failed to display on MacBooks and other systems where the UEFI firmware remained in graphics mode. Submitted by: Rafael Espíndola
* Add missing link to TIMEOUT_TASK_INIT(9).trasz2014-09-181-1/+2
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add missing links to taskqueue(9).trasz2014-09-181-0/+6
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* vt(4): Use strncpy() to copy into a fixed-size bufferdumbbell2014-09-181-1/+2
| | | | | CID: 1230007 MFC after: 3 days
* Wrap long lines introduced in r268227emaste2014-09-181-3/+7
|
* vt(4): Fix out-of-bounds array access in VT_ACTIVATE ioctl handlingdumbbell2014-09-181-1/+1
| | | | | CID: 1229964 MFC after: 3 days
* Remove unused ZFS ARC functionssmh2014-09-182-19/+0
| | | | | | | | * arc_data_buf_alloc * arc_data_buf_free MFC after: 1 week Sponsored by: Multiplay
* Fix typos.trasz2014-09-181-2/+2
| | | | Sponsored by: The FreeBSD Foundation
* While not too late rename if_get_counter_compat() to if_get_counter_default().glebius2014-09-183-4/+4
| | | | | | | The compat counters will go away, but the function will remain in its place, and in all places where it is going to be called. Discussed with: melifaro
* Add if_inc_counter(), a generic method to update ifnet(9) counterglebius2014-09-182-0/+51
| | | | | | | w/o dereferencing the struct. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* - Use NULL instead of 0 for fpcurthread.kib2014-09-181-13/+16
| | | | | | | | | - Note the quirk with the interrupt enabled state of the dna handler. - Use just panic() instead of printf() and panic(). Print tid instead of pid, the fpu state is per-thread. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* For consistency with the shared header file (and to avoid confusionbz2014-09-181-22/+22
| | | | | | | | | | with mbufs normally called *m in one place), rename the function arguments to "mem". This is a non-functional change. Reviewed by: gnn, eric.joyner intel.com MFC after: 3 days
* Re-gen after r271743 implementing most ofbz2014-09-1810-27/+122
| | | | | | | timer_{create,settime,gettime,getoverrun,delete}. MFC after: 3 days Sponsored by: DARPA, AFRL
* Implement most of timer_{create,settime,gettime,getoverrun,delete}bz2014-09-1812-42/+301
| | | | | | | | | | | | | | for amd64/linux32. Fix the entirely bogus (untested) version from r161310 for i386/linux using the same shared code in compat/linux. It is unclear to me if we could support more clock mappings but the current set allows me to successfully run commercial 32bit linux software under linuxolator on amd64. Reviewed by: jhb Differential Revision: D784 MFC after: 3 days Sponsored by: DARPA, AFRL
* Revert r271735. The comment is absolutely correct, we do not support 802.1p ↵araujo2014-09-181-1/+2
| | | | | | priority tagging. I got confused with the packet tagged and packet to be tagged. Spotted by: glebius
* r258695 introduces a sanity check for makefs in order to verify thatdavide2014-09-181-1/+2
| | | | | | | | | | | | | | | | | the minimum image size specified is always less than the maximum image size. If makefs(1) is invoked specifying minimum image size, but not maximum one, the program exits with an error. Example: # sudo -E makefs -M 538968064 -B be /home/davide/disk.img $DESTDIR makefs: `/home/davide/tftproot/mips' minsize of 538968064 rounded up to ffs bsize of 8192 exceeds maxsize 0. Lower bsize, or round the minimum and maximum sizes to bsize. Assert then that minsize < maxsize iff maxsize is specified. This change allows me to build MIPS images using makefs(1) and following what specified in the wiki again. Reviewed by: jmallett, ngie
* Remove old comment, we already do 802.1q tagging.araujo2014-09-181-2/+1
| | | | | | | Phabric: D797 Reviewed by: kevlo Approved by: kevlo Sponsored by: QNAP Systems Inc.
* The lagg(4) interface is based on trunk(4) interface from OpenBSD.araujo2014-09-182-5/+1
| | | | | | | | | | | | | The FreeBSD is the only system that has the FEC protocol, that is a simple alias to loadbalance protocol and does not implement the ancient Cisco FEC standard. From now on, we remove the fec protocol from the documentation and keep the FEC code only for compatibility. Phabric: D539 Reviewed by: glebius, thompsa Approved by: glebius Sponsored by: QNAP Systems Inc.
* Add laggproto broadcast, it allows sends frames to all ports of the lagg(4) ↵araujo2014-09-184-6/+108
| | | | | | | | | | | | group and receives frames on any port of the lagg(4). Phabric: D549 Reviewed by: glebius, thompsa Approved by: glebius Obtained from: OpenBSD Sponsored by: QNAP Systems Inc.
* Fix a kernel panic when unloading isp(4).will2014-09-182-40/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation, the isp_kthread() threads never exit. The target threads do have an exit mode from isp_attach(), but it is not invoked from isp_detach(). Ensure isp_detach() notifies threads started for each channel, such that they exit before their parent device softc detaches, and thus before the module does. Otherwise, a page fault panic occurs later in: sysctl_kern_proc sysctl_out_proc kern_proc_out fill_kinfo_proc fill_kinfo_thread strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg)); For isp_kthread() (and isp(4) target threads), td->td_wmesg references now-unmapped memory after the module has been unloaded. These threads are typically msleep()ing at the time of unload, but they could also attempt to execute now-unmapped code segments. MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1070921 on 2014/06/22 13:01:17
* Root the lib32 object tree under the overall object tree.will2014-09-181-2/+3
| | | | | | | | | | | | | This enables a common root directory for all object files for a given tree, which eases sharing a common MAKEOBJDIRPREFIX, and cleaning up of object trees. In particular, one can simply (from the source directory) rm -rf /usr/obj$(pwd) to destroy all object files for it. Or to copy/sync files, etc. Reviewed by: bdrewery CR: https://reviews.freebsd.org/D796 MFC after: 1 month Sponsored by: Spectra Logic
* For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag beforedavidcs2014-09-171-3/+12
| | | | | | printing error message. MFC after:5 days
* Remove clean optiondavidcs2014-09-171-5/+0
| | | | MFC after:5 days
* Remove clean optiondavidcs2014-09-171-5/+0
| | | | MFC after:5 days
* The vm_mmap_cdev() explicitely converts absence of both MAP_SHARED andkib2014-09-172-3/+8
| | | | | | | | | | | | | | | | | | | MAP_PRIVATE flags to MAP_SHARED. Apparently, some code in tree, in particular, libgeom, relied on this behaviour, see r271721. For regular file types, the absence of the flags is interpreted as MAP_PRIVATE, and libc nlist used this (fixed in r271723). Allow the implicit flags for legacy binaries. Bump __FreeBSD_version to get the ABI note on new binaries to check for in mmap code. Remove the test for presence of one of the MAP_ANON, MAP_SHARED or MAP_PRIVATE flags before fget_mmap(). For MAP_ANON, we already verify that passed fd == -1. For fd != -1, test after fget_mmap() (for newer binaries) covers the case. Reported by: bdrewery, pho Reviewed by: jhb Sponsored by: The FreeBSD Foundation
* Explicitly set MAP_PRIVATE to avoid [EINVAL] after r271635.bdrewery2014-09-171-2/+2
| | | | | X-MFC-With: r271635 Reviewed by: jhb
* - Remove mention of MAP_INHERIT. It hasn't been implemented for thirteenjhb2014-09-171-14/+1
| | | | | | | | years. - Remove mention of unimplemented MAP_SWAP. There are no future plans to implement it. Submitted by: alc (2)
* Explicitly specify MAP_SHARED when mapping the stats file descriptor.jhb2014-09-171-2/+2
| | | | | Reviewed by: kib MFC after: 1 week
* If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fixbdrewery2014-09-171-1/+5
| | | | | | | | | a FILE* leak in getbounds(). Submitted by: Conrad Meyer <conrad.meyer@isilon.com> PR: 192032 Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
* For targets that have a signed zero, lgamma_r(-0, &signgamp) shouldkargl2014-09-174-4/+20
| | | | | | set signgamp = -1. Submitted by: enh at google dot com (e_lgamma[f]_r.c)
* Correct a commentbdrewery2014-09-171-1/+1
|
* Revert unrelated changes accidentally committed in r271192.jhb2014-09-172-18/+7
|
* Presence of any VM_PROT bits in the permission argument on x86 implieskib2014-09-172-2/+4
| | | | | | | | | that the entry is readable and valid. Reported by: markj Submitted by: alc Tested by: pho (previous version), markj MFC after: 3 days
* Reprase r271616 comments.mav2014-09-171-2/+2
| | | | | Submitted by: alc MFC after: 1 month
* Migrate ie->ie_assign_cpu and associated code to use an int for CPU ratheradrian2014-09-176-17/+17
| | | | | | | | | | | | | | | | | than u_char. Migrate post_filter to use an int for a CPU rather than u_char. Change intr_event_bind() to use an int for CPU rather than u_char. It touches the ppc, sparc64, arm and mips machdep code but it should (hah!) be a no-op. Tested: * i386, AMD64 laptops Reviewed by: jhb
OpenPOWER on IntegriCloud