summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge helper fib* functions used for basic lookups.melifaro2015-12-0812-100/+720
| | | | | | | | | | | | | | | | | | | | Vast majority of rtalloc(9) users require only basic info from route table (e.g. "does the rtentry interface match with the interface I have?". "what is the MTU?", "Give me the IPv4 source address to use", etc..). Instead of hand-rolling lookups, checking if rtentry is up, valid, dealing with IPv6 mtu, finding "address" ifp (almost never done right), provide easy-to-use API hiding all the complexity and returning the needed info into small on-stack structure. This change also helps hiding route subsystem internals (locking, direct rtentry accesses). Additionaly, using this API improves lookup performance since rtentry is not locked. (This is safe, since all the rtentry changes happens under both radix WLOCK and rtentry WLOCK). Sponsored by: Yandex LLC
* Fix make dependuqs2015-12-081-0/+1
|
* sfxge: [3/6] rework MCDI response handlingarybchik2015-12-086-76/+121
| | | | | | | | | | Required for MCDI proxy authorization support. Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4420
* Add missing stdlib.h headerngie2015-12-081-2/+5
| | | | | | | Apply some minor style(9) fixes MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Fix compilation warnings by adding unistd.h #include and missing returnngie2015-12-081-2/+8
| | | | | | | statements MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Skip the MAC portacl tests if MAC_PORTACL support is missing instead ofngie2015-12-081-2/+1
| | | | | | | marking them failed MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Delete bogus freeing of uninitialized datangie2015-12-081-1/+0
| | | | | | MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
* Add missing va_ends for corresponding va_starts to clean up variable argumentsngie2015-12-082-0/+4
| | | | | | | | initialized in _test_fmt(..) MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
* Unbreak compiling getnetgrent.c with -DDEBUG after r236402 by adding angie2015-12-081-0/+1
| | | | | | | missing "}" MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Merge bmake-20151201sjg2015-12-0830-124/+380
|
* o DragonFly 4.4.1 release added.maxim2015-12-081-0/+2
|
* local.meta.sys.mk already defines TARGET_ARCHES_armbdrewery2015-12-081-2/+0
|
* DIRDEPS_BUILD: Update dependencies.bdrewery2015-12-0714-10/+6
| | | | Sponsored by: EMC / Isilon Storage Division
* Actually add the proc_rwmem(9) man page, missed in r291961.markj2015-12-071-0/+104
|
* Fix a couple misspellings of "environment."markj2015-12-071-2/+2
| | | | MFC after: 3 days
* Add a trailing newline to the expected output for tst.walltimestamp.ksh.markj2015-12-071-0/+1
| | | | MFC after: 1 week
* Fix a discrepancy in r291738.markj2015-12-071-1/+1
| | | | | | The script that generates these makefiles was changed to modify LIBADD rather than LDADD/DPADD, but the makefile itself was also changed in a slightly different way.
* Update DTrace test suite makefiles after r291963.markj2015-12-071-0/+2
|
* MFV r289003:markj2015-12-075-24/+136
|\ | | | | | | | | | | | | | | | | | | | | | | 6271 dtrace caused excessive fork time Author: Bryan Cantrill <bryan@joyent.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Gordon Ross <gwr@nexenta.com> illumos/illumos-gate@7bd3c1d12d0c764e1517c3aca62c634409356764
| * 6271 dtrace caused excessive fork timemarkj2015-10-082-0/+103
| | | | | | | | | | | | | | | | | | | | Author: Bryan Cantrill <bryan@joyent.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Gordon Ross <gwr@nexenta.com> illumos/illumos-gate@7bd3c1d12d0c764e1517c3aca62c634409356764
* | Modify DTRACEHIOC_ADDDOF to copy the DOF section from the target process.markj2015-12-073-80/+107
| | | | | | | | | | | | | | | | | | | | | | r281257 added support for lazyload mode by allowing dtrace(1) to register a DOF section on behalf of a traced process. This was implemented by having libdtrace copy the DOF section into a heap-allocated buffer and passing its address to the ioctl handler. However, DTrace uses the DOF section address as a lookup key in certain cases, so the ioctl handler should be given the target process' DOF section address instead. This change modifies the ADDDOF handler to copy the DOF section in from the target process, rather than from dtrace(1).
* | Add helper functions proc_readmem() and proc_writemem().markj2015-12-078-210/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | These helper functions can be used to read in or write a buffer from or to an arbitrary process' address space. Without them, this can only be done using proc_rwmem(), which requires the caller to fill out a uio. This is onerous and results in code duplication; the new functions provide a simpler interface which is sufficient for most existing callers of proc_rwmem(). This change also adds a manual page for proc_rwmem() and the new functions. Reviewed by: jhb, kib Differential Revision: https://reviews.freebsd.org/D4245
* | The ccb_xflags enumeration was removed from FreeBSD/head inken2015-12-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | r259397 (it contained the CAM_EXTLUN_VALID bit) and I added the same type name with a different set of values back in r291716. The old ccb_xflags enumeration still exists in FreeBSD stable/10. Shift all of the new values by one bit to avoid compatibility issues when merged to stable/10. MFC after: 3 days Sponsored by: Spectra Logic
* | Fix ls -l alignement with new localesbapt2015-12-071-1/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | Latest update of locales introduced abbreviated month that follows the regionale rules meaning that they can be of variable length instead of being arbitrary truncated to top 3 characters. To fix alignement, ls now computes the visible length of the abbreviated month, pads the shorter month with spaces in order to make sure everything is properly aligned Reviewed by: ache, ed, jilles Differential Revision: https://reviews.freebsd.org/D4239
* | elfcopy: exclude extension when converting from binaryemaste2015-12-071-1/+12
| | | | | | | | | | | | | | | | | | | | | | When converting from binary to ELF, elfcopy creates symbols _binary_<filename>_start_, _binary_<filename>_end, and _binary_<filename>_size. For compatibility with GNU objcopy (and to produce sensible symbol names) the extension must be stripped off. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4238
* | Fix a comment typo in the code example.brueffer2015-12-071-2/+2
| | | | | | | | | | | | PR: 203497 Submitted by: chadf@triularity.org MFC after: 1 week
* | Build and install userland .debug files by defaultemaste2015-12-072-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Debug data files are now built by default with 'make buildworld' and installed with 'make installworld'. This facilitates debugging but requires more disk space both during the build and for the installed world. Debug files may be disabled by setting WITHOUT_DEBUG_FILES=yes in src.conf(5). Reviewed by: bdrewery, eadler, vangyzen Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4018
* | Add an MLINK for m_collapse.brueffer2015-12-071-0/+1
| | | | | | | | | | | | PR: 204205 Submitted by: avos MFC after: 1 week
* | When setting up VLANs on a Raspberry Pi ethernet port, the MTU dropshselasky2015-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | from 1500 to 1496 bytes. The MTU should remain at 1500, extending the frame size as per IEEE 802.3. Adding IFCAP_VLAN_MTU to the if_capabilities field in the smsc driver solves the problem. The datasheet for the LAN9512 chip, section 3.2.3 states that the chip supports the extended frame. Submitted by: rpp@ci.com.au MFC after: 1 week PR: 205050
* | Fix spelling of internal hack.bdrewery2015-12-071-3/+3
| | | | | | | | Reported by: ngie
* | Replace magic value ELF note type with NT_FREEBSD_ABI_TAGemaste2015-12-071-1/+1
| | | | | | | | | | | | | | As of r291909 elf_common.h provides a definition. Suggested by: kib Sponsored by: The FreeBSD Foundation
* | Fix a typo in the CPUTYPE list.brueffer2015-12-071-1/+1
| | | | | | | | | | | | PR: 205099 Submitted by: xxjack12xx@gmail.com MFC after: 1 week
* | Merge common parts of i386 and amd64 md_var.h and smp.h intokib2015-12-077-306/+228
| | | | | | | | | | | | | | | | new headers x86/include x86_var.h and x86_smp.h. Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D4358
* | Use ANSI C definition.kib2015-12-071-6/+1
| | | | | | | | MFC after: 1 week
* | Set %esp correctly in the extended TSS.jhb2015-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pcb is saved at the top of the kernel stack on x86 platforms. The initial kenrel stack pointer is set in the TSS so that the trapframe from user -> kernel transitions begins directly below the pcb and grows down. The XSAVE changes moved the FPU save area out of the pcb and into a variable-sized area after the pcb. This required updating the expressions to calculate the initial stack pointer from 'stacktop - sizeof(pcb)' to 'stacktop - sizeof(pcb) + FPU save area size'. The i386_set_ioperm() system call allows user applications to access individual I/O ports via the I/O port permission bitmap in the TSS. On FreeBSD this requires allocating a custom per-process TSS instead of using the shared per-CPU TSS. The expression to initialize the initial kernel stack pointer in the per-process TSS created for i386_set_ioperm() was not properly updated after the XSAVE changes. Processes that used i386_set_ioperm() would trash the trapframe during subsequent context switches resulting in panics from memory corruption. This changes fixes the kernel stack pointer calculation for the per-process TSS. Reviewed by: kib, n_hibma Reported by: n_hibma MFC after: 1 week
* | Garbage collect removed directories.bdrewery2015-12-071-2/+0
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | FAST_DEPEND: Only pass -MF if we care about the object being compiled.bdrewery2015-12-072-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | This will save time generating dependency files that we didn't expect due to cases where SRCS!=OBJS or for building custom targetted objects in Makefiles that do not end up in the DEPENDOBJS list. This uses a bmake trick to modify CFLAGS based on ${.TARGET}. A .PARSEDIR check is done for the sake of MFC safety. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | FAST_DEPEND: Move handling code below yacc/lex/dtrace code that modified SRCS.bdrewery2015-12-071-20/+22
| | | | | | | | | | | | | | | | This fixes some of those newly added SRCS not having their depend files included. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | FAST_DEPEND: Only try to use dependencies from C/C++ SRCS as mkdep did.bdrewery2015-12-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than try to guess at all of the OBJS variables just use SRCS using the same patterns that mkdep does. This also fixes a mistake where dependencies were being generated with FAST_DEPEND when they were not for mkdep. This happens when OBJS!=SRCS as is the case in gnu/lib/csu where SRCS has 1 file and OBJS has several other files that does not even contain the 1 SRCS file. Generally in these cases the OBJS have custom dependencies defined in their Makefile. If we generate dependencies for those and then load a .depend file, then .IMPSRC may contain duplicate sources and lead to errors such as: cc: error: cannot specify -o when generating multiple output files MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | Add missing CLEANFILES.bdrewery2015-12-072-1/+2
| | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* | Replace unneeded manual dependency on header by adding it to SRCS.bdrewery2015-12-0713-36/+18
| | | | | | | | | | | | | | | | | | | | bsd.lib.mk and bsd.prog.mk already depend all objs on headers in SRCS if there is not yet a depend file. The headers in SRCS are never built or installed. After 'make depend' the header was already added as a proper dependency on the objects where needed. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | Update the mlx5 shared driver code to the latest version, whichhselasky2015-12-078-3/+1024
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include the following list of changes: - Added eswitch ACL table management Introduce API for managing ACL table. This API include the following features: 1) vlan filter - for VST/VGT+ support. 2) spoofcheck. 3) robust functionality to allow/drop general untagged/tagged traffic. 4) support for both ingress and egress ACL types. - Added loopback filter to the vacl table. - Added multicast list set in the vPort context - Added promiscuous mode set in the vPort context - Set the vlan list in vPort context 1) Check caps if VLAN list is not longer than FW supports 2) Set MODIFY_NIC_VPORT_CONTEXT command - Changed MLX5_EEPROM_MAX_BYTES from 48 to 32 so that a single EEPROM reading cannot cross the 128-byte boundary. Previously reading the MCIA register was done in batches of 48 bytes. The third reading would then by-pass the 127th byte, which means that part of the low page and part of the high page would be read at the same time, which created a bug: 1st: 0-47 bytes 2nd: 48-95 bytes 3rd: 96-143 bytes MFC after: 1 week Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4411
* | Add full support for Receive Side Scaling, RSS, to the mlx5enhselasky2015-12-077-13/+138
| | | | | | | | | | | | | | | | | | | | | | driver. This includes binding all interrupt and worker threads according to the RSS configuration, setting up correct Toeplitz hashing keys as given by RSS and setting the correct mbuf hashtype for all received traffic. MFC after: 1 week Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4410
* | Add support for usermode (vdso-like) gettimeofday(2) andkib2015-12-0718-16/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clock_gettime(2) on ARMv7 and ARMv8 systems which have architectural generic timer hardware. It is similar how the RDTSC timer is used in userspace on x86. Fix a permission problem where generic timer access from EL0 (or userspace on v7) was not properly initialized on APs. For ARMv7, mark the stack non-executable. The shared page is added for all arms (including ARMv8 64bit), and the signal trampoline code is moved to the page. Reviewed by: andrew Discussed with: emaste, mmel Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D4209
* | Update ctime when atime or birthtime are updated.kib2015-12-071-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup setting of ctime/mtime/birthtime: do not set IN_ACCESS or IN_UPDATE, then clear them with ufs_itimes(), making transient (possibly inconsistent) change to the times, and then copy user-supplied times into the inode. Instead, directly clear IN_ACCESS or IN_UPDATE when user supplied the time, and copy the value into the inode. Minor inconsistency left is that the inode ctime is updated even when birthtime update attempt is performed on a UFS1 volume. Submitted by: bde MFC after: 2 weeks
* | Add support for setting the TX moderation mode via a sysctl entry. TXhselasky2015-12-073-1/+21
| | | | | | | | | | | | | | | | | | completion events can be moderated in the same way like RX completion events. Expose this functionality by a sysctl variable. MFC after: 1 week Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4409
* | The firmware no longer supports setting a port MTU of zero bytes.hselasky2015-12-071-20/+3
| | | | | | | | | | | | | | | | | | Set the port MTU and then query it and report if any problems instead. MFC after: 1 week Submitted by: Shahar Klein <shahark@mellanox.com> Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4408
* | Start to split apart the different image formats that we need toimp2015-12-0713-154/+185
| | | | | | | | | | | | | | make. Add support for generating powerpc64 qemu images. We can generate them, but there's something wrong booting them. This also simplifies the user config files a bit, and removes bits no longer true.
* | Make sure to quote the arg after -n and -z tests.imp2015-12-071-6/+6
| |
* | sfxge: [2/6] rework MCDI response pollingarybchik2015-12-073-11/+42
| | | | | | | | | | | | | | | | | | | | Required to support MCDI proxy authorization. Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4418
OpenPOWER on IntegriCloud