em(4) vs long mbuf chains

2014-07-03 Thread David Gwynne
em(4) appears to be susceptible to the same problem that if_bge.c r1.355 addressed. long mbuf chains can cause em_encap to fail, which will cause OACTIVE to be set on the interface, and the problem packet to remain at the start of the send queue. this will cause no packets to end up on the tx ring

Re: Patch for caesar(6)

2014-07-03 Thread David Crosby
Thank you so much for pointing out the problems with my patch - I didn't know about __dead until I saw your counter-patch, so I'm glad I learned something new. I somehow totally missed those other two printit()s (super derpy of me). For the lurkers on the list (I got an email from one already), I

diff: class-static-route of dhcp-option

2014-07-03 Thread YASUOKA Masahiko
ok? Fix classless-{ms-,}static-routes to comply RFC 3442. Number of octets should be changed by corresponding to the prefix length. And 0 should be allowed for the prefix length. Also fix white spaces. Based on diff from Yuuichi Someya. Index: usr.sbin/dhcpd/confpars.c ==

Reclaim some wasted pages on amd64

2014-07-03 Thread Matthew Dempsky
I spent yesterday trying to really grok early pmap initialization on amd64, and I noticed what I believe to be wasted physical pages of memory: 1. In locore.S, we setup both an "identity" and an "actual" mapping for the kernel, to help us bootstrap to executing in high memory. Also, we reserve pag

Re: daily(8) scratch and junk files removal

2014-07-03 Thread Ingo Schwarze
Hi Rafael, Rafael Zalamena wrote on Wed, Jul 02, 2014 at 02:21:25PM -0300: > I've made a quick test and there is no problem in 'tmux-*' existing in > /var/tmp after a reboot. Running 'tmux attach' in a socket with no tmux > process controlling just spits out: 'no sessions' and if you run 'tmux' >

Re: Patch for caesar(6)

2014-07-03 Thread Ingo Schwarze
Hi, David Crosby wrote on Thu, Jul 03, 2014 at 07:44:12AM -0600: > This little patch fixes a compiler warning i just committed my version of the fix. Thanks to David for reporting the issue and to Miod for checking my patch. Yours, Ingo

Re: Patch for caesar(6)

2014-07-03 Thread Ingo Schwarze
Hi David, David Crosby wrote on Thu, Jul 03, 2014 at 07:44:12AM -0600: > This little patch fixes a compiler warning > (found with WARNINGS turned on), A correct fix for that is below. OK to commit it? > unambiguates the printit function, and removes an unnecessary > comment. Even though we do

Patch for caesar(6)

2014-07-03 Thread David Crosby
This little patch fixes a compiler warning (found with WARNINGS turned on), unambiguates the printit function, and removes an unnecessary comment. Program behaviour the same. This is my first patch to you folks, sorry if I screwed up somewhere. Index: games/caesar/caesar.c ===