Subject: Re: MACVLANs really best solution? How about a bridge with multiple bridge virtual interfaces?

From: Ben Greear <[email-masked]>
Date: Mon, 09 Mar 2009 11:58:39 -0700

Patrick McHardy wrote:

>> Now that I think about it we could call ndo_start_xmit directly
>> from the macvlan code, and bypass whatever hook we use to
>> intercept packets going out the normal device it should not
>> be too difficult.
> 
> We don't intercept packets on TX, they have to be explicitly delivered
> to macvlan.

It might suck for performance, but mac-vlan could register an 'ALL' protocol
on the physical dev, similar to tcp-dump, to grab pkts on tx and pass the
ones it cares about back up to the vlans?

I'd want run-time control to disable any of these costly options for those that
don't need it, however.

Thanks,
Ben

-- 
Ben Greear <[email-masked]>
Candela Technologies Inc  http://www.candelatech.com