svn commit: r296381 - head/sys/dev/hyperv/netvsc

2016-03-03 Thread Sepherosa Ziehau
Author: sephe Date: Fri Mar 4 07:07:42 2016 New Revision: 296381 URL: https://svnweb.freebsd.org/changeset/base/296381 Log: hyperv/hn: Add per-TX ring stats for # of transmitted packets MFC after:2 weeks Sponsored by: Microsoft OSTC Modified: head/sys/dev/hyperv/netvsc/hv_net_vsc.

svn commit: r296380 - head/sys/dev/hyperv/netvsc

2016-03-03 Thread Sepherosa Ziehau
Author: sephe Date: Fri Mar 4 07:00:37 2016 New Revision: 296380 URL: https://svnweb.freebsd.org/changeset/base/296380 Log: hyperv/hn: Pass channel to send done callbacks. Mainly to strigent the data packet send done check. MFC after:2 weeks Sponsored by: Microsoft OSTC Modifie

svn commit: r296379 - in head/sys/dev/hyperv: include netvsc vmbus

2016-03-03 Thread Sepherosa Ziehau
Author: sephe Date: Fri Mar 4 06:52:11 2016 New Revision: 296379 URL: https://svnweb.freebsd.org/changeset/base/296379 Log: hyperv/hn: Add multiple channel support, a.k.a. vRSS Each channel contains one RX ring and one TX ring. And we try to distribute the channels to different evenly.

svn commit: r296378 - head/sys/boot/common

2016-03-03 Thread Stanislav Galabov
Author: sgalabov Date: Fri Mar 4 05:36:53 2016 New Revision: 296378 URL: https://svnweb.freebsd.org/changeset/base/296378 Log: Fix ubldr build failure on mipsn32 and mipsn32el targets. Approved by: adrian (mentor) Modified: head/sys/boot/common/Makefile.inc Modified: head/sys/boot/com

svn commit: r296377 - head/usr.sbin/ypldap

2016-03-03 Thread Marcelo Araujo
Author: araujo Date: Fri Mar 4 03:10:08 2016 New Revision: 296377 URL: https://svnweb.freebsd.org/changeset/base/296377 Log: Set argument encode/result decode call backs for 'maplist' and 'all'. Note: Listing a map is still not fully implemented. Obtained from:OpenBSD (r1.16,

svn commit: r296372 - head/sys/dev/acpica

2016-03-03 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 4 01:25:45 2016 New Revision: 296372 URL: https://svnweb.freebsd.org/changeset/base/296372 Log: Remove default initializations for rman, a'la r296331 Modified: head/sys/dev/acpica/acpi.c Modified: head/sys/dev/acpica/acpi.c

svn commit: r296376 - head/usr.sbin/ypldap

2016-03-03 Thread Marcelo Araujo
Author: araujo Date: Fri Mar 4 02:14:32 2016 New Revision: 296376 URL: https://svnweb.freebsd.org/changeset/base/296376 Log: Implement the 'master' request. Obtained from:OpenBSD (r1.15) Modified: head/usr.sbin/ypldap/yp.c Modified: head/usr.sbin/ypldap/yp.c ===

svn commit: r296356 - head/sys/dev/usb/wlan

2016-03-03 Thread Andriy Voskoboinyk
Author: avos Date: Thu Mar 3 20:06:16 2016 New Revision: 296356 URL: https://svnweb.freebsd.org/changeset/base/296356 Log: zyd, run, ural: do not corrupt MAC address Do not use ic_macaddr as a storage for current BSSID; it may be reused in vap creation procedure; similar to r288619.

svn commit: r296355 - head/sys/net80211

2016-03-03 Thread Andriy Voskoboinyk
Author: avos Date: Thu Mar 3 19:53:46 2016 New Revision: 296355 URL: https://svnweb.freebsd.org/changeset/base/296355 Log: net80211: drop -> INIT state transition warning (STA mode only) This warning is irrelevant, since user can execute 'ifconfig wlan0 down' (or turn off card via rfkil

svn commit: r296365 - head/sys/dev/dwc

2016-03-03 Thread Jared McNeill
Author: jmcneill Date: Thu Mar 3 22:26:36 2016 New Revision: 296365 URL: https://svnweb.freebsd.org/changeset/base/296365 Log: Add support for resetting the PHY via GPIO. Submitted by: Emmanuel Vadot Reviewed by: andrew, jmcneill Approved by: adrian (mentor)

svn commit: r296357 - head/sys/arm/allwinner

2016-03-03 Thread Jared McNeill
Author: jmcneill Date: Thu Mar 3 22:19:39 2016 New Revision: 296357 URL: https://svnweb.freebsd.org/changeset/base/296357 Log: Add support for Allwinner A31 RTC controller. Very similar to the A10 RTC controller with a few register offsets changed and a different location for the LOSC sw

Re: svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-03 Thread Mark Millard
On Thu Mar 3 06:18:48 UTC 2016 Bruce Evans wrote: > On Thu, 3 Mar 2016, Justin Hibbits wrote: > > > Log: > > Replace all resource occurrences of '0UL/~0UL' with '0/~0'. > > > > Summary: > > The idea behind this is '~0ul' is well-defined, and casting to uintmax_t, > > on a > > 32-bit platform

