OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH] net: Add etun driver
Re: [PATCH] net: Add etun driver [message #18103 is a reply to message #18090] Sat, 07 April 2007 02:06 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Ben Greear <greearb@candelatech.com> writes:

> Is there any way to tell for certain if an interface is a etun or not?  Maybe
> a file could be found (or not) in sysfs somewhere?

Link for any decent network driver ethtool -i <interface>

> Also, how do you find the peer device from user-space?  This would be very
> useful
> for anyone trying to manage these devices with a user-space program.

Currently "ethtool -S <interface>"
And read the partner_ifindex.

Further whoever generates the pair specifies the initial set of names.

> When you are creating new devices, I think you should check to make
> sure there isn't already a device with that name.

alloc_netdev doesn't let you register two devices with the same name,
and I check the return status of alloc_netdev. 

> In general though, I look forward to this being in the kernel so I can drop
> my redirect device code from my out-of-tree patch.

Thanks.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [patch 0/8] unprivileged mount syscall
Next Topic: i/o accounting in 2.6.18 openvz :: show_io_stats
Goto Forum:
  


Current Time: Sat Sep 06 21:33:21 GMT 2025

Total time taken to generate the page: 0.17460 seconds