Re: svn commit: r309725 - head/sys/dev/cxgbe

2016-12-09 Thread Olivier Cochard-Labbé
On Fri, Dec 9, 2016 at 3:21 AM, Navdeep Parhar wrote: > Author: np > Date: Fri Dec 9 02:21:27 2016 > New Revision: 309725 > URL: https://svnweb.freebsd.org/changeset/base/309725 > > Log: > cxgbe(4): netmap does not set IFCAP_NETMAP in an ifnet's if_capabilities > any more (since r307394). D

svn commit: r309731 - head/sys/compat/linuxkpi/common/include/linux

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 13:41:26 2016 New Revision: 309731 URL: https://svnweb.freebsd.org/changeset/base/309731 Log: Prefix the Linux KPI's kmem_xxx() functions with linux_ to avoid conflict with the opensolaris kernel module. This patch solves a problem where the kernel linker

svn commit: r309732 - in head/sys/compat/linuxkpi/common: include/linux src

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 13:47:50 2016 New Revision: 309732 URL: https://svnweb.freebsd.org/changeset/base/309732 Log: Prefix some _pci_xxx() functions in the Linux KPI with linux_ and make sure the IRQ number used by these functions is unsigned. Sponsored by: Mellanox

svn commit: r309733 - in head/sys/compat/linuxkpi/common: include/linux src

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 13:53:31 2016 New Revision: 309733 URL: https://svnweb.freebsd.org/changeset/base/309733 Log: MSIX can support more than 256 IRQs. Make sure the invalid IRQ number set in the LinuxKPI is big enough. Sponsored by: Mellanox Technologies MFC afte

svn commit: r309734 - head/sys/compat/linuxkpi/common/include/linux

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 14:06:22 2016 New Revision: 309734 URL: https://svnweb.freebsd.org/changeset/base/309734 Log: Avoid malloc() warnings when using the LinuxKPI by zero-checking the allocation flags. Obtained from:kmacy @ Sponsored by: Mellanox T

svn commit: r309735 - head/bin/dd

2016-12-09 Thread Bartek Rutkowski
Author: robak (ports committer) Date: Fri Dec 9 14:51:05 2016 New Revision: 309735 URL: https://svnweb.freebsd.org/changeset/base/309735 Log: Capsicum support for dd(1) Adds Capsicum sandboxing to dd utility. Submitted by: Pawel Biernacki Reviewed by: allanjude, emaste, oshogbo

svn commit: r309736 - head/sys/compat/linuxkpi/common/include/linux

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 15:01:37 2016 New Revision: 309736 URL: https://svnweb.freebsd.org/changeset/base/309736 Log: Prefer function macros over regular macros in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common

svn commit: r309737 - head/sys/compat/linuxkpi/common/include/linux

2016-12-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 9 15:05:09 2016 New Revision: 309737 URL: https://svnweb.freebsd.org/changeset/base/309737 Log: Add more LinuxKPI PCI definitions. Obtained from:kmacy @ Sponsored by: Mellanox Technologies MFC after:1 week Modified: head/sys/compat/linuxkpi

svn commit: r309738 - head/lib/libfetch

2016-12-09 Thread Dag-Erling Smørgrav
Author: des Date: Fri Dec 9 16:14:55 2016 New Revision: 309738 URL: https://svnweb.freebsd.org/changeset/base/309738 Log: More debugging code I missed in r309051. Reported by: jbeich, jkim Modified: head/lib/libfetch/common.c Modified: head/lib/libfetch/common.c ==

svn commit: r309739 - head/sys/mips/ingenic

2016-12-09 Thread Ruslan Bukin
Author: br Date: Fri Dec 9 17:16:09 2016 New Revision: 309739 URL: https://svnweb.freebsd.org/changeset/base/309739 Log: Add registers for jz4780 audio and PDMA controllers. Sponsored by: DARPA, AFRL Added: head/sys/mips/ingenic/jz4780_aic.h (contents, props changed) Modified: head/

svn commit: r309743 - head/sys/netinet

2016-12-09 Thread Michael Tuexen
Author: tuexen Date: Fri Dec 9 17:57:17 2016 New Revision: 309743 URL: https://svnweb.freebsd.org/changeset/base/309743 Log: Don't send multiple SHUTDOWN chunks in a single packet. Thanks to Felix Weinrank for making me aware of this issue. MFC after:1 week Modified: head/sys/n

