Re: Joining bridge(4) changes broadcast?

2016-06-07 Thread Masao Uebayashi
This is suboptimal with respect to performance, but "correctly work-around" the problem, that is, bpf against an bridge'ed interface receives duplicate frames. (It happens for not only broadcast but also unicast.) diff --git a/sys/net/if.c b/sys/net/if.c index 9b53bf1..5209281 100644 --- a/sys/ne

Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Masao Uebayashi
On Mon, Jun 06, 2016 at 12:50:04PM +0200, Martin Pieuchot wrote: > On 06/06/16(Mon) 16:23, Masao Uebayashi wrote: > > On Mon, Jun 06, 2016 at 08:50:49AM +0200, Martin Pieuchot wrote: > > > On 06/06/16(Mon) 13:04, Masao Uebayashi wrote: > > > > Broadcast frame, com

Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Masao Uebayashi
On Mon, Jun 06, 2016 at 08:50:49AM +0200, Martin Pieuchot wrote: > On 06/06/16(Mon) 13:04, Masao Uebayashi wrote: > > Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 > > times, > > and actually input (ether_input()) twice. > > > > -

Re: Joining bridge(4) changes broadcast?

2016-06-05 Thread Masao Uebayashi
. I'm wondering if bridge_ifinput() just before bridgeintr_frame() in bridge_process() is superfluous. On Mon, Jun 06, 2016 at 01:04:06PM +0900, Masao Uebayashi wrote: > Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 times, > and actually input (ether_input())

Re: Joining bridge(4) changes broadcast?

2016-06-05 Thread Masao Uebayashi
rking. On Fri, Jun 03, 2016 at 08:29:50PM +0900, Masao Uebayashi wrote: > Moving bpf_mtap_ether() from if_input() to (the top of) ether_input() makes > PPPoE session successfully get established. > > On Thu, Jun 02, 2016 at 02:25:39PM +0900, Masao Uebayashi wrote: > > I spoke too

Re: Joining bridge(4) changes broadcast?

2016-06-03 Thread Masao Uebayashi
Moving bpf_mtap_ether() from if_input() to (the top of) ether_input() makes PPPoE session successfully get established. On Thu, Jun 02, 2016 at 02:25:39PM +0900, Masao Uebayashi wrote: > I spoke too early; I thought frames were broken but actually it was not. > What was happening, accord

Re: Joining bridge(4) changes broadcast?

2016-06-01 Thread Masao Uebayashi
pair(4)'s doesn't flood frames. bridge(4) and bpf(4) interacting badly? On Thu, Jun 02, 2016 at 10:34:10AM +0900, Masao Uebayashi wrote: > I'm playing with PPPoE and it (npppd(8) + oe(4)) works fine with patched > pair(4) interfaces, that's good. > >

Joining bridge(4) changes broadcast?

2016-06-01 Thread Masao Uebayashi
I'm playing with PPPoE and it (npppd(8) + oe(4)) works fine with patched pair(4) interfaces, that's good. patch pair0 --- pair1 pppoe npppd To try more wierd things, I added one pair(4), to which npppd(8) was listening on, to a bridge(4). This stops pppoe(4) from working. See

Boot loaders CPU consumption on virtual machines

2016-03-19 Thread Masao Uebayashi
I'm looking at x86 boot loaders, which consume 100% CPU at console (BIOS PC console), when running on hypervisors. Users usually boot kernel as soon as a boot loader is loaded. But when something wrong happens and boot loader prompt is entered, and if its console driver busily polls console, the

Re: ThinkPad X1 Carbon Gen3

2015-06-28 Thread Masao Uebayashi
Filed a bug report: http://marc.info/?l=openbsd-bugs&m=143554782402152&w=2 Just for reference. (Next time I buy a new machine I'll go directly to sendbug(1).)

Valgrind HOWTO

2015-06-28 Thread Masao Uebayashi
o Use the latest OpenBSD/amd64 and devel/valgrind (valgrind-3.10.1p5). o Dynamically link your target program. o Valgrind overrides some functions (alloc, free, string, memory) in libc using $LD_PRELOAD. o Embed symbols (cc -g). o Otherwise Valgrind reports problems using symbols. This is

Re: ThinkPad X1 Carbon Gen3

2015-06-27 Thread Masao Uebayashi
On Sun, Jun 28, 2015 at 11:19:02AM +0900, Masao Uebayashi wrote: > On Sun, Jun 28, 2015 at 10:40:42AM +0900, Masao Uebayashi wrote: > > On Sat, Jun 27, 2015 at 10:33:50PM +0200, David Dahlberg wrote: > > > > > > > > > > Am 27.06.2015 um 05:37 schrieb M

Re: ThinkPad X1 Carbon Gen3

2015-06-27 Thread Masao Uebayashi
On Sun, Jun 28, 2015 at 10:40:42AM +0900, Masao Uebayashi wrote: > On Sat, Jun 27, 2015 at 10:33:50PM +0200, David Dahlberg wrote: > > > > > > > Am 27.06.2015 um 05:37 schrieb Masao Uebayashi : > > > > > > - ZZZ > > > - Disabling TPM doesn

Re: ThinkPad X1 Carbon Gen3

2015-06-27 Thread Masao Uebayashi
On Sat, Jun 27, 2015 at 10:33:50PM +0200, David Dahlberg wrote: > > > > Am 27.06.2015 um 05:37 schrieb Masao Uebayashi : > > > > - ZZZ > > - Disabling TPM doesn't help hibernation. > > - I tried disabling various devices (iwm, em, xhci, ehci,

Re: ThinkPad X1 Carbon Gen3

2015-06-27 Thread Masao Uebayashi
On Sat, Jun 27, 2015 at 11:45:01AM -0700, Mike Larkin wrote: > On Sat, Jun 27, 2015 at 12:37:23PM +0900, Masao Uebayashi wrote: > > - zzz > > - I can almost resume it from RAM with "Security Chip" ("TPM") disabled > > in the BIOS setting. Exce

ThinkPad X1 Carbon Gen3

2015-06-26 Thread Masao Uebayashi
- zzz - I can almost resume it from RAM with "Security Chip" ("TPM") disabled in the BIOS setting. Except display remains off. With TPM enabled, I couldn't power on the machine after suspend to RAM. - ZZZ - Disabling TPM doesn't help hibernation. - I tried disabling various devices

Re: OpenBSD on EDmini

2008-08-26 Thread Masao Uebayashi
> does OpenBSD support PowerPC 603e processors? If it does, I would like > to try to put in on my EDmini box. Are there any resources about > running OpenBSD on embedded systems? MPC5200 has a special DMA engine which needs a custom code, which may reside in firmware (like EFIKA), or may be em

AsiaBSDCon 2007 timetable is published

2007-02-07 Thread Masao Uebayashi
The timetable of AsiaBSDCon 2007 has been published. http://asiabsdcon.org/timetable.html AsiaBSDCon 2007, University of Tokyo, Tokyo, Japan 8 - 11 March, 2007 http://asiabsdcon.org/ AsiaBSDCon is a conference for users and developers on BSD based systems. The conference is for anyone