Commit:     3607c44676583e80122c1fed23f34d003cdd6979
Parent:     45b17f48eaf5e5ff4202454985557b3240141caa
Author:     Ursula Braun <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 8 20:28:47 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:54:56 2007 -0700

    [8021Q]: transfer dev_id from real device
    A net_device struct provides field dev_id. It is used for
    unique ipv6 generation in case of shared network cards
    (as for the OSA network cards of IBM System z).
    If VLAN devices are built on top of such shared network cards,
    this dev_id information needs to be transferred to the VLAN device.
    Signed-off-by: Ursula Braun <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/8021q/vlan.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index f2bee23..3fe4fc8 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -331,6 +331,9 @@ static int vlan_dev_init(struct net_device *dev)
                                          (1<<__LINK_STATE_DORMANT))) |
+       /* ipv6 shared card related stuff */
+       dev->dev_id = real_dev->dev_id;
        if (is_zero_ether_addr(dev->dev_addr))
                memcpy(dev->dev_addr, real_dev->dev_addr, dev->addr_len);
        if (is_zero_ether_addr(dev->broadcast))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to