Re: Vlan interface nuisance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick McHardy
Date: Monday, March 2, 2009 - 4:35 pm

Jarek Poplawski wrote:

I'm not sure whether I'm supposed to understand this, so I'm going
to respond with something useful unrelated to naming user resources
that every virtual device author should know (and that seems to be
not well known):

Every virtual device bound to a different device should set the
dev->iflink field to the ifindex of the device bound to. This
makes every device related netlink message include this relation.
If the binding is already known at device-creation time and
relevant for the virtuals device's existance, this must be done
in the ->init callback to make sure its already included in the
first netlink creation message to avoid inconsistent information.

This is the also the prefered way device bindings should be
signaled to the kernel, and at least iproute and libnl are
aware of this in both directions. And to get back to the main
point of this discussion:

# ip l l
4: vlan0@dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN
     link/ether 92:2a:4f:ae:dc:29 brd ff:ff:ff:ff:ff:ff
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Vlan interface nuisance, Stephen Hemminger, (Sun Mar 1, 9:47 pm)
Re: Vlan interface nuisance, David Miller, (Sun Mar 1, 9:57 pm)
Re: Vlan interface nuisance, Stephen Hemminger, (Sun Mar 1, 10:05 pm)
Re: Vlan interface nuisance, David Miller, (Sun Mar 1, 10:28 pm)
Re: Vlan interface nuisance, Herbert Xu, (Sun Mar 1, 11:50 pm)
Re: Vlan interface nuisance, Stephen Hemminger, (Mon Mar 2, 12:15 am)
Re: Vlan interface nuisance, Herbert Xu, (Mon Mar 2, 12:39 am)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 2:44 am)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 2:45 am)
Re: Vlan interface nuisance, David Miller, (Mon Mar 2, 2:57 am)
Re: Vlan interface nuisance, Lennart Sorensen, (Mon Mar 2, 10:20 am)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 11:51 am)
Re: Vlan interface nuisance, Ben Greear, (Mon Mar 2, 11:56 am)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 12:06 pm)
Re: Vlan interface nuisance, Denys Fedoryschenko, (Mon Mar 2, 12:23 pm)
Re: Vlan interface nuisance, Lennart Sorensen, (Mon Mar 2, 12:36 pm)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 1:07 pm)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 1:24 pm)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 2:49 pm)
Re: Vlan interface nuisance, Stephen Hemminger, (Mon Mar 2, 2:51 pm)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 2:52 pm)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 2:54 pm)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 3:30 pm)
Re: Vlan interface nuisance, Patrick McHardy, (Mon Mar 2, 4:35 pm)
Re: Vlan interface nuisance, Jarek Poplawski, (Mon Mar 2, 11:41 pm)
Re: Vlan interface nuisance, Ben Greear, (Mon Mar 2, 11:53 pm)