svn commit: r309744 - head/sys/netinet

2016-12-09 Thread Michael Tuexen
Author: tuexen Date: Fri Dec 9 17:58:07 2016 New Revision: 309744 URL: https://svnweb.freebsd.org/changeset/base/309744 Log: Don't bundle a SACK chunk with a SHUTDOWN chunk if it is not required. MFC after:1 week Modified: head/sys/netinet/sctp_indata.c Modified: head/sys/netinet/s

svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 17:58:34 2016 New Revision: 309745 URL: https://svnweb.freebsd.org/changeset/base/309745 Log: Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck(). When rated event happens at a very quick rate, the ppsratecheck() is not only racy, but al

svn commit: r309746 - in head/sys: netinet netpfil/pf

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 17:59:15 2016 New Revision: 309746 URL: https://svnweb.freebsd.org/changeset/base/309746 Log: Use counter_ratecheck() in the ICMP rate limiting. Together with:rrs, jtl Modified: head/sys/netinet/icmp_var.h head/sys/netinet/ip_icmp.c head/sys/n

svn commit: r309747 - head/sys/netpfil/pf

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 18:00:45 2016 New Revision: 309747 URL: https://svnweb.freebsd.org/changeset/base/309747 Log: Backout accidentially leaked in r309746 not yet reviewed patch :( Modified: head/sys/netpfil/pf/if_pfsync.c Modified: head/sys/netpfil/pf/if_pfsync.c ===

svn commit: r309748 - head/sys/amd64/amd64

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 18:07:28 2016 New Revision: 309748 URL: https://svnweb.freebsd.org/changeset/base/309748 Log: Treat R_X86_64_PLT32 relocs as R_X86_64_PC32. If we load a binary that is designed to be a library, it produces relocatable code via assembler directives in the a

Re: svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-09 Thread Konstantin Belousov
On Fri, Dec 09, 2016 at 05:58:34PM +, Gleb Smirnoff wrote: > Author: glebius > Date: Fri Dec 9 17:58:34 2016 > New Revision: 309745 > URL: https://svnweb.freebsd.org/changeset/base/309745 > > Log: > Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck(). > When rated ev

svn commit: r309749 - in head/sys: amd64/conf arm/conf conf i386/conf mips/conf pc98/conf powerpc/conf sparc64/conf

2016-12-09 Thread Mark Johnston
Author: markj Date: Fri Dec 9 18:54:12 2016 New Revision: 309749 URL: https://svnweb.freebsd.org/changeset/base/309749 Log: Add a COMPAT_FREEBSD11 kernel option. Use it wherever COMPAT_FREEBSD10 is currently specified. Reviewed by: glebius, imp, jhb Differential Revision:ht

svn commit: r309750 - head/sys/vm

2016-12-09 Thread Mark Johnston
Author: markj Date: Fri Dec 9 18:55:27 2016 New Revision: 309750 URL: https://svnweb.freebsd.org/changeset/base/309750 Log: Conditionalize PG_CACHE sysctls on COMPAT_FREEBSD11. Reviewed by: glebius, imp, jhb Differential Revision:https://reviews.freebsd.org/D8736 Modified: he

