Subject: Re: [PATCH 2/2] Virtual ethernet device driver

From: Pavel Emelianov <[email-masked]>
Date: Mon, 16 Jul 2007 13:10:55 +0400

Patrick McHardy wrote:
> Pavel Emelianov wrote:
>> Patrick McHardy wrote:
>>
>>>> +
>>>> +	if (tb[IFLA_IFNAME])
>>>> +		nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
>>>> +	else
>>>> +		snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d");
>>>
>>> Does this work? The other device is not registered at this time, so I
>>> think the allocated names could clash ..
>>
>> Oh! And one more thing, I've just thought about - even two devices with
>> similar name would be ok when we have a namespaces and one of the ends of
>> this tunnel is to be in some other namespace rather that the init one.
> 
> 
> Yes, but we don't have network namespaces yet. Which brings up another
> question: is this driver of any use without namespaces?
> 
> 

Sure. For example, you can join two bridges together.

Thanks,
Pavel