svn commit: r296353 - head/share/mk

2016-03-03 Thread Bryan Drewery
Author: bdrewery Date: Thu Mar 3 18:08:58 2016 New Revision: 296353 URL: https://svnweb.freebsd.org/changeset/base/296353 Log: DEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install. Currently the base.txz distribution does not get the BSD.debug.dist mtree extracted into it.

svn commit: r296354 - head/sys/dev/ixl

2016-03-03 Thread Steven Hartland
Author: smh Date: Thu Mar 3 19:49:37 2016 New Revision: 296354 URL: https://svnweb.freebsd.org/changeset/base/296354 Log: Fix ixl with RSS Fix compilation of ixl when RSS option is set, broken by r295946 MFC after:3 weeks X-MFC-With: r295946 Sponsored by: Multiplay Differe

svn commit: r296352 - in head/sys/netinet: . tcp_stacks

2016-03-03 Thread George V. Neville-Neil
Author: gnn Date: Thu Mar 3 17:46:38 2016 New Revision: 296352 URL: https://svnweb.freebsd.org/changeset/base/296352 Log: Fix dtrace probes (introduced in 287759): debug__input was used for output and drop; connect didn't always fire a user probe some probes were missing in fastpath Su

Re: svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-03 Thread Bruce Evans
On Thu, 3 Mar 2016, Justin Hibbits wrote: On Thu, Mar 3, 2016 at 12:18 AM, Bruce Evans wrote: On Thu, 3 Mar 2016, Justin Hibbits wrote: Log: Replace all resource occurrences of '0UL/~0UL' with '0/~0'. Summary: The idea behind this is '~0ul' is well-defined, and casting to uintmax_t, on a

Re: svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-03 Thread Justin Hibbits
On Thu, Mar 3, 2016 at 12:18 AM, Bruce Evans wrote: > On Thu, 3 Mar 2016, Justin Hibbits wrote: > >> Log: >> Replace all resource occurrences of '0UL/~0UL' with '0/~0'. >> >> Summary: >> The idea behind this is '~0ul' is well-defined, and casting to uintmax_t, >> on a >> 32-bit platform, will

Re: svn commit: r296190 - head/contrib/openresolv

2016-03-03 Thread Jean-Sébastien Pédron
Hi! > +# Strip any trailing dot from each name as a FQDN does not belong > +# in resolv.conf(5) > +# If you think otherwise, capture a DNS trace and you'll see libc > +# will strip it regardless. > +# This also solves setting up duplicate zones in our subscribers. > +strip_trailing_dots() > +{ > +

Re: svn commit: r296334 - head/contrib/jemalloc/src

2016-03-03 Thread Adrian Chadd
Hi! Thanks for your quick fix. I'm sorry for being terse/grumpy with you. It wasn't deserved. I'll try to be less grumpy in the future. -adrian On 2 March 2016 at 17:43, Jason Evans wrote: > Author: jasone > Date: Thu Mar 3 01:43:36 2016 > New Revision: 296334 > URL: https://svnweb.freebsd.

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Konstantin Belousov
On Thu, Mar 03, 2016 at 12:36:07PM +0100, Hans Petter Selasky wrote: > On 03/03/16 12:27, Konstantin Belousov wrote: > >> >BTW: The FreeBSD kernel version should have been bumped because > >> >_callout_stop_safe() is a public callout API, used by all external > >> >kernel modules, which now will ha

svn commit: r296349 - head/include/rpc

2016-03-03 Thread Pedro F. Giffuni
Author: pfg Date: Thu Mar 3 14:44:30 2016 New Revision: 296349 URL: https://svnweb.freebsd.org/changeset/base/296349 Log: Add sunrpc compat define for xp_sock. SunRPC is using xp_sock in SVCXPRT, while TI-RPC is using xp_fd. Add a compatibility define. Illumos has something similar

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 12:27, Konstantin Belousov wrote: On Thu, Mar 03, 2016 at 11:59:36AM +0100, Hans Petter Selasky wrote: >I believe all of these callout quirks can be avoided by using a spinlock >to proctect the thread callout like done in projects/hps_head. Has >anyone tried to reproduce the issue wi

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 12:29, Konstantin Belousov wrote: Why do they need the braces ? Other bits in the callout.h header are not restricted for kernel only, and I do not see a difference between CALLOUT_* and CS_*. Because the function that use the new flags are under #ifdef _KERNEL too. --HPS

svn commit: r296348 - head/sys/netpfil/ipfw

2016-03-03 Thread Andrey V. Elsukov
Author: ae Date: Thu Mar 3 13:07:59 2016 New Revision: 296348 URL: https://svnweb.freebsd.org/changeset/base/296348 Log: Use correct size for malloc. Obtained from:Yandex LLC MFC after:1 week Modified: head/sys/netpfil/ipfw/ip_fw_dynamic.c Modified: head/sys/netpfil/ipfw/