Re: svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-09 Thread Gleb Smirnoff
Konstantin, On Fri, Dec 09, 2016 at 08:41:17PM +0200, Konstantin Belousov wrote: K> > +int64_t K> > +counter_ratecheck(struct counter_rate *cr, int64_t limit) K> > +{ K> > + int64_t val; K> > + int now; K> > + K> > + val = cr->cr_over; K> > + now = ticks; K> > + K> > + if (now - cr->cr_tick

svn commit: r309751 - head/sys/kern

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 19:07:31 2016 New Revision: 309751 URL: https://svnweb.freebsd.org/changeset/base/309751 Log: Use acquire write to cr_lock to complement with release write at end of locked region. Submitted by: kib Modified: head/sys/kern/subr_counter.c Modified: head

svn commit: r309752 - head/share/man/man5

2016-12-09 Thread Ed Maste
Author: emaste Date: Fri Dec 9 19:09:58 2016 New Revision: 309752 URL: https://svnweb.freebsd.org/changeset/base/309752 Log: src.conf.5: regen after r309142 (WITH_LLD_AS_LD knob) Reported by: Nikolai Lifanov Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/src.conf.

Re: svn commit: r308212 - in head/sys: fs/nfsserver kern sys

2016-12-09 Thread Conrad Meyer
On Wed, Nov 2, 2016 at 5:43 AM, Konstantin Belousov wrote: > Author: kib > Date: Wed Nov 2 12:43:15 2016 > New Revision: 308212 > URL: https://svnweb.freebsd.org/changeset/base/308212 > > Log: > Allow some dotdot lookups in capability mode. > > If dotdot lookup does not escape from the file d

svn commit: r309766 - head/sys/netinet

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 20:50:35 2016 New Revision: 309766 URL: https://svnweb.freebsd.org/changeset/base/309766 Log: Fix build for 32-bit machines. Submitted by: tuexen Modified: head/sys/netinet/ip_icmp.c Modified: head/sys/netinet/ip_icmp.c ==

svn commit: r309772 - head/sys/vm

2016-12-09 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 9 21:21:24 2016 New Revision: 309772 URL: https://svnweb.freebsd.org/changeset/base/309772 Log: Allow bogus_page to be passed to pager(s). Modified: head/sys/vm/vm_pager.c Modified: head/sys/vm/vm_pager.c

Re: svn commit: r309772 - head/sys/vm

2016-12-09 Thread Xin LI
Thanks! On Fri, Dec 9, 2016 at 1:21 PM, Gleb Smirnoff wrote: > Author: glebius > Date: Fri Dec 9 21:21:24 2016 > New Revision: 309772 > URL: https://svnweb.freebsd.org/changeset/base/309772 > > Log: > Allow bogus_page to be passed to pager(s). > > Modified: > head/sys/vm/vm_pager.c > > Modif

svn commit: r309773 - head/tools/regression/sockets/unix_cmsg

2016-12-09 Thread Maxim Sobolev
Author: sobomax Date: Fri Dec 9 22:13:00 2016 New Revision: 309773 URL: https://svnweb.freebsd.org/changeset/base/309773 Log: Check that SCM_XXX timestamp returned by the kernel is less 1 second away in the past from the current time. This should be plenty for the scheduler to do its job. I

svn commit: r309774 - head/contrib/netbsd-tests/fs/tmpfs

2016-12-09 Thread Ngie Cooper
Author: ngie Date: Fri Dec 9 22:50:43 2016 New Revision: 309774 URL: https://svnweb.freebsd.org/changeset/base/309774 Log: Only run mdconfig -d -u 3 if /dev/md3 exists on the system This will prevent "cleanup failures" (exit code != 0 returned) when tmpfs is not loaded MFC after:

svn commit: r309775 - head/tools/build/mk

2016-12-09 Thread Ed Maste
Author: emaste Date: Fri Dec 9 22:51:58 2016 New Revision: 309775 URL: https://svnweb.freebsd.org/changeset/base/309775 Log: Keep /usr/bin/ld for WITHOUT_BINUTILS but WITH_LLD_AS_LD Reported by: Nikolai Lifanov Modified: head/tools/build/mk/OptionalObsoleteFiles.inc Modified: head/too

svn commit: r309777 - head/sbin/nvmecontrol

2016-12-09 Thread Warner Losh
Author: imp Date: Fri Dec 9 23:37:14 2016 New Revision: 309777 URL: https://svnweb.freebsd.org/changeset/base/309777 Log: Implement Intel's log page 0xc1 (Read Command Latency Log) and page 0xc1 (Write Command Latency Log). Sponsored By: Netflix, Inc Modified: head/sbin/nvmecontrol/lo

svn commit: r309776 - head/sys/amd64/amd64

2016-12-09 Thread Warner Losh
Author: imp Date: Fri Dec 9 23:37:11 2016 New Revision: 309776 URL: https://svnweb.freebsd.org/changeset/base/309776 Log: Permit loading of efirt module even when there's no EFI to call. The module loading is successful, but attempts to use it will not be successful. This is similar to what

svn commit: r309778 - head/contrib/netbsd-tests/fs/tmpfs

2016-12-09 Thread Ngie Cooper
Author: ngie Date: Fri Dec 9 23:42:04 2016 New Revision: 309778 URL: https://svnweb.freebsd.org/changeset/base/309778 Log: Make test_unmount usable in cleanup subroutines - Duplicate test_unmount to _test_unmount - Remove atf_check calls - Call _test_unmount from test_unmount, checking

svn commit: r309779 - head/contrib/netbsd-tests/fs/tmpfs

2016-12-09 Thread Ngie Cooper
Author: ngie Date: Fri Dec 9 23:43:33 2016 New Revision: 309779 URL: https://svnweb.freebsd.org/changeset/base/309779 Log: - Ignore errors from umount - Use _test_unmount instead of test_unmount in cleanup MFC after:1 week Modified: head/contrib/netbsd-tests/fs/tmpfs/t_mount.sh M

svn commit: r309780 - head/contrib/netbsd-tests/fs/tmpfs

2016-12-09 Thread Ngie Cooper
Author: ngie Date: Fri Dec 9 23:44:25 2016 New Revision: 309780 URL: https://svnweb.freebsd.org/changeset/base/309780 Log: Use _test_unmount instead of test_unmount in cleanup to avoid false positives with atf_check when tmpfs is not loaded, etc MFC after:1 week Modified: head/con

Re: svn commit: r309394 - head/sys/netpfil/pf

2016-12-09 Thread Marcel Moolenaar
> On Dec 8, 2016, at 2:48 PM, Gleb Smirnoff > wrote: > > Marcel, > > On Wed, Dec 07, 2016 at 05:06:08PM -0800, Marcel Moolenaar wrote: > M> > thanks for the fixes. While the problem with the first chunk > M> > in pfsync_sendout() is obvious, the problem you are fix

svn commit: r309782 - head/contrib/elftoolchain/libelftc

2016-12-09 Thread Ed Maste
Author: emaste Date: Sat Dec 10 01:40:10 2016 New Revision: 309782 URL: https://svnweb.freebsd.org/changeset/base/309782 Log: libelftc: add elf{32,64}-tradlittlemips target emulation names Sponsored by: The FreeBSD Foundation Modified: head/contrib/elftoolchain/libelftc/elftc_bfd_find_ta

svn commit: r309783 - head/sys/kern

2016-12-09 Thread Mark Johnston
Author: markj Date: Sat Dec 10 02:56:44 2016 New Revision: 309783 URL: https://svnweb.freebsd.org/changeset/base/309783 Log: Return a non-NULL owner only if the lock is exclusively held in owner_sx(). Fix some whitespace bugs while here. MFC after:2 weeks Modified: head/sys/kern

svn commit: r309784 - head/sys/kern

2016-12-09 Thread Mark Johnston
Author: markj Date: Sat Dec 10 02:59:34 2016 New Revision: 309784 URL: https://svnweb.freebsd.org/changeset/base/309784 Log: Use a consistent snapshot of the lock state in owner_mtx(). MFC after:2 weeks Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c ==

svn commit: r309785 - in head/sys/cddl/dev/fbt: arm powerpc x86

2016-12-09 Thread Mark Johnston
Author: markj Date: Sat Dec 10 03:11:05 2016 New Revision: 309785 URL: https://svnweb.freebsd.org/changeset/base/309785 Log: Consistently use fbt_excluded() on all architectures. MFC after:2 weeks Modified: head/sys/cddl/dev/fbt/arm/fbt_isa.c head/sys/cddl/dev/fbt/powerpc/fbt_isa.c

svn commit: r309786 - head/sys/cddl/dev/fbt

2016-12-09 Thread Mark Johnston
Author: markj Date: Sat Dec 10 03:13:11 2016 New Revision: 309786 URL: https://svnweb.freebsd.org/changeset/base/309786 Log: Don't create FBT probes for lock owner methods. These functions may be called in DTrace probe context, so they cannot be safely traced. Moreover, they are currently

svn commit: r309787 - head/sys/netpfil/pf

2016-12-09 Thread Marcel Moolenaar
Author: marcel Date: Sat Dec 10 03:31:38 2016 New Revision: 309787 URL: https://svnweb.freebsd.org/changeset/base/309787 Log: Improve upon r309394 Instead of taking an extra reference to deal with pfsync_q_ins() and pfsync_q_del() taken and dropping a reference (resp,) make it optional