Re: Sync sys/videoio.h with recent Linux kernel

2017-01-30 Thread Christian Weisgerber
On 2017-01-29, Christian Weisgerber wrote: >>> which allows us to fully comply with the V4L2 API. The attached diff >>> implements this and syncs with videodev2.h from the Linux kernel version >>> 4.10-rc5 at the same time >> >> This needs to go in a bulk since most users of

rtwn: correct free size

2017-01-30 Thread Jeremie Courreges-Anglas
If fw_loadpage fails, the size passed to free(9) is bogus. Always pass the size returned by load_firmware instead. I hit this a few days ago, ok? Index: rtwn.c === RCS file: /d/cvs/src/sys/dev/ic/rtwn.c,v retrieving revision 1.12

athn rts fix for 11a/b/g clients

2017-01-30 Thread Stefan Sperling
An 11n athn hostap will currently apply HT protection (RTS) even when sending frames to a non-11n client which does not need such protection. This is causing unnecessary overhead. It happens because the wrong flag is checked by the driver: IEEE80211_F_HTON tells us if 11n is supported by the

provide libc++abi as shared library as well

2017-01-30 Thread Patrick Wildt
Hi, when I first imported the new C++ stack with libc++, libc++abi and libunwind I wanted to find out if we really needed libc++abi as a shared library or not. Thus so far only libc++ is a shared object, while libc++abi is only provided as .a. My reasoning was that the ABI should never change,

Re: iwm(4): Update struct iwm_scan_results_notif. Remove a few old defines.

2017-01-30 Thread Imre Vadász
On 10:47 Sun 29 Jan , Stefan Sperling wrote: > On Mon, Jan 16, 2017 at 05:26:05PM +0100, Imre Vadász wrote: > > Hi, > > This patch updates the struct iwm_scan_results_notif to FW Api version 3, > > and removes the unused enum iwm_scan_complete_status status codes, as well > > as the

Re: rtwn: correct free size

2017-01-30 Thread Stefan Sperling
On Mon, Jan 30, 2017 at 03:28:21PM +0100, Jeremie Courreges-Anglas wrote: > > If fw_loadpage fails, the size passed to free(9) is bogus. Always pass > the size returned by load_firmware instead. I hit this a few days ago, > ok? ok stsp@ > Index: rtwn.c >

rtwn: configure short slot time and short preamble

2017-01-30 Thread Stefan Sperling
The rtwn driver never tells hardware about the short slot time and short preamble features enabled by most APs (since 11g). Not sure if not doing so hurts but the linux driver does it. Tested on: 8188CE (PCI) 8192CU (USB) 8188EU (USB) 8188CUS (USB) ok? Index: rtwn.c

net80211: expose edca table

2017-01-30 Thread Stefan Sperling
EDCA ("Enhanced distributed channel access") was first introduced in 802.11e and is also part of 802.11n. Essentially, these parameters define how frame transmissions are timed. They are not necessary to operate in pure 11a/b/g networks, but 11n clients will typically pass these parameters to

Re: clang and -Werror vs -Wpointer-sign

2017-01-30 Thread Stefan Kempf
Jonathan Gray wrote: > Base gcc4 changes the defaults to set -Wno-pointer-sign. > Base clang does not, I'm not sure where in the llvm code to do so. > Base gcc3 does not handle -Wno-pointer-sign. I think this should turn off -Wpointer-sign off by default. Passing -Wpointer-sign on the command

ip6stat percpu counters

2017-01-30 Thread Jeremie Courreges-Anglas
Very lightly tested. I used the existing percpu counters as examples. I don't like the hardcoding of "32" in ip6_input() but I am not sure how to solve it nicely; the easiest way would be to just kill those ipv6-specific mbuf stats. Would anyone miss them? Mbuf statistics:

uvm: free sizes diff

2017-01-30 Thread David Hill
Hello - The following diff adds free sizes to free() calls in uvm/. Only one remaining in uvm/. Index: uvm/uvm_amap.c === RCS file: /cvs/src/sys/uvm/uvm_amap.c,v retrieving revision 1.78 diff -u -p -r1.78 uvm_amap.c ---

rtwn: clean up edca code

2017-01-30 Thread Stefan Sperling
This cleans up the code which handles EDCA parameters in rtwn/urtwn. The driver now gets its EDCA params from net80211 instead of hardcoding them. There's a bit of a layer violation since the driver writes to ic->ic_edca_ac because net80211 does not fill it in yet. I think net80211 should do

Re: Help with the NET_LOCK()

2017-01-30 Thread Hrvoje Popovski
On 25.1.2017. 7:32, Martin Pieuchot wrote: > I just enabled the NET_LOCK() again and I'm looking for test reports. > Please go build a kernel from sources or wait for the next snapshot, > run it and report back. > > If you're looking for some small coding tasks related to the NET_LOCK() > just

Re: opensmtpd faq commands

2017-01-30 Thread Daniel Jakots
On Mon, 30 Jan 2017 18:38:12 -0500, Daniel Jakots wrote: > Hi, > > When following the example from the OpenSMTPD faq [0], first thing is > to create a new user with: > > useradd -g =uid -c "Virtual Mail" -d /var/vmail -s /sbin/nologin vmail > > which raises >

opensmtpd faq commands

2017-01-30 Thread Daniel Jakots
Hi, When following the example from the OpenSMTPD faq [0], first thing is to create a new user with: useradd -g =uid -c "Virtual Mail" -d /var/vmail -s /sbin/nologin vmail which raises warnx("Warning: home directory `%s' doesn't exist, and -m was" " not specified", home); I don't think

Re: Help with the NET_LOCK()

2017-01-30 Thread Pedro Caetano
Hi, I've also ran into this. Reported here [1] (a new email with some more stack traces should be landing soon). BR, Pedro Caetano [1] https://marc.info/?l=openbsd-bugs=148581520804370=2 On Mon, Jan 30, 2017 at 11:12 PM, Hrvoje Popovski wrote: > On 25.1.2017. 7:32, Martin

percpu counters: replace KASSERT with CTASSERT

2017-01-30 Thread Jeremie Courreges-Anglas
CTASSERT is more useful when the result of the test is known at compile time. Build-tested on amd64 and armv7, ok? Index: net/rtsock.c === RCS file: /d/cvs/src/sys/net/rtsock.c,v retrieving revision 1.220 diff -u -p -r1.220

Re: percpu counters: replace KASSERT with CTASSERT

2017-01-30 Thread David Gwynne
ok. > On 31 Jan 2017, at 10:41, Jeremie Courreges-Anglas wrote: > > > CTASSERT is more useful when the result of the test is known at compile > time. Build-tested on amd64 and armv7, ok? > > > Index: net/rtsock.c >

Re: opensmtpd faq commands

2017-01-30 Thread Gilles Chehade
On Mon, Jan 30, 2017 at 07:00:18PM -0500, Daniel Jakots wrote: > On Mon, 30 Jan 2017 18:38:12 -0500, Daniel Jakots > wrote: > > > Hi, > > > > When following the example from the OpenSMTPD faq [0], first thing is > > to create a new user with: > > > > useradd -g =uid -c

Re: 11n support for athn(4)

2017-01-30 Thread Timo Myyrä
Stefan Sperling writes: > On Sun, Jan 29, 2017 at 07:49:56AM +0200, Timo Myyrä wrote: >> Hmm, I've been running the 11n for a while and it seems to be a lot slower >> than >> 11g for me. Just did quick benchmark using tcpbench between OpenBSD hostAP >> (athn) and >> laptop