svn commit: r296351 - head/contrib/openresolv

2016-03-03 Thread Pedro F. Giffuni
Author: pfg Date: Thu Mar 3 15:36:00 2016 New Revision: 296351 URL: https://svnweb.freebsd.org/changeset/base/296351 Log: MFV r296350: Split each domain again after striping any trailing dot. Reported by: dumbbell Obtained from:openresolv (53416cf1b4) Modified: head/cont

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 11:59, Hans Petter Selasky wrote: +/* Flags for callout_stop_safe() */ +#defineCS_DRAIN0x0001 /* callout_drain(), wait allowed */ +#defineCS_MIGRBLOCK0x0002 /* Block migration, return value + indicates that the callout was +

Re: svn commit: r296190 - head/contrib/openresolv

2016-03-03 Thread Pedro Giffuni
On 03/03/16 09:38, Jean-Sébastien Pédron wrote: Hi! +# Strip any trailing dot from each name as a FQDN does not belong +# in resolv.conf(5) +# If you think otherwise, capture a DNS trace and you'll see libc +# will strip it regardless. +# This also solves setting up duplicate zones in our sub

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 13:41, Konstantin Belousov wrote: The "td_slpcallout" is not drained anywhere, last time I checked. Does >this change require draining of the td_slpcallout in case the thread >immediately is exited/destroyed? callout_stop_safe(CS_MIGRBLOCK) is enough in this case. td_slpcallout is o

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Konstantin Belousov
On Thu, Mar 03, 2016 at 01:29:57PM +0100, Hans Petter Selasky wrote: > On 03/02/16 19:46, Konstantin Belousov wrote: > > Modified: head/sys/kern/subr_sleepqueue.c > > == > > --- head/sys/kern/subr_sleepqueue.c Wed Mar 2 16

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 12:58, Konstantin Belousov wrote: > >Yes, your change is compatible if you compile the code, but not binary >compatible. See the following macros, and how they use _callout_stop_safe(): My change is binary compatible. > >#define callout_stop(c) _callout_stop_safe(c, 0, NULL

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/02/16 19:46, Konstantin Belousov wrote: Modified: head/sys/kern/subr_sleepqueue.c == --- head/sys/kern/subr_sleepqueue.c Wed Mar 2 16:36:24 2016 (r296319) +++ head/sys/kern/subr_sleepqueue.c Wed Mar

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Konstantin Belousov
On Thu, Mar 03, 2016 at 01:12:05PM +0100, Hans Petter Selasky wrote: > On 03/03/16 12:58, Konstantin Belousov wrote: > >> > > >> >Yes, your change is compatible if you compile the code, but not binary > >> >compatible. See the following macros, and how they use > >> >_callout_stop_safe(): > > My c

Re: svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-03 Thread Mark Millard
[Trying again with a corrected E-mail address.] What does FreeBSD support of the the possible implementation-defined aspects for signed-integral value representations for C? C++? I ask because of 1's complement and signed magnitude as reported on below. . . [I'm not covering signed conversion t

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Konstantin Belousov
On Thu, Mar 03, 2016 at 12:05:20PM +0100, Hans Petter Selasky wrote: > On 03/03/16 11:59, Hans Petter Selasky wrote: > > +/* Flags for callout_stop_safe() */ > > +#defineCS_DRAIN0x0001 /* callout_drain(), wait allowed */ > > +#defineCS_MIGRBLOCK0x0002 /* Block migration, ret

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Konstantin Belousov
On Thu, Mar 03, 2016 at 11:59:36AM +0100, Hans Petter Selasky wrote: > I believe all of these callout quirks can be avoided by using a spinlock > to proctect the thread callout like done in projects/hps_head. Has > anyone tried to reproduce the issue with projects/hps_head, before > making this

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/02/16 19:46, Konstantin Belousov wrote: Author: kib Date: Wed Mar 2 18:46:17 2016 New Revision: 296320 URL: https://svnweb.freebsd.org/changeset/base/296320 Log: If callout_stop_safe() noted that the callout is currently executing, but next invocation is cancelled while migrating,

Re: svn commit: r296320 - in head/sys: kern sys

2016-03-03 Thread Hans Petter Selasky
On 03/03/16 12:27, Konstantin Belousov wrote: >BTW: The FreeBSD kernel version should have been bumped because >_callout_stop_safe() is a public callout API, used by all external >kernel modules, which now will have undefined behaviour until recompiled. The change was done in a way which is comp

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

2016-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 3 09:56:04 2016 New Revision: 296344 URL: https://svnweb.freebsd.org/changeset/base/296344 Log: Add more functions to the LinuxKPI. Define strnicmp as a function macro instead of a regular macro while at it. MFC after:1 week Sponsored by: Mellano

svn commit: r296342 - head/sys/dev/usb/quirk

2016-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 3 08:47:27 2016 New Revision: 296342 URL: https://svnweb.freebsd.org/changeset/base/296342 Log: Allow for overlapping quirk device ranges. Prior to this patch only the first device entry matching the USB vendor, product and revision would be searched for quirk